/* =============================================
   CLOUDRIDGE STUDIOS — style.css
   Company website — glassmorphism + zone backgrounds
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; transition: background-color 0.4s, color 0.4s; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { text-decoration: none; }
ul, ol { list-style: none; }
svg { flex-shrink: 0; }

/* ===== DESIGN TOKENS ===== */
:root {
    --navy:       #1e3a5f;
    --navy-dark:  #162d4d;
    --navy-light: #2d4f73;
    --teal:       #2c7a7b;
    --teal-br:    #4ecdc4;
    --teal-light: #a8edea;
    --amber:      #d97706;
    --amber-br:   #fbbf24;
    --emerald:    #10b981;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-2xl: 40px;

    --shadow-sm:  0 2px 8px rgba(0,0,0,.15);
    --shadow-md:  0 8px 32px rgba(0,0,0,.2);
    --shadow-lg:  0 16px 64px rgba(0,0,0,.3);
    --shadow-glow: 0 0 40px rgba(78,205,196,.2);

    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --ease-out:    cubic-bezier(.22,1,.36,1);

    --header-h: 68px;
}

/* ===== DARK THEME (default) ===== */
[data-theme="dark"] {
    --bg:          #0d1b2e;
    --bg-2:        #111f34;
    --bg-3:        #162845;
    --surface:     #1b2f4a;
    --surface-2:   #22395a;
    --surface-3:   #2d4f73;
    --border:      rgba(255,255,255,.08);
    --border-2:    rgba(255,255,255,.13);
    --txt:         #f0f4f8;
    --txt-2:       #c8d8e8;
    --txt-3:       #627d98;
    --txt-inv:     #0d1b2e;
    --glow-1:      rgba(44,122,123,.35);
    --glow-2:      rgba(78,205,196,.22);
    --glow-3:      rgba(30,58,95,.5);
    --header-bg:   rgba(13,27,46,.55);
    color-scheme: dark;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg:          #f7f9fc;
    --bg-2:        #eef2f7;
    --bg-3:        #e4eaf2;
    --surface:     #ffffff;
    --surface-2:   #f0f4f8;
    --surface-3:   #e2e8f0;
    --border:      rgba(0,0,0,.07);
    --border-2:    rgba(0,0,0,.12);
    --txt:         #1e3a5f;
    --txt-2:       #4a6380;
    --txt-3:       #7f97b2;
    --txt-inv:     #ffffff;
    --glow-1:      rgba(44,122,123,.15);
    --glow-2:      rgba(78,205,196,.1);
    --glow-3:      rgba(200,215,230,.5);
    --header-bg:   rgba(247,249,252,.72);
    color-scheme: light;
}

body { background: var(--bg); color: var(--txt); }

/* ===== THEME REVEAL ===== */
.theme-reveal {
    position: fixed; inset: 0; z-index: 9998;
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    will-change: transform;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(36px, 7vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 5vw, 52px); font-weight: 700; }
h3 { font-size: clamp(18px, 3vw, 24px); font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }

