/* =============================================================
   Nexus Fine Tech — Design System
   Deep-dark glassmorphism · cyan/violet glow accents
   ============================================================= */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    /* Surfaces */
    --bg-0: #07090E;
    --bg-1: #0D111A;
    --bg-2: #121826;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.16);
    --glass-blur: 16px;

    /* Accents */
    --cyan: #22D3EE;
    --cyan-soft: rgba(34, 211, 238, 0.12);
    --cyan-glow: rgba(34, 211, 238, 0.35);
    --violet: #8B5CF6;
    --violet-soft: rgba(139, 92, 246, 0.12);
    --violet-glow: rgba(139, 92, 246, 0.35);
    --gradient-accent: linear-gradient(135deg, #22D3EE 0%, #8B5CF6 100%);
    --gradient-accent-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.5));

    /* Text */
    --text-1: #F1F5F9;
    --text-2: #94A3B8;
    --text-3: #64748B;

    /* Spacing & Typography Fallbacks */
    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-md: 20px;
    --sp-lg: 28px;
    --sp-xl: 40px;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container: 1152px;
    --nav-h: 72px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

/* Light theme token overrides */
.light {
    --bg-0: #F6F8FC;
    --bg-1: #FFFFFF;
    --bg-2: #EEF2F9;

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-hover: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-hover: rgba(15, 23, 42, 0.16);

    --cyan: #0891B2;
    --cyan-soft: rgba(8, 145, 178, 0.10);
    --cyan-glow: rgba(8, 145, 178, 0.22);
    --violet: #7C3AED;
    --violet-soft: rgba(124, 58, 237, 0.10);
    --violet-glow: rgba(124, 58, 237, 0.22);

    --text-1: #0F172A;
    --text-2: #475569;
    --text-3: #64748B;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--bg-0);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection {
    background: rgba(34, 211, 238, 0.28);
    color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ── Layout Primitives ──────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.is-hidden { display: none !important; }

/* ── Ambient Background ─────────────────────────────────────── */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.5;
    animation: orb-drift 24s ease-in-out infinite;
    will-change: transform;
}

.ambient-orb-1 {
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
    top: -220px;
    right: -180px;
}

.ambient-orb-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.13), transparent 70%);
    bottom: 12%;
    left: -200px;
    animation-delay: -8s;
    animation-duration: 28s;
}

.ambient-orb-3 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.09), transparent 70%);
    top: 46%;
    right: -140px;
    animation-delay: -16s;
    animation-duration: 22s;
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(36px, -28px) scale(1.06); }
    50%      { transform: translate(-24px, 24px) scale(0.96); }
    75%      { transform: translate(18px, 12px) scale(1.02); }
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 28%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 65% at 50% 28%, black 30%, transparent 75%);
}

.light .grid-bg {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.light .noise-overlay { opacity: 0.015; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.62);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease-out-expo),
                border-color 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.light .nav { background: rgba(255, 255, 255, 0.7); }

.nav.scrolled {
    background: rgba(7, 9, 14, 0.85);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.light .nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 16px;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px var(--cyan-glow);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.logo-mark span {
    color: #fff;
    font-weight: 800;
    font-size: 0.875rem;
}

.brand:hover .logo-mark {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 4px 24px var(--violet-glow);
}

.logo-mark-sm {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--cyan-glow);
}

.logo-mark-sm span {
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
}

.brand-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 8px;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--gradient-accent);
    transition: transform 0.35s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.04);
}

.light .nav-link:hover,
.light .nav-link.is-active { background: rgba(15, 23, 42, 0.04); }

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-2);
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-spring);
}

.icon-btn:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.light .icon-btn:hover { background: rgba(15, 23, 42, 0.05); }

.nav-burger { display: none; }

/* Mobile menu */
.mobile-menu {
    display: none;
    background: rgba(13, 17, 26, 0.97);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
}

.light .mobile-menu { background: rgba(255, 255, 255, 0.97); }

.mobile-menu.is-open { display: block; }

.mobile-menu-inner {
    padding: 16px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: menu-drop 0.35s var(--ease-out-expo);
}

@keyframes menu-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.mobile-link:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.light .mobile-link:hover { background: rgba(15, 23, 42, 0.04); }

.mobile-cta { margin-top: 12px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0EA5E9 0%, #6D28D9 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 4px 20px rgba(34, 211, 238, 0.18);
    transition: transform 0.3s var(--ease-out-expo),
                box-shadow 0.3s var(--ease-out-expo),
                filter 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-1);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.btn-secondary:active { transform: translateY(0); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 0.8125rem; }

