*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #0a0a0a;
    --carbon: #1a1a1a;
    --carbon2: #242424;
    --blue: #3d5afe;
    --blue-dim: rgba(61,90,254,0.12);
    --blue-border: rgba(61,90,254,0.25);
    --slate: #888888;
    --border: rgba(255,255,255,0.07);
    --white: #ffffff;
    --font: 'Geist', sans-serif;
    --mono: 'Geist Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 62px;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 0.5px solid var(--border);
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: white;
}
.nav-icon {
    width: 28px; height: 28px;
    background: white; border-radius: 6px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3px; padding: 5.5px;
}
.nav-icon span { border-radius: 1.5px; background: var(--black); display: block; }
.nav-icon span.blue { background: var(--blue); }
.nav-wordmark { font-size: 17px; font-weight: 600; letter-spacing: -0.4px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 13px; color: var(--slate);
    text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: white; }
.nav-cta {
    font-size: 13px; font-weight: 500;
    background: white; color: var(--black);
    padding: 8px 18px; border-radius: 8px;
    text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative; overflow: hidden;
}
.hero-glow {
    position: absolute; top: 15%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(61,90,254,0.13) 0%, transparent 65%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.1em; color: var(--blue);
    text-transform: uppercase;
    border: 0.5px solid var(--blue-border);
    padding: 6px 14px; border-radius: 20px;
    margin-bottom: 32px;
    background: var(--blue-dim);
    animation: fadeIn 0.8s ease both;
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue);
    animation: pulse 2s ease infinite;
}
.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 600; letter-spacing: -2.5px;
    line-height: 1.04; margin-bottom: 24px;
    max-width: 820px;
    animation: fadeUp 0.8s ease 0.1s both;
}
.hero h1 em { font-style: normal; color: var(--slate); }
.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--slate); max-width: 460px;
    line-height: 1.75; margin-bottom: 44px;
    animation: fadeUp 0.8s ease 0.2s both;
}
.hero-actions {
    display: flex; gap: 14px; align-items: center;
    flex-wrap: wrap; justify-content: center;
    animation: fadeUp 0.8s ease 0.3s both;
}
.btn-primary {
    background: white; color: var(--black);
    padding: 13px 26px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    text-decoration: none; transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
    color: var(--slate); font-size: 14px;
    text-decoration: none; display: flex; align-items: center; gap: 6px;
    transition: color 0.2s;
}
.btn-ghost:hover { color: white; }
.hero-stats {
    display: flex; gap: 56px; margin-top: 80px;
    border-top: 0.5px solid var(--border); padding-top: 44px;
    animation: fadeUp 0.8s ease 0.4s both;
}
.stat-num {
    font-size: 30px; font-weight: 600; letter-spacing: -1px;
}
.stat-label {
    font-family: var(--mono); font-size: 11px;
    color: var(--slate); margin-top: 3px; letter-spacing: 0.06em;
}

/* ── SECTION COMMON ── */
.section-wrap {
    padding: 100px 48px;
    max-width: 1140px; margin: 0 auto;
}
.section-tag {
    font-family: var(--mono); font-size: 11px;
    color: var(--slate); letter-spacing: 0.14em;
    text-transform: uppercase; margin-bottom: 18px;
}
.section-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600; letter-spacing: -1.2px;
    line-height: 1.08; margin-bottom: 14px;
}
.section-sub {
    font-size: 16px; color: var(--slate);
    max-width: 420px; line-height: 1.75; margin-bottom: 56px;
}
.divider { border: none; border-top: 0.5px solid var(--border); }