.gradient-text {
    background: linear-gradient(135deg, var(--teal-br) 0%, #a8edea 50%, var(--teal-br) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}
[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #1a6b6c 0%, var(--teal) 50%, #1a6b6c 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes gradientShift {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }

/* Light mode — content sits above pseudo-element zone fades */
[data-theme="light"] .about-section > *,
[data-theme="light"] .products-section > *,
[data-theme="light"] .contact-section > * { position: relative; z-index: 1; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-lg);
    font-size: 15px; font-weight: 600;
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-br));
    color: #fff;
    box-shadow: 0 4px 20px rgba(78,205,196,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(78,205,196,.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    background: var(--surface);
    color: var(--txt);
    border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ===== SECTION COMMON ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(78,205,196,.12);
    color: var(--teal-br);
    border-radius: 100px;
    font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(78,205,196,.2);
}
[data-theme="light"] .section-tag { color: var(--teal); border-color: rgba(44,122,123,.25); }
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 17px; color: var(--txt-2); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background .4s;
}
.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 100%;
    display: flex; align-items: center; gap: 32px;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700;
    color: var(--txt);
    flex-shrink: 0;
}
.nav-logo em { font-style: normal; color: #4d9fff; }
.logo-img { width: 32px; height: 32px; object-fit: contain; }
.logo-img-svart { width: auto; height: 36px; max-width: 160px; }

[data-theme="dark"]  .logo-img-svart { display: none; }
[data-theme="dark"]  .logo-img-vit   { display: block; }
[data-theme="light"] .logo-img-vit   { display: none; }
[data-theme="light"] .logo-img-svart { display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav-link {
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-size: 14.5px; font-weight: 500;
    color: var(--txt-2);
    transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--txt); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Language selector */
.lang-selector { position: relative; }
.lang-toggle {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 10px;
    border-radius: var(--radius-md);
    font-size: 13.5px; font-weight: 500;
    color: var(--txt-2);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all .2s;
}
.lang-toggle:hover { color: var(--txt); border-color: var(--border-2); }
.lang-chevron { transition: transform .25s; }
.lang-selector.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 165px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: flex; flex-direction: column;
    opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s;
    z-index: 200;
}
.lang-selector.open .lang-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.lang-opt {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 500;
    color: var(--txt-2);
    transition: background .15s, color .15s;
    text-align: left;
}
.lang-opt:hover, .lang-opt.active { background: var(--surface-2); color: var(--txt); }
.lang-opt.active { color: var(--teal-br); }

/* Theme button */
.theme-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--txt-2);
    transition: all .2s;
    flex-shrink: 0;
}
.theme-btn:hover { color: var(--teal-br); border-color: var(--teal); transform: rotate(15deg); }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; border-radius: var(--radius-sm);
}
.hamburger span {
    width: 22px; height: 2px;
    background: var(--txt-2);
    border-radius: 2px;
    transition: all .25s;
    display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    padding: calc(var(--header-h) + 80px) 0 80px;
    position: relative;
    display: flex; flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
}
.hero-glow {
    position: absolute; border-radius: 50%; filter: blur(80px);
    pointer-events: none;
}
.hero-glow-1 { width: 700px; height: 700px; background: var(--glow-1); top: -200px; left: -200px; animation: glow1 10s ease-in-out infinite alternate; }
.hero-glow-2 { width: 500px; height: 500px; background: var(--glow-2); top: 50%; right: -100px; animation: glow2 12s ease-in-out infinite alternate; }
.hero-glow-3 { width: 400px; height: 400px; background: var(--glow-3); bottom: -100px; left: 30%; animation: glow3 8s ease-in-out infinite alternate; }
@keyframes glow1 { to { transform: translate(60px, 80px) scale(1.15); } }
@keyframes glow2 { to { transform: translate(-40px, 50px) scale(1.1); } }
@keyframes glow3 { to { transform: translate(30px, -40px) scale(1.08); } }


.hero-content {
    position: relative; z-index: 2;
    max-width: 760px; width: 100%; margin: 0 auto; padding: 0 24px;
    display: flex; flex-direction: column; align-items: center;
    flex: 1;
    text-align: center;
}
.hero-text { width: 100%; }

/* Launch badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(78,205,196,.1);
    border: 1px solid rgba(78,205,196,.25);
    border-radius: 100px;
    font-size: 13px; font-weight: 500;
    color: var(--teal-br);
    margin-bottom: 20px;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--emerald);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,.4); } 50% { opacity: .7; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16,185,129,0); } }

.hero-title { margin-bottom: 20px; }
.hero-title span { display: block; }
.hero-desc {
    font-size: 18px; color: var(--txt-2); margin-bottom: 36px;
    line-height: 1.75; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Stats strip */