.btn-arrow { transition: transform 0.3s var(--ease-out-expo); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-hidden { display: none !important; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 75% 55% at 50% -18%, rgba(34, 211, 238, 0.13) 0%, transparent 100%),
        radial-gradient(ellipse 55% 40% at 82% 45%, rgba(139, 92, 246, 0.10) 0%, transparent 100%),
        radial-gradient(ellipse 40% 32% at 14% 62%, rgba(34, 211, 238, 0.06) 0%, transparent 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
    animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.75); }
}

.hero-title {
    font-size: clamp(2rem, 4.8vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--text-1);
    max-width: 880px;
    margin-bottom: 20px;
    word-break: normal;
}

.text-gradient {
    background: linear-gradient(120deg, #22D3EE 10%, #8B5CF6 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--text-2);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Hero particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: particle-float 10s ease-in-out infinite;
    will-change: transform, opacity;
}

.particle-1 { width: 4px; height: 4px; background: rgba(34, 211, 238, 0.55); top: 22%; left: 14%; }
.particle-2 { width: 3px; height: 3px; background: rgba(139, 92, 246, 0.5); top: 38%; right: 18%; animation-delay: -2s; animation-duration: 12s; }
.particle-3 { width: 5px; height: 5px; background: rgba(34, 211, 238, 0.35); bottom: 30%; left: 24%; animation-delay: -4s; animation-duration: 14s; }
.particle-4 { width: 3px; height: 3px; background: rgba(139, 92, 246, 0.4); top: 58%; right: 30%; animation-delay: -1s; animation-duration: 9s; }
.particle-5 { width: 4px; height: 4px; background: rgba(34, 211, 238, 0.4); bottom: 22%; right: 14%; animation-delay: -3s; animation-duration: 11s; }
.particle-6 { width: 2px; height: 2px; background: rgba(255, 255, 255, 0.35); top: 30%; left: 42%; animation-delay: -5s; animation-duration: 8s; }

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0); opacity: 0.35; }
    25%      { transform: translate(22px, -32px); opacity: 0.8; }
    50%      { transform: translate(-16px, 18px); opacity: 0.5; }
    75%      { transform: translate(12px, -12px); opacity: 0.65; }
}

/* Scroll indicator */
.scroll-indicator {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.light .scroll-mouse { border-color: rgba(15, 23, 42, 0.18); }

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(9px); opacity: 0.25; }
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding: 88px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(13, 17, 26, 0.55), rgba(13, 17, 26, 0.2));
    border-block: 1px solid rgba(255, 255, 255, 0.03);
}

.light .section-alt {
    background: linear-gradient(180deg, rgba(238, 242, 249, 0.6), rgba(238, 242, 249, 0.25));
    border-block-color: rgba(15, 23, 42, 0.05);
}

.section-head {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}

.tag-dash {
    width: 20px;
    height: 1px;
    background: var(--gradient-accent);
}

.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: var(--text-1);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-2);
    max-width: 480px;
    margin-inline: auto;
    line-height: 1.65;
}

/* ── Card Grid ──────────────────────────────────────────────── */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* ── Glass Cards ────────────────────────────────────────────── */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s var(--ease-out-expo),
                background 0.45s var(--ease-out-expo),
                border-color 0.45s var(--ease-out-expo),
                box-shadow 0.45s var(--ease-out-expo);
}

/* Illuminated top edge */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Hover state: elevate + brighten border */
.card-hover:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(34, 211, 238, 0.08),
        0 0 32px rgba(139, 92, 246, 0.10);
}

.light .card-hover:hover {
    box-shadow:
        0 16px 48px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(34, 211, 238, 0.12);
}

.card-hover:hover::before { opacity: 1; }

/* Cursor-following radial glow */
.card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(34, 211, 238, 0.10), rgba(139, 92, 246, 0.06) 45%, transparent 65%);
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
}

.card-hover:hover .card-glow { opacity: 1; }

.service-card > :not(.card-glow),
.automate-card > :not(.card-glow),
.process-card > :not(.card-glow) { position: relative; z-index: 2; }

/* Card typography */
.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

.card-text {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── Service Cards ──────────────────────────────────────────── */
.service-card {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
}

/* ── Card Icons ─────────────────────────────────────────────── */
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.card-icon-sm {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-cyan {
    background: var(--cyan-soft);
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.icon-violet {
    background: var(--violet-soft);
    color: var(--violet);
    border: 1px solid rgba(139, 92, 246, 0.18);
}

.card-hover:hover .card-icon {
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.card-hover:hover .icon-violet {
    box-shadow: 0 0 20px var(--violet-glow);
}

/* ── Hover Reveal ───────────────────────────────────────────── */
.card-reveal {
    margin-top: auto;
    padding-top: 18px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.55s var(--ease-out-expo),
                opacity 0.4s ease,
                padding-top 0.55s var(--ease-out-expo);
}

.card-hover:hover .card-reveal,
.card-hover:focus-within .card-reveal {
    max-height: 240px;
    opacity: 1;
}

.card-reveal-inner {
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}

.reveal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.reveal-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-2);
}

.reveal-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gradient-accent);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--cyan-glow);
}

