/* ============================================================
   Eclipse AI — Design System
   ============================================================ */

/* --- Custom Properties --- */
:root {
    /* Canvas */
    --void: #050507;
    --surface: #0A0A0F;
    --surface-raised: #111118;
    --surface-overlay: rgba(17, 17, 24, 0.85);

    /* Corona — indigo to white gradient system */
    --corona-deep: #4338CA;
    --corona: #818CF8;
    --corona-bright: #C7D2FE;
    --corona-glow: rgba(129, 140, 248, 0.15);
    --corona-glow-strong: rgba(129, 140, 248, 0.3);

    /* Text */
    --text-primary: #F0F0F5;
    --text-secondary: #9498A8;
    --text-muted: #555868;

    /* Borders */
    --border-default: rgba(129, 140, 248, 0.12);
    --border-hover: rgba(129, 140, 248, 0.25);

    /* Gradients */
    --grad-corona: linear-gradient(135deg, #4338CA, #818CF8, #E0E7FF);
    --grad-corona-subtle: linear-gradient(135deg, rgba(67,56,202,0.08), rgba(224,231,255,0.08));
    --grad-corona-border: linear-gradient(90deg, #4338CA, #818CF8, #E0E7FF);

    /* Functional */
    --success: #10B981;
    --danger: #E5534B;

    /* Spacing */
    --nav-height: 72px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
}

body {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--void);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Grid Background + Radial Orbs --- */
main {
    background:
        linear-gradient(rgba(129, 140, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.04) 1px, transparent 1px),
        radial-gradient(circle 600px at 10% 20%, rgba(129, 140, 248, 0.07) 0%, transparent 60%),
        radial-gradient(circle 550px at 85% 15%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        radial-gradient(circle 650px at 70% 80%, rgba(67, 56, 202, 0.05) 0%, transparent 60%),
        radial-gradient(circle 500px at 15% 75%, rgba(129, 140, 248, 0.05) 0%, transparent 60%);
    background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, textarea {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.25rem; }

.text-gradient {
    background: var(--grad-corona);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.text-gradient-center {
    background: var(--grad-corona);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    background: linear-gradient(
        90deg,
        #4338CA 0%, #818CF8 15%, #E0E7FF 30%,
        #E0E7FF 32%, #fff 34%, #E0E7FF 36%,
        #818CF8 50%, #4338CA 65%,
        #818CF8 80%, #E0E7FF 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 6s ease-in-out infinite;
}

/* Section label — small caps above headings */
.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--corona);
    margin-bottom: 12px;
}

.section-label-center {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--corona);
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    line-height: 1.7;
}

small, .text-sm {
    font-size: 0.85rem;
}

/* Decorative gradient line */
.gradient-line {
    width: 60px;
    height: 2px;
    background: var(--grad-corona-border);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.gradient-line-center {
    width: 60px;
    height: 2px;
    background: var(--grad-corona-border);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-header .section-subtitle {
    margin: 16px auto 0;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: none;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-corona-border);
    opacity: 0.5;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    display: flex;
    align-items: baseline;
    gap: 6px;
    position: relative;
    transition: filter 0.3s var(--ease-out-expo);
}

a.nav-logo:hover {
    filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.6));
    transform: translateY(-1px);
}

a.nav-logo:hover .eclipse {
    background: linear-gradient(90deg, #818CF8, #C7D2FE, #fff, #C7D2FE, #818CF8);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

a.nav-logo:hover .ai {
    background: linear-gradient(90deg, #C7D2FE, #E0E7FF, #fff, #E0E7FF, #C7D2FE);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-logo .eclipse {
    background: linear-gradient(
        90deg,
        #4338CA 0%, #818CF8 15%, #E0E7FF 30%,
        #E0E7FF 32%, #fff 34%, #E0E7FF 36%,
        #818CF8 50%, #4338CA 65%,
        #818CF8 80%, #E0E7FF 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 6s ease-in-out infinite;
}

.nav-logo .ai {
    font-size: inherit;
    font-weight: 300;
    background: linear-gradient(
        90deg,
        #818CF8 0%, #C7D2FE 15%, #E0E7FF 30%,
        #E0E7FF 32%, #fff 34%, #E0E7FF 36%,
        #C7D2FE 50%, #818CF8 65%,
        #C7D2FE 80%, #E0E7FF 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    animation: text-shine 6s ease-in-out infinite;
    animation-delay: 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links > a,
.nav-dropdown-wrapper > .nav-trigger {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.25s var(--ease-out-expo);
    position: relative;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-links > a:hover,
.nav-dropdown-wrapper > .nav-trigger:hover,
.nav-dropdown-wrapper:hover > .nav-trigger {
    color: var(--text-primary);
}

.nav-links > a.active,
.nav-dropdown-wrapper > .nav-trigger.active {
    color: var(--corona-bright);
}

.nav-links > a.active::after,
.nav-dropdown-wrapper > .nav-trigger.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--grad-corona-border);
}

/* Dropdown chevron */
.nav-trigger .chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.3s var(--ease-out-expo);
    opacity: 0.5;
}

.nav-dropdown-wrapper:hover .nav-trigger .chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* --- Nav Dropdowns --- */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 260px;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo), visibility 0.25s;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 1px rgba(129, 140, 248, 0.2);
    border-radius: 0;
}

/* Invisible hover bridge so mouse can travel from trigger to dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    transition: background 0.2s;
    border-radius: 0;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.nav-dropdown a:hover {
    background: rgba(129, 140, 248, 0.06);
    border-image: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.2), transparent) 1;
}

.nav-dropdown a .dd-icon {
    width: 18px;
    height: 18px;
    color: var(--corona);
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

.nav-dropdown a:hover .dd-icon {
    opacity: 1;
}

.nav-dropdown .dd-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown .dd-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s;
}

.nav-dropdown a:hover .dd-title {
    color: var(--corona-bright);
}

.nav-dropdown .dd-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Gradient separator inside dropdowns */
.nav-dropdown .dd-separator {
    height: 1px;
    margin: 4px 20px;
    background: var(--grad-corona-border);
    opacity: 0.15;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Main Content Offset --- */
main {
    padding-top: var(--nav-height);
    position: relative;
    z-index: 2;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-corona);
    color: var(--void);
    box-shadow: 0 0 0 rgba(129, 140, 248, 0);
}

.btn-primary:hover {
    box-shadow: 0 4px 24px rgba(129, 140, 248, 0.3);
    transform: translateY(-2px);
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    color: var(--corona-bright);
    box-shadow: 0 0 0 rgba(129, 140, 248, 0);
}

.btn-outline:hover {
    background: rgba(129, 140, 248, 0.06);
    box-shadow: 0 4px 24px rgba(129, 140, 248, 0.15);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Cards --- */
.card {
    background: rgba(17, 17, 30, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 36px;
    transition: box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(129, 140, 248, 0.04);
}

.card:hover {
    box-shadow: 0 8px 40px var(--corona-glow), inset 0 1px 0 rgba(129, 140, 248, 0.06);
    transform: translateY(-4px);
}

.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    color: var(--corona);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--corona-bright);
    font-weight: 500;
    font-size: 0.88rem;
    margin-top: 20px;
    transition: gap 0.3s var(--ease-out-expo), color 0.2s;
}

.card-link:hover {
    gap: 12px;
    color: #E0E7FF;
}

/* --- Grid Layouts --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* --- Hero (Shared) --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-content .section-subtitle {
    margin: 24px 0 40px;
    font-size: 1.2rem;
}

/* --- Eclipse Corona Canvas (fixed on all pages) --- */
.eclipse-canvas {
    position: fixed;
    right: -20%;
    top: 50%;
    transform: translateY(-50%);
    width: 1100px;
    height: 1100px;
    z-index: 1;
    pointer-events: none;
    mask: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask: radial-gradient(circle, black 30%, transparent 70%);
}

/* Starfield canvas — fixed fullscreen behind everything */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Page Hero (non-home) --- */
.page-hero {
    text-align: center;
    padding: 100px 0 72px;
    position: relative;
}

.page-hero h1 {
    margin-bottom: 16px;
}

.page-hero .section-subtitle {
    margin: 0 auto;
}

/* --- Proof Strip --- */
.proof-strip {
    background: rgba(10, 10, 15, 0.6);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    position: relative;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--grad-corona);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Stat dividers */
.stat + .stat {
    position: relative;
}

.stat + .stat::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border-default);
}

/* --- CTA Banner --- */
.cta-banner {
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    position: relative;
}

.cta-banner h2 {
    margin-bottom: 12px;
}

.cta-banner .section-subtitle {
    margin: 0 auto 32px;
}

/* --- Service Detail Cards --- */
.service-detail {
    background: rgba(17, 17, 30, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 48px;
    margin-bottom: 32px;
    transition: box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(129, 140, 248, 0.03);
}

.service-detail:hover {
    box-shadow: 0 8px 40px var(--corona-glow), inset 0 1px 0 rgba(129, 140, 248, 0.05);
    transform: translateY(-2px);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.service-detail-header .card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.service-detail p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-lead {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-default);
}

.service-deliverables {
    background: rgba(129, 140, 248, 0.04);
    border: 1px solid var(--border-default);
    padding: 28px 32px;
    margin-top: 24px;
}

.service-deliverables h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--corona-bright);
    margin: 0 0 16px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-detail h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--corona-bright);
    margin: 28px 0 12px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-detail ul {
    list-style: none;
    padding: 0;
}

.service-detail ul li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.service-detail ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 2px;
    background: var(--grad-corona-border);
}