.hero-stats {
    position: relative; z-index: 2;
    width: 100%; max-width: 680px; padding: 0 24px;
    margin-top: 60px;
    display: flex; align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.stat-item { flex: 1; min-width: 100px; display: flex; flex-direction: column; align-items: center; padding: 22px 16px; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(20px, 3.5vw, 32px); font-weight: 700; color: var(--txt); line-height: 1; }
.stat-label { font-size: 12px; color: var(--txt-2); margin-top: 5px; }
.stat-divider { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; align-self: center; }

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    animation: scrollHintFade 2.5s ease-in-out infinite;
}
.scroll-mouse { width: 24px; height: 38px; border: 2px solid var(--border-2); border-radius: 12px; display: flex; justify-content: center; padding-top: 8px; }
.scroll-wheel { width: 4px; height: 7px; background: var(--teal-br); border-radius: 2px; animation: scrollWheel 2s ease-in-out infinite; }
@keyframes scrollWheel { 0%,100% { transform: translateY(0); opacity: 1; } 75% { transform: translateY(10px); opacity: 0; } }
@keyframes scrollHintFade { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ===== ZONE BACKGROUNDS — DARK MODE ===== */

/* Zone 0: Hero — glass architecture */
[data-theme="dark"] .hero {
    background-image:
        linear-gradient(rgba(13,27,46,0.82), rgba(13,27,46,0.82)),
        url('../images/zone 0_v2.webp');
    background-size: 100% 100%, cover;
    background-attachment: scroll, fixed;
    background-position: 0 0, center center;
    background-repeat: no-repeat, no-repeat;
}

/* Zone 1: About section — developer desk */
[data-theme="dark"] .about-section {
    background-image:
        linear-gradient(rgba(13,27,46,0.80), rgba(13,27,46,0.80)),
        url('../images/zone 1.webp');
    background-size: 100% 100%, cover;
    background-attachment: scroll, fixed;
    background-position: 0 0, center center;
    background-repeat: no-repeat, no-repeat;
}

/* Zone 2: Products section — phone on concrete */
[data-theme="dark"] .products-section {
    background-image:
        linear-gradient(rgba(13,27,46,0.80), rgba(13,27,46,0.80)),
        url('../images/zone 2_v1.webp');
    background-size: 100% 100%, cover;
    background-attachment: scroll, fixed;
    background-position: 0 0, center center;
    background-repeat: no-repeat, no-repeat;
}

/* Zone 3: Contact section — aerial city blue hour */
[data-theme="dark"] .contact-section {
    background-image:
        linear-gradient(
            rgba(6,14,30,0.88) 0%,
            rgba(6,14,30,0.80) 40%,
            rgba(6,14,30,0.68) 70%,
            rgba(6,14,30,0.60) 100%
        ),
        url('../images/zone 3_v2.webp');
    background-size: 100% 100%, cover;
    background-attachment: fixed, fixed;
    background-position: center top, center center;
    background-repeat: no-repeat, no-repeat;
}

/* Hide hero glows in dark contact so no bright spots appear */
[data-theme="dark"] .contact-section .contact-bg { display: none; }

/* ===== ZONE TRANSITIONS — DARK MODE ===== */
[data-theme="dark"] .hero::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 180px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 1;
}
[data-theme="dark"] .about-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 240px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none; z-index: 0;
}
[data-theme="dark"] .about-section::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 140px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 0;
}
[data-theme="dark"] .products-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 200px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none; z-index: 0;
}
[data-theme="dark"] .products-section::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 140px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 0;
}
[data-theme="dark"] .contact-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 200px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none; z-index: 1;
}
[data-theme="dark"] .contact-section::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 1;
}

/* ===== ZONE BACKGROUNDS — LIGHT MODE ===== */
/* Zone 0: glass building is mid-toned — moderate overlay */
[data-theme="light"] .hero {
    background-image:
        linear-gradient(rgba(247,249,252,0.84), rgba(247,249,252,0.84)),
        url('../images/zone 0_v2.webp');
    background-size: 100% 100%, cover;
    background-attachment: scroll, fixed;
    background-position: 0 0, center center;
    background-repeat: no-repeat, no-repeat;
}
/* Zone 1: very dark desk — lighter overlay so structure still shows */
[data-theme="light"] .about-section {
    background-image:
        linear-gradient(rgba(247,249,252,0.70), rgba(247,249,252,0.70)),
        url('../images/zone 1.webp');
    background-size: 100% 100%, cover;
    background-attachment: scroll, fixed;
    background-position: 0 0, center center;
    background-repeat: no-repeat, no-repeat;
}
/* Zone 2: dark concrete — lighter overlay to preserve texture */
[data-theme="light"] .products-section {
    background-image:
        linear-gradient(rgba(238,242,247,0.73), rgba(238,242,247,0.73)),
        url('../images/zone 2_v1.webp');
    background-size: 100% 100%, cover;
    background-attachment: scroll, fixed;
    background-position: 0 0, center center;
    background-repeat: no-repeat, no-repeat;
}
/* Zone 3: dark city night — lighter overlay to keep city lights visible */
[data-theme="light"] .contact-section {
    background-image:
        linear-gradient(rgba(247,249,252,0.70), rgba(247,249,252,0.70)),
        url('../images/zone 3_v2.webp');
    background-size: 100% 100%, cover;
    background-attachment: scroll, fixed;
    background-repeat: no-repeat, no-repeat;
}

