:root {
    --bg: #050607;
    --bg-2: #0a0d10;
    --panel: rgba(11, 16, 20, 0.78);
    --panel-2: rgba(17, 24, 31, 0.72);
    --line: rgba(64, 235, 255, 0.18);
    --line-soft: rgba(255, 255, 255, 0.10);
    --text: #f5f8fb;
    --muted: #a6b0ba;
    --cyan: #27e6ff;
    --cyan-2: #14bdd4;
    --shadow: 0 0 28px rgba(39, 230, 255, 0.20);
    --black: #000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 70% 10%, rgba(39,230,255,.12), transparent 32rem),
        radial-gradient(circle at 20% 50%, rgba(39,230,255,.06), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(24px, 6vw, 72px);
    _background: rgba(2, 3, 4, 0.82);
    background-color:#000;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
}

.brand img { width: min(330px, 42vw); display: block; }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-soft);
    background: rgba(11, 16, 20, 0.88);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    display: block;
    transition: transform .2s ease, opacity .2s ease;
}
.main-nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { color: #e7edf2; opacity: .92; padding-bottom: 8px; }
.main-nav a:hover, .main-nav .active { color: var(--cyan); border-bottom: 2px solid var(--cyan); }

.section-shell { width: min(1130px, calc(100% - 48px)); margin: 0 auto; }
.hero {
    min-height: 410px;
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    align-items: center;
    gap: 44px;
    padding: 80px 0 70px;
}
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: clamp(42px, 7vw, 72px); line-height: .98; margin: 0 0 12px; letter-spacing: -0.05em; }
.hero h2 { color: var(--cyan); margin: 0 0 20px; font-size: clamp(23px, 3vw, 32px); font-weight: 500; }
.lead { max-width: 620px; margin: 0 0 34px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.button { min-width: 148px; text-align: center; padding: 14px 22px; border: 1px solid var(--cyan); border-radius: 3px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.button.primary { color: #061114; background: linear-gradient(135deg, #63efff, #16c9e6); box-shadow: var(--shadow); }
.button.secondary { color: var(--cyan); background: rgba(39,230,255,.03); }
.hero-visual {
    position: relative;
    min-height: 360px;
    overflow: visible;
    isolation: isolate;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: -42px -84px -42px -120px;
    background:
        radial-gradient(circle at 56% 50%, rgba(39,230,255,.16), transparent 36%),
        radial-gradient(circle at 70% 50%, rgba(39,230,255,.08), transparent 48%);
    filter: blur(12px);
    pointer-events: none;
    z-index: -1;
}
.hero-visual::after {
    content: "";
    position: absolute;
    inset: -2px;
    _background:
        linear-gradient(90deg, var(--bg) 0%, rgba(5,6,7,.98) 15%, rgba(5,6,7,.8) 25%, rgba(5,6,7,0) 45%),
        linear-gradient(270deg, var(--bg) 0%, rgba(5,6,7,.9) 10%, rgba(5,6,7,0) 25%),
        linear-gradient(180deg, var(--bg) 0%, rgba(5,6,7,.9) 10%, rgba(5,6,7,0) 25%, rgba(5,6,7,0) 75%, rgba(5,6,7,.9) 90%, var(--bg) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero-visual img {
    display: block;
    width: 116%;
    max-width: none;
    height: 410px;
    object-fit: cover;
    object-position: center;
    opacity: .92;
    filter: saturate(1.08) contrast(1.05);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, #000 40%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, #000 40%, transparent 70%);
}

.content-section { padding: 30px 0 38px; border-top: 1px solid var(--line-soft); }
.section-title { margin-bottom: 24px; }
.section-title h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.section-title span, .section-title > div span { display: block; width: 42px; height: 2px; background: var(--cyan); margin-top: 9px; box-shadow: var(--shadow); }
.section-title.split { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.all-link, .card a, .note-card a { color: var(--cyan); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }

.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card, .note-card {
    background: linear-gradient(145deg, rgba(14,18,23,.92), rgba(7,10,13,.72));
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    box-shadow: 0 22px 55px rgba(0,0,0,.22);
}
.card { min-height: 205px; padding: 34px 28px 26px; display: flex; flex-direction: column; }
.card:hover, .note-card:hover { border-color: rgba(39,230,255,.45); transform: translateY(-2px); transition: .2s ease; }
.icon { color: var(--cyan); font-size: 46px; line-height: 1; margin-bottom: 18px; text-shadow: var(--shadow); }
.icon img {
    display: block;
    _width: 46px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(39, 230, 255, 0.28));
}
.card h3, .note-card h3 { margin: 0 0 12px; line-height: 1.25; }
.card p, .note-card p, .about-copy p, .step p { color: var(--muted); margin-top: 0; }
.card a { margin-top: auto; }

.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 28px; align-items: center; }
.step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; align-items: start; }
.step-icon { grid-row: span 2; width: 58px; height: 58px; display: grid; place-items: center; color: var(--cyan); border: 2px solid var(--cyan); border-radius: 999px; font-size: 30px; box-shadow: var(--shadow); }
.step h3 { margin: 0 0 6px; color: var(--cyan); }
.arrow { color: var(--cyan); font-size: 46px; font-weight: 200; }

.note-card { overflow: hidden; }
.note-card .date { font-size: 12px; color: #8f9aa4; margin: 16px 18px 8px; }
.note-card h3 { margin: 0 18px 10px; font-size: 18px; }
.note-card p:not(.date) { margin: 0 18px 16px; font-size: 14px; }
.note-card a { display: inline-block; margin: 0 18px 20px; }
.note-image { height: 110px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line-soft); }
.gradient-one { background: radial-gradient(circle at 50% 50%, rgba(39,230,255,.42), transparent 34%), linear-gradient(135deg, #09202b, #050607 68%); }
.gradient-two { background: radial-gradient(circle at 30% 40%, rgba(39,230,255,.44), transparent 28%), radial-gradient(circle at 75% 60%, rgba(39,230,255,.20), transparent 26%), #061015; }
.raspberry { background-image: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.35)), url('/images/hero-chip.png'); }
.asphalt { background: linear-gradient(135deg, #2a2b2d, #050607 70%); position: relative; }
.asphalt::after { content: ""; display:block; width:60%; height:42%; border:1px solid rgba(39,230,255,.4); border-radius: 50% 50% 8px 8px; margin: 30px auto; box-shadow: var(--shadow); }

.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: center; }
.portrait-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 52% 30%, rgba(39,230,255,.20), transparent 58%),
        radial-gradient(circle at 50% 72%, rgba(10, 18, 24, .88), rgba(4, 8, 12, .96) 64%, #030507 100%);
    box-shadow: 0 24px 70px rgba(0,0,0,.38);
}
.portrait-tech-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(2,6,10,.42), rgba(2,6,10,.72)),
        url('/images/hero-chip.png');
    background-size: cover;
    background-position: center;
    opacity: .52;
    filter: saturate(.95) contrast(1.03) brightness(.72);
    pointer-events: none;
    z-index: -2;
}
.portrait-frame::before {
    content: "";
    position: absolute;
    width: 66%;
    height: 66%;
    left: 17%;
    top: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39,230,255,.30) 0%, rgba(39,230,255,0) 68%);
    filter: blur(16px);
    z-index: -1;
    pointer-events: none;
}
.portrait-frame img {
    display: block;
    width: 100%;
    border-radius: 10px;
}
.about-copy { font-size: 17px; }
.site-footer { display: flex; align-items: center; gap: 28px; justify-content: space-between; padding: 22px clamp(24px, 6vw, 72px); border-top: 1px solid var(--line); color: var(--muted); background: var(--black); }
.site-footer img { width: 96px; opacity: .95; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.footer-icon { width: 32px; height: 32px; color: currentColor; opacity: .95; }
.footer-email .footer-icon {
    color: var(--cyan);
    filter: drop-shadow(0 0 6px rgba(39, 230, 255, .35));
}
.footer-links a:hover { color: var(--cyan); }

@media (max-width: 980px) {
    body { padding-top: 92px; }
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        backdrop-filter: none;
    }
    section[id] { scroll-margin-top: 108px; }
    .brand { flex: 1; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding-top: 8px;
    }
    .site-header.menu-open .main-nav { display: flex; }
    .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero { grid-template-columns: 1fr; padding-top: 52px; }
    .hero-visual { min-height: 280px; }
    .hero-visual img { width: 100%; height: 320px; }
    .cards.three, .cards.four, .about-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .arrow { display: none; }
}

@media (max-width: 620px) {
    .main-nav { flex-wrap: wrap; font-size: 12px; }
    .section-shell { width: min(100% - 28px, 1130px); }
    .hero h1 { font-size: 44px; }
    .section-title.split { align-items: start; flex-direction: column; }
    .site-footer { flex-direction: column; align-items: flex-start; }
}
