/* ============================================================
   KYRIEN-SYSTEMS — Design System (Fixed)
   ============================================================ */

:root {
    --bg-primary: #08090d;
    --bg-secondary: #0d0f14;
    --bg-elevated: #12151c;
    --bg-card: #151821;
    --bg-card-hover: #1a1e29;
    --accent: #00e5a0;
    --accent-dim: #00c98a;
    --accent-glow: rgba(0, 229, 160, 0.15);
    --accent-glow-strong: rgba(0, 229, 160, 0.3);
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.12);
    --text-primary: #edf0f7;
    --text-secondary: #8b93a7;
    --text-muted: #5a6275;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(0, 229, 160, 0.25);
    --container: 1140px;
    --section-pad: clamp(4rem, 8vw, 7rem);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-width: 0;
}

body.modal-open { overflow: hidden; }

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ---- Cursor Glow ---- */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s var(--ease);
    opacity: 0;
}
.cursor-glow.active { opacity: 1; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    transition: all 0.4s var(--ease);
}

nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 9, 13, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease);
}

nav.scrolled::before {
    background: rgba(8, 9, 13, 0.92);
    border-bottom-color: var(--border);
}

.nav-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-pulse {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-accent { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.15rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--r-sm);
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    display: block;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--r-md) !important;
}

.nav-cta:hover {
    background: var(--accent-dim) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, var(--accent-glow) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 20%, var(--cyan-glow) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(100, 60, 255, 0.06) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    min-width: 0; /* prevent grid blowout */
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.hero-tag .tag-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-content h1 .accent-word {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content > p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.8rem 1.75rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease);
}

.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow-strong);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    padding: 0.8rem 1.75rem;
    border-radius: var(--r-md);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border-hover);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

/* ---- Terminal Card ---- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border),
        0 20px 50px rgba(0,0,0,0.4),
        0 0 80px var(--accent-glow);
    animation: termFloat 6s ease-in-out infinite;
    transition: all 0.4s var(--ease);
}

.terminal-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px var(--border-accent),
        0 30px 70px rgba(0,0,0,0.5),
        0 0 100px var(--accent-glow-strong);
    animation-play-state: paused;
}

@keyframes termFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-body {
    padding: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.85;
    overflow-x: auto;
}

.terminal-body .line {
    display: flex;
    gap: 0.4rem;
    opacity: 0;
    animation: lineAppear 0.4s var(--ease-out) forwards;
    white-space: nowrap;
}

.terminal-body .line:nth-child(1) { animation-delay: 0.3s; }
.terminal-body .line:nth-child(2) { animation-delay: 0.6s; }
.terminal-body .line:nth-child(3) { animation-delay: 0.9s; }
.terminal-body .line:nth-child(4) { animation-delay: 1.2s; }
.terminal-body .line:nth-child(5) { animation-delay: 1.5s; }
.terminal-body .line:nth-child(6) { animation-delay: 1.8s; }

@keyframes lineAppear {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.line-prompt { color: var(--accent); flex-shrink: 0; }
.line-cmd { color: var(--text-primary); }
.line-result { color: var(--text-muted); }
.line-success { color: #28c840; }
.line-cyan { color: var(--cyan); }

.terminal-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.metric-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.7rem;
    text-align: center;
}

.metric-value {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
    display: block;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-hover);
}

.stat-number {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: var(--section-pad) 0;
    background: var(--bg-primary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 50% 40% at 80% 20%, var(--cyan-glow) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: var(--accent-glow-strong);
    box-shadow: 0 0 25px var(--accent-glow);
}

.service-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card > p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.service-features li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 40% 50% at 20% 60%, rgba(100, 60, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), var(--border-accent), transparent);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 52px;
    height: 52px;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s var(--ease);
}

.process-step:hover .process-number {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 25px var(--accent-glow-strong);
}

.process-step h4 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: var(--section-pad) 0;
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 50% 40% at 30% 70%, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.contact-item {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all 0.3s var(--ease);
}

.contact-item:hover {
    border-color: var(--border-accent);
    transform: translateX(3px);
}

.contact-item h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    min-width: 0;
}

.contact-form-wrap h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.65rem 0.85rem;
    color: var(--text-primary);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.875rem;
    transition: all 0.25s var(--ease);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6275' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-input option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.error-message {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.3rem;
}

.success-message {
    display: none;
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.8rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s var(--ease);
    margin-top: 0.25rem;
}

.btn-submit:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow-strong);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 3.5rem 0 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0.85rem;
    max-width: 300px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.footer-col h4 {
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
    transition: all 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-made .heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    padding: 1rem;
}

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

.modal-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.96);
    transition: all 0.35s var(--ease-spring);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: var(--bg-primary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    min-width: 0;
}

.modal-close {
    background: rgba(0,0,0,0.15);
    border: none;
    color: var(--bg-primary);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ease);
    flex-shrink: 0;
    line-height: 1;
}

.modal-close:hover { background: rgba(0,0,0,0.25); }

.modal-content {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.6rem;
}
.modal-content h2:first-child { margin-top: 0; }

.modal-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 1rem 0 0.4rem;
}

.modal-content p {
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
}

.modal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-content ul { margin-left: 1.25rem; margin-bottom: 0.85rem; }
.modal-content li { margin-bottom: 0.35rem; font-size: 0.88rem; }

.modal-container::-webkit-scrollbar { width: 5px; }
.modal-container::-webkit-scrollbar-track { background: transparent; }
.modal-container::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.from-left { transform: translateX(-30px) translateY(0); }
.reveal.from-right { transform: translateX(30px) translateY(0); }

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============================================================
   SPINNER
   ============================================================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process-grid::before { display: none; }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--bg-elevated);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.35rem;
        transition: right 0.35s var(--ease);
        z-index: 999;
    }

    .nav-links.open { right: 0; }

    .nav-links li { width: 100%; }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
        width: 100%;
    }

    .mobile-toggle { display: flex; }

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta { justify-content: center; }
    .hero-visual { order: -1; }
    .terminal-card { max-width: 320px; margin: 0 auto; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .stat-item:not(:last-child)::after { display: none; }

    .services-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .modal-container { width: 100%; }
    .cursor-glow { display: none; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .container,
    .nav-container,
    .hero-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-links-grid { grid-template-columns: 1fr; }
    .terminal-card { max-width: 280px; }

    .btn-primary,
    .btn-ghost {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}