/* ===== ZONE TRANSITIONS — LIGHT MODE ===== */
[data-theme="light"] .hero::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 180px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 1;
}
[data-theme="light"] .about-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 240px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none; z-index: 2;
}
[data-theme="light"] .about-section::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 140px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 2;
}
[data-theme="light"] .products-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 200px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none; z-index: 2;
}
[data-theme="light"] .products-section::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 140px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 2;
}
[data-theme="light"] .contact-section::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 200px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none; z-index: 2;
}
[data-theme="light"] .contact-section::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none; z-index: 2;
}

/* ===== ABOUT SECTION ===== */
.about-section { position: relative; overflow: hidden; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
    margin-bottom: 56px;
}
.about-year { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; }
.year-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
    color: var(--teal-br);
}
.year-lbl { font-size: .8rem; font-weight: 600; color: var(--txt-3); text-transform: uppercase; letter-spacing: .1em; }
.about-text h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); font-weight: 700; color: var(--txt); margin-bottom: 16px; }
.about-text p  { font-size: 1rem; color: var(--txt-2); line-height: 1.75; margin-bottom: 16px; }

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value-card {
    padding: 22px 20px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.value-card:hover { border-color: rgba(78,205,196,.3); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.value-icon {
    width: 46px; height: 46px; border-radius: var(--radius-sm);
    background: rgba(44,122,123,.12); border: 1px solid rgba(78,205,196,.18);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.value-icon svg { stroke: var(--teal-br); width: 22px; height: 22px; }
.value-card h4 { font-size: .93rem; font-weight: 700; color: var(--txt); margin-bottom: 7px; }
.value-card p  { font-size: .85rem; color: var(--txt-2); line-height: 1.55; }

.about-philosophy { text-align: center; }
.philosophy-text {
    display: inline-block;
    font-size: clamp(1rem, 2.5vw, 1.15rem); font-style: italic;
    color: var(--txt-2); max-width: 640px;
    padding: 32px 44px; border-radius: var(--radius-xl);
    border: 1px solid var(--border-2);
    background: rgba(44,122,123,.04);
    position: relative;
}
.philosophy-text::before {
    content: '\201C'; font-size: 3rem; color: var(--teal-br);
    position: absolute; top: -8px; left: 18px;
    line-height: 1; font-style: normal; opacity: 0.6;
}
.philosophy-text::after {
    content: '\201D'; font-size: 3rem; color: var(--teal-br);
    position: absolute; bottom: -24px; right: 18px;
    line-height: 1; font-style: normal; opacity: 0.6;
}
[data-theme="light"] .philosophy-text { background: rgba(44,122,123,.06); border-color: rgba(44,122,123,.2); color: #2c4a6a; }

/* ===== PRODUCTS SECTION ===== */
.products-section { position: relative; overflow: hidden; }
.products-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 28px; max-width: 560px; margin: 0 auto;
}
.product-card {
    padding: 36px 32px; border-radius: var(--radius-xl);
    background: var(--surface); border: 1.5px solid var(--border);
    transition: transform .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-featured {
    border-color: rgba(78,205,196,.4);
    background: linear-gradient(145deg, var(--surface) 0%, rgba(78,205,196,.05) 100%);
    box-shadow: 0 0 0 1px rgba(78,205,196,.15), var(--shadow-glow);
}
.product-card-soon {
    border-style: dashed;
    border-color: var(--border-2);
}
.product-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
}
.product-icon {
    width: 60px; height: 60px; border-radius: 16px;
    overflow: hidden; flex-shrink: 0;
    background: rgba(78,205,196,.1);
    border: 1px solid rgba(78,205,196,.2);
    display: flex; align-items: center; justify-content: center;
}
.product-icon-img { width: 100%; height: 100%; object-fit: cover; }
.jp-dark  { display: block; }
.jp-light { display: none; }
[data-theme="light"] .jp-dark  { display: none; }
[data-theme="light"] .jp-light { display: block; object-fit: contain; }
.product-icon-placeholder { color: var(--txt-3); }
.product-meta { flex: 1; min-width: 0; }
.product-name { font-size: 1.3rem; font-weight: 700; color: var(--txt); margin-bottom: 6px; }
.product-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(78,205,196,.12);
    color: var(--teal-br);
    border: 1px solid rgba(78,205,196,.2);
    border-radius: 100px;
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
[data-theme="light"] .product-badge { color: var(--teal); border-color: rgba(44,122,123,.25); }
.product-desc { font-size: 15px; color: var(--txt-2); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.product-desc-dim { opacity: .6; }
.product-platforms { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.platform-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px; font-weight: 500; color: var(--txt-2);
}
.platform-badge--soon { opacity: 0.7; }
.platform-soon-tag {
    font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--teal), var(--teal-br));
    color: #fff;
    padding: 2px 6px; border-radius: 100px;
    text-transform: uppercase; white-space: nowrap;
}
.product-cta { align-self: flex-start; font-size: 14px; padding: 10px 22px; }
.product-soon-dots {
    display: flex; gap: 6px; align-items: center;
    margin-top: auto; padding-top: 16px;
}
.product-soon-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-2);
    animation: dotBounce 1.4s ease-in-out infinite;
}
.product-soon-dots span:nth-child(2) { animation-delay: .2s; }
.product-soon-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-6px); opacity: 1; } }