/* --- About Page --- */
.philosophy-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 2px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 20px 0 20px 28px;
    margin: 36px 0;
    max-width: 700px;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}

.approach-step {
    background: rgba(17, 17, 30, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 36px;
    counter-increment: step;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(129, 140, 248, 0.04);
    transition: box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.approach-step:hover {
    box-shadow: 0 8px 40px var(--corona-glow), inset 0 1px 0 rgba(129, 140, 248, 0.06);
    transform: translateY(-4px);
}

.approach-step::before {
    content: counter(step, decimal-leading-zero);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--grad-corona);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 16px;
}

.approach-step h3 {
    margin-bottom: 12px;
}

.approach-step p {
    color: var(--text-secondary);
}

.founder-section {
    background: rgba(17, 17, 30, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 48px;
    margin-top: 32px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(129, 140, 248, 0.04);
}

.founder-section h3 {
    margin-bottom: 16px;
}

.founder-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Case Studies --- */
.case-study {
    background: rgba(17, 17, 30, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 52px;
    margin-bottom: 48px;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(129, 140, 248, 0.03);
}

.case-study h3 {
    margin-bottom: 28px;
    font-size: 1.5rem;
}

.case-study-section {
    margin-bottom: 28px;
}

.case-study-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--corona-bright);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.case-study-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.case-study-quote {
    font-style: italic;
    color: var(--text-primary);
    border-left: 2px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 16px 0 16px 24px;
    margin-top: 28px;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tech-tag {
    background: rgba(129, 140, 248, 0.08);
    color: var(--corona-bright);
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(129, 140, 248, 0.12);
    border-radius: 0;
    letter-spacing: 0.02em;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--corona);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-success {
    display: none;
    background: rgba(17, 17, 30, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--success);
    padding: 32px;
    text-align: center;
    border-radius: 0;
}

.form-success.show {
    display: block;
}

.form-success p {
    color: var(--success);
    font-weight: 500;
}

.contact-info {
    background: rgba(17, 17, 30, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-image: var(--grad-corona-border) 1;
    padding: 36px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(129, 140, 248, 0.04);
}

.contact-info h3 {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-default);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--corona);
    flex-shrink: 0;
}

.contact-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--corona-bright);
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #E0E7FF;
}

