*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050508;
    --bg-2: #0d0d14;
    --bg-3: #13131f;
    --border: rgba(255, 255, 255, 0.08);
    --primary: #0ea5e9;
    --primary-light: #38bdf8;
    --secondary: #06b6d4;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #475569;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { display: block; }

.nav-cta {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ─── HERO (homepage) ─────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 100px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: 15%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.13) 0%, transparent 70%);
    pointer-events: none;
}
.hero-glow-2 {
    position: absolute;
    bottom: 0; left: 30%;
    width: 400px; height: 300px;
    background: radial-gradient(ellipse, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.hero h1 {
    font-size: clamp(38px, 6.5vw, 76px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.75;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 17px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 48px rgba(14, 165, 233, 0.35);
}
.hero-cta:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 0 64px rgba(14, 165, 233, 0.45); }
.hero-cta svg { transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(4px); }
.hero-note { display: block; margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ─── INNER PAGE HERO ─────────────────────────────── */
.page-hero {
    position: relative;
    padding: 140px 24px 80px;
    text-align: center;
    overflow: hidden;
}
.page-hero-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.page-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}
.page-hero h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.page-hero p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── INNER PAGE CONTENT ──────────────────────────── */
.page-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 72px 24px 100px;
}
.page-content h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 48px 0 14px;
    color: var(--text);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.page-content ul {
    margin: 0 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.page-content ul li {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}
.page-content a { color: var(--primary-light); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }
.page-content .updated {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 48px;
}

/* ─── STATS ───────────────────────────────────────── */
.stats {
    position: relative;
    padding: 52px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.stats-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-divider { border-right: 1px solid var(--border); }
.stat-divider:last-child { border-right: none; }
.stat-item h3 {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── TECH ────────────────────────────────────────── */
.tech { padding: 80px 24px; text-align: center; }
.tech-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 32px;
}
.tech-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 860px;
    margin: 0 auto;
}
.tech-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}
.tech-chip:hover { border-color: rgba(14, 165, 233, 0.4); color: var(--text); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ─── SECTION HEADER ─────────────────────────────── */
.section-header { text-align: center; max-width: 620px; margin: 0 auto 68px; }
.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 16px;
}
.section-header p { font-size: 17px; color: var(--text-muted); line-height: 1.7; }

/* ─── SERVICES ────────────────────────────────────── */
.services { padding: 110px 24px; background: var(--bg-2); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.service-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover { border-color: rgba(14, 165, 233, 0.35); transform: translateY(-5px); }
.service-card:hover::after { opacity: 1; }
.service-icon {
    width: 52px; height: 52px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 24px;
}
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.service-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ─── PROCESS ─────────────────────────────────────── */
.process { padding: 110px 24px; }
.process-steps { max-width: 780px; margin: 0 auto; }
.process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 28px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
.process-step:last-child { border-bottom: none; }
.step-num {
    width: 52px; height: 52px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-light);
    flex-shrink: 0;
}
.step-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; padding-top: 12px; }
.step-content p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ─── CTA SECTION ─────────────────────────────────── */
.cta-section { padding: 110px 24px; text-align: center; background: var(--bg-2); }
.cta-box {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.09) 0%, rgba(34, 211, 238, 0.04) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 24px;
    padding: 72px 56px;
}
.cta-box h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 18px;
}
.cta-box p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.75;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 17px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 48px rgba(14, 165, 233, 0.3);
}
.cta-btn:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 0 72px rgba(14, 165, 233, 0.4); }
.cta-note { display: block; margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ─── ABOUT PAGE ──────────────────────────────────── */
.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-values {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.value-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── CASE STUDIES PAGE ───────────────────────────── */
.cs-coming {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px 100px;
    text-align: center;
}
.cs-coming p { font-size: 17px; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.cs-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 100px;
}
.cs-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    opacity: 0.6;
}
.cs-card-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.cs-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.cs-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.cs-blur { filter: blur(4px); pointer-events: none; }
.cs-soon-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ─── FOOTER ──────────────────────────────────────── */
.footer-wrap {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 72px 32px 0;
}
.footer-main {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 64px;
}
.footer-logo { display: inline-block; text-decoration: none; margin-bottom: 18px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); line-height: 1.75; max-width: 270px; margin-bottom: 28px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.social-btn:hover { border-color: rgba(14, 165, 233, 0.45); color: var(--primary-light); background: rgba(14, 165, 233, 0.06); }
.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col ul a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text); }
.accepting-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.06);
}
.accepting-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-muted); }

/* ─── ANIMATIONS ──────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-values { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-divider:nth-child(2) { border-right: none; }
    .process-step { grid-template-columns: 1fr; gap: 12px; }
    .step-content h3 { padding-top: 0; }
    .cta-box { padding: 48px 28px; }
}

@media (max-width: 480px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item h3 { font-size: 36px; }
    .footer-main { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .about-values { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 20px; }
}