/* ===== CONTACT SECTION ===== */
.contact-section { position: relative; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-info-center { position: relative; z-index: 1; }
.contact-items {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
    max-width: 760px; margin: 0 auto;
}
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 24px 28px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color .2s, transform .2s;
}
.contact-item:hover { border-color: rgba(78,205,196,.3); transform: translateY(-3px); }
.contact-item > div { min-width: 0; overflow: hidden; }
.ci-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    background: rgba(78,205,196,.1);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-br);
}
.ci-label { display: block; font-size: 12px; color: var(--txt-3); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.ci-val { display: block; font-size: 14.5px; font-weight: 600; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
a.ci-val:hover { color: var(--teal-br); }
[data-theme="light"] a.ci-val:hover { color: var(--teal); }

/* ===== FOOTER ===== */
.footer {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 60px 0 36px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--txt-2); line-height: 1.65; max-width: 280px; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--txt); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--txt-2); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--teal-br); }
[data-theme="light"] .footer-col a:hover { color: var(--teal); }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--txt-3); }

/* ===== GLASS CARDS — DARK MODE ===== */
[data-theme="dark"] .value-card,
[data-theme="dark"] .contact-item {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] .value-card:hover,
[data-theme="dark"] .contact-item:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(78,205,196,.3);
}
[data-theme="dark"] .hero-stats {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
[data-theme="dark"] .product-card {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] .product-card-featured {
    background: linear-gradient(145deg, rgba(255,255,255,.05) 0%, rgba(78,205,196,.07) 100%);
    border-color: rgba(78,205,196,.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] .product-card:hover { background: rgba(255,255,255,.06); }
[data-theme="dark"] .product-card-featured:hover { background: linear-gradient(145deg, rgba(255,255,255,.07) 0%, rgba(78,205,196,.10) 100%); }

/* ===== GLASS CARDS — LIGHT MODE ===== */
[data-theme="light"] .value-card,
[data-theme="light"] .contact-item {
    background: rgba(255,255,255,.48);
    border-color: rgba(255,255,255,.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
[data-theme="light"] .value-card:hover,
[data-theme="light"] .contact-item:hover {
    background: rgba(255,255,255,.65);
    border-color: rgba(44,122,123,.35);
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
}
[data-theme="light"] .hero-stats {
    background: rgba(255,255,255,.48);
    border-color: rgba(255,255,255,.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
[data-theme="light"] .product-card {
    background: rgba(255,255,255,.48);
    border-color: rgba(255,255,255,.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
[data-theme="light"] .product-card-featured {
    background: linear-gradient(145deg, rgba(255,255,255,.55) 0%, rgba(44,122,123,.12) 100%);
    border-color: rgba(44,122,123,.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(44,122,123,.14);
}
[data-theme="light"] .product-card:hover { background: rgba(255,255,255,.65); }
[data-theme="light"] .product-card-featured:hover { background: linear-gradient(145deg, rgba(255,255,255,.68) 0%, rgba(44,122,123,.16) 100%); }

/* Stronger text colors on image zone backgrounds in light mode */
[data-theme="light"] .about-section .section-title,
[data-theme="light"] .products-section .section-title,
[data-theme="light"] .contact-section .section-title { color: #0f2840; }
[data-theme="light"] .about-section .section-subtitle,
[data-theme="light"] .products-section .section-subtitle,
[data-theme="light"] .contact-section .section-subtitle { color: #2c4a6a; }
[data-theme="light"] .about-section .value-card h4,
[data-theme="light"] .about-section .story-text,
[data-theme="light"] .about-section .story-label { color: #0f2840; }
[data-theme="light"] .value-card p { color: #2c4a6a; }
[data-theme="light"] .contact-item label { color: #0f2840; }

[data-theme="light"] .stat-num { color: var(--teal); }
[data-theme="light"] .hero-badge { color: var(--teal); border-color: rgba(44,122,123,.25); background: rgba(44,122,123,.08); }
[data-theme="light"] .year-num { color: var(--teal); }

/* Tone down icons and labels in light mode */
[data-theme="light"] .value-icon { background: rgba(44,122,123,.09); border-color: rgba(44,122,123,.20); }
[data-theme="light"] .value-icon svg { stroke: var(--teal); }
[data-theme="light"] .ci-icon { background: rgba(44,122,123,.09); color: var(--teal); }
[data-theme="light"] .ci-label { color: #2c4a6a; }
[data-theme="light"] .philosophy-text::before,
[data-theme="light"] .philosophy-text::after { color: var(--teal); }

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: #0d1b2a;
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-loader.loader-reveal-out { clip-path: circle(0% at 50% 50%); }
.loader-text {
    display: flex; align-items: baseline;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em;
    user-select: none;
}
.loader-word { display: inline-flex; }
.loader-space { display: inline-block; width: 0.35em; }
.loader-letter {
    display: inline-block; color: #ffffff; opacity: 0;
    transform: translateY(20px);
    animation: letterIn 0.35s cubic-bezier(0.2, 0, 0, 1) forwards;
}
.loader-word-studios .loader-letter {
    background: linear-gradient(135deg, #4d9fff 0%, #a0c8ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes letterIn  { to { opacity: 1; transform: translateY(0); } }
@keyframes letterOut { to { opacity: 0; transform: translateY(-16px); } }

/* ===== SCROLL REVEAL ===== */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .45s !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand p { max-width: 100%; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .main-nav { display: none; flex-direction: column; gap: 4px; }
    .main-nav.mobile-open {
        display: flex;
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: var(--header-bg);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        z-index: 99;
    }
    .hamburger { display: flex; }
    .hero-stats { flex-direction: column; border-radius: var(--radius-lg); }
    .stat-divider { width: 80%; height: 1px; }
    .contact-items { flex-direction: column; }
    .contact-item { max-width: 100%; }
    .about-values { grid-template-columns: 1fr; }
    .hero-desc { font-size: 16px; }
}

@media (max-width: 480px) {
    .hero-content { padding: 0 16px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .philosophy-text { padding: 24px 28px; }
}