/* --- Footer --- */
.footer {
    background: var(--void);
    border-top: 1px solid var(--border-default);
    padding: 72px 0 32px;
    position: relative;
    z-index: 2;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 20%, transparent 80%);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 20px;
}

.footer-quote {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: color 0.25s var(--ease-out-expo);
}

.footer-links a:hover {
    color: var(--corona-bright);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a,
.footer-contact span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-contact a:hover {
    color: var(--corona-bright);
}

.footer-bottom {
    border-top: 1px solid var(--border-default);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

/* === Shine Sweep System (transform-based, GPU-accelerated) === */

/* Container positioning for sweep pseudo-elements */
.card,
.service-detail,
.case-study,
.approach-step,
.contact-info,
.founder-section {
    position: relative;
    overflow: hidden;
}

/* Container hover shine — diagonal light band slides across on hover */
.card::after,
.service-detail::after,
.case-study::after,
.approach-step::after,
.contact-info::after,
.founder-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 55%, transparent 60%);
    transform: translateX(-120%);
    pointer-events: none;
    z-index: 2;
}

/* Transition only on hover — snaps back instantly on un-hover */
.card:hover::after,
.service-detail:hover::after,
.case-study:hover::after,
.approach-step:hover::after,
.contact-info:hover::after,
.founder-section:hover::after {
    transform: translateX(120%);
    transition: transform 0.7s ease;
}

/* Scroll-triggered entrance shine */
.shine-enter::after {
    transform: translateX(120%) !important;
    transition: transform 1s ease !important;
}

/* Button hover shine — brighter white flash */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.15) 55%, transparent 65%);
    transform: translateX(-120%);
    pointer-events: none;
    z-index: 1;
}

.btn:hover::after {
    transform: translateX(120%);
    transition: transform 0.5s ease;
}

/* Nav logo shine — now handled by text-shine on .eclipse and .ai spans */

/* Gradient line periodic pulse */
.gradient-line::after,
.gradient-line-center::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-100%);
    pointer-events: none;
    animation: line-shine 5s ease-in-out infinite;
}