.card-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.12);
    border-radius: 10px;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.6875rem;
    color: var(--text-3);
    line-height: 1.3;
}

/* Reveal CTA */
.reveal-cta { padding-top: 4px; }

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cyan);
    transition: gap 0.3s var(--ease-out-expo), color 0.25s ease;
}

.card-cta:hover { color: var(--text-1); gap: 10px; }
.card-cta svg { transition: transform 0.3s var(--ease-out-expo); }
.card-cta:hover svg { transform: translateX(3px); }

/* ── Automate Cards ─────────────────────────────────────────── */
.automate-card {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.card-head-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-1);
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--text-2);
    transition: transform 0.25s ease, color 0.25s ease;
}

.check-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.check-cyan li::before { background: var(--cyan); }
.check-violet li::before { background: var(--violet); }

.card-hover:hover .check-list li { transform: translateX(3px); color: var(--text-1); }
.card-hover:hover .check-cyan li::before { transform: scale(1.35); box-shadow: 0 0 8px var(--cyan-glow); }
.card-hover:hover .check-violet li::before { transform: scale(1.35); box-shadow: 0 0 8px var(--violet-glow); }

/* ── Process Cards ──────────────────────────────────────────── */
.process-card {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
}

.process-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.card-hover:hover .process-number { opacity: 0.9; }

.process-connector {
    height: 2px;
    margin: 14px 0;
    background: linear-gradient(90deg, var(--cyan), transparent);
    opacity: 0.25;
    border-radius: 1px;
    transition: opacity 0.35s ease;
}

.card-hover:hover .process-connector { opacity: 0.6; }

.process-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.35s var(--ease-spring);
}

.card-hover:hover .process-icon { transform: scale(1.08) rotate(4deg); }
.process-card .card-title { margin-bottom: 8px; }

/* ── About / Contact Grid ───────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.about-card {
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}

.about-card p {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-contact-row {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    word-break: break-all;
}

.about-contact-row span {
    font-size: 0.875rem;
    color: var(--text-1);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 36px 0;
    background: rgba(7, 9, 14, 0.5);
}

.light .footer { background: rgba(255, 255, 255, 0.5); }

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-1);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-3);
    line-height: 1.6;
}

/* ── Toasts ─────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    min-width: 280px;
    max-width: 400px;
    background: rgba(18, 24, 38, 0.92);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(calc(100% + 32px));
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
    pointer-events: auto;
}

.light .toast {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

.toast-icon.success { background: var(--cyan-soft); color: var(--cyan); }
.toast-icon.error   { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.toast-icon.info    { background: var(--violet-soft); color: var(--violet); }

.toast-body { flex: 1; min-width: 0; }

.toast-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.75rem;
    color: var(--text-2);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.toast-close:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.08);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.modal-overlay.visible { opacity: 1; }

.modal-content {
    background: var(--bg-2);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 32px 36px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    transform: scale(0.9) translateY(24px);
    transition: transform 0.5s var(--ease-spring);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal-overlay.visible .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    background: var(--cyan-soft);
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: 0 0 32px var(--cyan-glow);
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 0.9375rem;
    color: var(--text-2);
    margin-bottom: 24px;
}

/* ── Scroll Animations ──────────────────────────────────────── */
.fade-up,
.scale-in,
.reveal {
    opacity: 0;
    will-change: opacity, transform;
}

.fade-up {
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}

.scale-in {
    transform: scale(0.96);
    transition: opacity 0.7s var(--ease-out-quart), transform 0.7s var(--ease-out-quart);
}

.reveal {
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}

.fade-up.is-visible,
.scale-in.is-visible,
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

[data-delay="80"]  { transition-delay: 0.08s; }
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="160"] { transition-delay: 0.16s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* ── Focus Visible ──────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ── Responsive Queries ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .nav-cta { display: none; }
}

@media (max-width: 640px) {
    .container { padding-inline: 16px; }
    .section { padding: 60px 0; }
    .grid-cards { grid-template-columns: 1fr; gap: 16px; }
    .hero { min-height: 85vh; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 64px; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; }
    .about-card { padding: 24px 20px; }
    .glass-card { padding: 22px 18px; }
    .toast-container { left: 16px; right: 16px; bottom: 16px; }
    .toast { min-width: unset; max-width: unset; width: 100%; }
    .footer-inner { flex-direction: column; text-align: center; }
    .modal-content { padding: 32px 20px 28px; }
}