/* ── SERVICES ── */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border-radius: 16px; overflow: hidden;
}
.service-card {
    background: var(--carbon); padding: 36px 30px;
    transition: background 0.2s;
}
.service-card:hover { background: var(--carbon2); }
.service-num {
    font-family: var(--mono); font-size: 11px;
    color: var(--slate); margin-bottom: 22px; letter-spacing: 0.08em;
}
.service-icon {
    width: 38px; height: 38px; border-radius: 9px;
    background: var(--blue-dim);
    border: 0.5px solid var(--blue-border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.service-icon svg {
    width: 17px; height: 17px;
    stroke: var(--blue); fill: none;
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.service-name {
    font-size: 18px; font-weight: 600;
    letter-spacing: -0.3px; margin-bottom: 10px;
}
.service-desc { font-size: 13.5px; color: var(--slate); line-height: 1.75; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.stag {
    font-family: var(--mono); font-size: 10px;
    padding: 3px 9px; border-radius: 5px;
    background: rgba(255,255,255,0.04);
    color: #666; border: 0.5px solid var(--border);
}

/* ── HOW ── */
.how-bg { border-top: 0.5px solid var(--border); }
.steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; margin-top: 56px; position: relative;
}
.steps::before {
    content: ''; position: absolute;
    top: 17px; left: 12.5%; right: 12.5%; height: 0.5px;
    background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}
.step { padding: 0 18px; text-align: center; }
.step-dot {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--carbon2); border: 0.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
    font-family: var(--mono); font-size: 11px; color: var(--blue);
    position: relative; z-index: 1;
}
.step-title { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.step-desc { font-size: 12.5px; color: var(--slate); line-height: 1.75; }

/* ── PORTFOLIO ── */
.portfolio-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.port-card {
    border-radius: 14px; overflow: hidden;
    border: 0.5px solid var(--border);
    background: var(--carbon);
    transition: border-color 0.2s, transform 0.2s;
}
.port-card:hover {
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}
.port-thumb {
    height: 188px;
    display: flex; align-items: center; justify-content: center;
}
.port-thumb svg { width: 68px; height: 68px; opacity: 0.85; }
.port-info { padding: 22px; }
.port-name { font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.port-type { font-family: var(--mono); font-size: 11px; color: var(--slate); }
.port-tag {
    display: inline-block; margin-top: 14px;
    font-family: var(--mono); font-size: 10px;
    padding: 3px 9px; border-radius: 5px;
    background: var(--blue-dim); color: var(--blue);
    border: 0.5px solid var(--blue-border);
}

/* ── TESTIMONIALS ── */
.testi-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.testi-card {
    background: var(--carbon); border-radius: 14px;
    padding: 26px; border: 0.5px solid var(--border);
    transition: border-color 0.2s;
}
.testi-card:hover { border-color: rgba(255,255,255,0.12); }
.testi-stars { color: var(--blue); font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }
.testi-text { font-size: 13.5px; color: #bbb; line-height: 1.8; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 500; }
.testi-role { font-family: var(--mono); font-size: 10px; color: var(--slate); margin-top: 1px; }

/* ── PRICING ── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.price-card {
    border-radius: 14px; padding: 30px 26px;
    background: var(--carbon); border: 0.5px solid var(--border);
    position: relative; transition: border-color 0.2s;
}
.price-card:hover { border-color: rgba(255,255,255,0.12); }
.price-card.featured {
    background: white; color: var(--black);
    border-color: transparent;
}
.price-featured-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    font-family: var(--mono); font-size: 10px;
    background: var(--blue); color: white;
    padding: 4px 14px; border-radius: 20px;
    letter-spacing: 0.07em; white-space: nowrap;
}
.price-plan { font-size: 13px; font-weight: 500; color: var(--slate); margin-bottom: 8px; }
.price-card.featured .price-plan { color: #777; }
.price-val {
    font-size: 34px; font-weight: 600;
    letter-spacing: -1.2px; margin-bottom: 4px;
}
.price-card.featured .price-val { color: var(--black); }
.price-period {
    font-family: var(--mono); font-size: 11px;
    color: var(--slate); margin-bottom: 28px;
}
.price-card.featured .price-period { color: #888; }
.price-list {
    list-style: none; display: flex;
    flex-direction: column; gap: 11px; margin-bottom: 28px;
}
.price-list li {
    font-size: 13.5px; display: flex;
    align-items: flex-start; gap: 10px; color: #bbb;
}
.price-card.featured .price-list li { color: #333; }
.price-list li::before {
    content: '—'; color: var(--blue);
    flex-shrink: 0; font-family: var(--mono);
    font-size: 12px; margin-top: 1px;
}
.price-btn {
    display: block; text-align: center; padding: 12px;
    border-radius: 9px; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: opacity 0.2s;
    border: 0.5px solid var(--border); color: white;
    background: transparent; cursor: pointer;
    font-family: var(--font); width: 100%;
}
.price-card.featured .price-btn {
    background: var(--black); color: white; border-color: transparent;
}
.price-btn:hover { opacity: 0.8; }

/* ── CTA ── */
.cta-section { padding: 100px 48px; border-top: 0.5px solid var(--border); }
.cta-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.cta-inner h2 {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 600; letter-spacing: -1.5px;
    line-height: 1.08; margin-bottom: 18px;
}
.cta-inner p { color: var(--slate); font-size: 16px; line-height: 1.75; margin-bottom: 40px; }
.cta-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.cta-input {
    flex: 1; background: var(--carbon);
    border: 0.5px solid var(--border); color: white;
    border-radius: 10px; padding: 12px 18px; font-size: 14px;
    font-family: var(--font); outline: none;
    transition: border-color 0.2s;
}
.cta-input::placeholder { color: var(--slate); }
.cta-input:focus { border-color: rgba(255,255,255,0.2); }
.cta-submit {
    background: white; color: var(--black);
    border: none; border-radius: 10px;
    padding: 12px 22px; font-size: 14px; font-weight: 500;
    cursor: pointer; font-family: var(--font);
    transition: opacity 0.2s; white-space: nowrap;
}
.cta-submit:hover { opacity: 0.88; }
.cta-note {
    font-family: var(--mono); font-size: 11px;
    color: var(--slate); margin-top: 16px; letter-spacing: 0.04em;
}
.cta-note a { color: white; text-decoration: none; }

/* ── FOOTER ── */
footer {
    border-top: 0.5px solid var(--border);
    padding: 36px 48px;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 100%;
}
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-word { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
    font-size: 12px; color: var(--slate);
    text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-family: var(--mono); font-size: 11px; color: #3a3a3a; }

/* ── MOBILE ── */
@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hero { padding: 100px 24px 60px; }
    .hero-stats { gap: 28px; }
    .section-wrap { padding: 72px 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
    .steps::before { display: none; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .cta-form { flex-direction: column; }
    .cta-section { padding: 72px 24px; }
    footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}