/* Stat value text shine with stagger */
.stat-value {
    background: linear-gradient(
        90deg,
        #4338CA 0%, #818CF8 15%, #E0E7FF 30%,
        #E0E7FF 32%, #fff 34%, #E0E7FF 36%,
        #818CF8 50%, #4338CA 65%,
        #818CF8 80%, #E0E7FF 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 5s ease-in-out infinite;
}

.stat:nth-child(2) .stat-value { animation-delay: 0.4s; }
.stat:nth-child(3) .stat-value { animation-delay: 0.8s; }
.stat:nth-child(4) .stat-value { animation-delay: 1.2s; }

/* --- Animations --- */
@keyframes text-shine {
    0%, 50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes line-shine {
    0%, 65% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* Scroll reveal */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Premium Interactive Layer === */

/* Hero entrance choreography — elements start hidden, JS reveals them */
.hero-content .section-label,
.hero-content .hero-title,
.hero-content .section-subtitle,
.hero-content .btn-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.hero-content .section-label.revealed,
.hero-content .hero-title.revealed,
.hero-content .section-subtitle.revealed,
.hero-content .btn-group.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom cursor (desktop only, created by JS) */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--corona-bright);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(199, 210, 254, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}

.cursor-ring.hovering {
    width: 52px;
    height: 52px;
    border-color: rgba(129, 140, 248, 0.6);
}

/* Hide default cursor on desktop with fine pointer */
@media (pointer: fine) {
    *, *::before, *::after {
        cursor: none !important;
    }
}

/* Cursor spotlight (radial glow following mouse, created by JS) */
.cursor-spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.06) 0%, rgba(67, 56, 202, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
}

/* Noise/grain overlay (canvas-generated, applied by JS) */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.03;
    mix-blend-mode: overlay;
    animation: noise-shift 0.3s steps(3) infinite;
}

@keyframes noise-shift {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-2px, 1px); }
    66% { transform: translate(1px, -2px); }
    100% { transform: translate(0, 0); }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-corona-border);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10000;
    pointer-events: none;
}

/* Text scramble placeholder — prevent layout shift */
.scramble-active {
    display: inline-block;
    min-width: 1ch;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.6rem; }
    .hero-title { font-size: 3rem; }

    .hero {
        min-height: 70vh;
    }

    .stats-row {
        gap: 40px;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .eclipse-canvas {
        width: 800px;
        height: 800px;
        right: -15%;
    }
}

@media (max-width: 768px) {
    /* Mobile nav overrides */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 7, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border-default);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Mobile: all nav items full-width */
    .nav-links > a,
    .nav-dropdown-wrapper > .nav-trigger {
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-default);
        font-size: 0.95rem;
    }

    /* Mobile dropdowns: inline, always visible when parent toggled */
    .nav-dropdown-wrapper {
        width: 100%;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-image: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        display: none;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown-wrapper.mobile-open .nav-dropdown {
        display: block;
    }

    .nav-dropdown a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(129, 140, 248, 0.06);
    }

    .nav-dropdown a:hover {
        background: none;
    }

    .nav-dropdown .dd-separator {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 60px 0 80px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .btn-group {
        justify-content: center;
    }

    .hero-title { font-size: 2.5rem; }

    .eclipse-canvas {
        display: none;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .approach-steps {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-subtitle {
        max-width: 100%;
    }

    .philosophy-quote {
        padding-left: 20px;
    }

    .approach-step::before {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-row {
        gap: 32px;
    }

    .stat + .stat::before {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .service-detail {
        padding: 32px;
    }

    .case-study {
        padding: 32px;
    }

    .page-hero {
        padding: 72px 0 48px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.4rem; }
    .hero-title { font-size: 2rem; }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.88rem;
        min-height: 44px;
    }

    .card {
        padding: 24px;
    }

    .service-detail {
        padding: 24px;
    }

    .service-deliverables {
        padding: 20px;
    }

    .case-study {
        padding: 24px;
    }

    .stats-row {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .contact-grid {
        gap: 20px;
    }

    .tech-tag {
        padding: 8px 14px;
        font-size: 0.82rem;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .footer-quote {
        max-width: 100%;
    }

    .approach-step::before {
        font-size: 1.75rem;
    }

    .philosophy-quote {
        padding-left: 16px;
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-content .section-label,
    .hero-content .hero-title,
    .hero-content .section-subtitle,
    .hero-content .btn-group {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-title,
    .stat-value {
        animation: none;
    }

    .nav-logo .eclipse,
    .nav-logo .ai {
        animation: none;
    }

    .gradient-line::after,
    .gradient-line-center::after {
        animation: none;
        display: none;
    }

    .card::after,
    .service-detail::after,
    .case-study::after,
    .approach-step::after,
    .contact-info::after,
    .founder-section::after,
    .btn::after {
        display: none;
    }

    .noise-overlay {
        animation: none;
    }

    #starfield {
        display: none;
    }

    .scramble-active {
        /* Prevent scramble visual — text appears instantly */
    }
}
