/* ==========================================================================
   NOCA CLEAN ENERGY — DMIG Design System
   Futuristic Clean Energy / Industrial Technology Aesthetic
   ========================================================================== */

:root {
    /* ── Light theme tokens (Seox about-page palette) ── */
    --bg-0: #ffffff;
    --bg-1: #f6f8fa;
    --bg-2: #f4f4f4;
    --bg-3: #edf2fb;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-2: rgba(246, 248, 250, 0.85);
    --border: #dde1e9;
    --border-strong: #cfcfd0;

    --text: #090b0e;
    --text-soft: #3d4c5e;
    --text-muted: #5d6369;
    --text-dim: #8a91a0;

    --primary: #155fff;
    --primary-2: #0587ff;
    --primary-dark: #0d4ee0;
    --cyan: #0587ff;
    --cyan-2: #cbdaff;
    --violet: #3b32f6;
    --green: #2cbca5;

    --gradient-primary: #155fff;
    --gradient-primary-soft: rgba(21, 95, 255, 0.10);
    --gradient-metal: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
    --gradient-glow: radial-gradient(circle at 30% 30%, rgba(21, 95, 255, 0.18), transparent 60%);
    --gradient-text: #155fff;

    --shadow-card: 0 20px 50px -25px rgba(9, 11, 14, 0.18);
    --shadow-glow: 0 14px 40px -12px rgba(21, 95, 255, 0.45);
    --shadow-cyan: 0 14px 40px -12px rgba(21, 95, 255, 0.30);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    --container-max: 1320px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text);
    margin: 0;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
    z-index: -2;
    pointer-events: none;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 1.4vw, 1.35rem); }

p { color: var(--text-soft); margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--text-soft); line-height: 1.7; }

.container-xxl { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Background Decorations
   ========================================================================== */

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
}
.bg-glow-1 {
    top: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, #155fff, transparent 70%);
    animation: float-glow 20s ease-in-out infinite;
}
.bg-glow-2 {
    bottom: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, #0587ff, transparent 70%);
    animation: float-glow 25s ease-in-out infinite reverse;
}
@keyframes float-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 40px); }
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
    position: fixed; inset: 0;
    background: var(--bg-0);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-core { position: relative; width: 120px; height: 120px; }
.preloader-core .ring {
    position: absolute; inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1.4s linear infinite;
}
.preloader-core .ring:nth-child(2) { inset: 12px; border-top-color: var(--primary); animation-duration: 1.8s; animation-direction: reverse; }
.preloader-core .ring:nth-child(3) { inset: 24px; border-top-color: var(--violet); animation-duration: 2.2s; }
.preloader-core .orb {
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--cyan);
    animation: pulse 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; } }

/* ==========================================================================
   Navbar
   ========================================================================== */

.site-header {
    position: fixed;
    top: 16px; left: 0; right: 0;
    z-index: 1000;
    transition: top .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
    top: 0;
}
.site-header.scrolled .navbar-row {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.navbar-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0;
    border-radius: 0;
    transition: all .3s var(--ease);
}

.brand {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--text); text-decoration: none;
    font-family: var(--font-display);
}
.brand-mark {
    position: relative;
    width: 38px; height: 38px;
    display: inline-grid; place-items: center;
}
.brand-mark-core {
    width: 14px; height: 14px;
    background: var(--gradient-primary);
    border-radius: 0;
    box-shadow: 0 0 20px var(--cyan);
    z-index: 2;
}
.brand-mark-ring {
    position: absolute; inset: 0;
    border: 0;
    border-radius: 0;
    opacity: .6;
    animation: brand-pulse 3s ease-in-out infinite;
}
.brand-mark::after {
    content: '';
    position: absolute; inset: -4px;
    border: 0;
    border-radius: 0;
    animation: spin 12s linear infinite;
}

/* Logo image variant of brand-mark */
.brand-mark-img {
    width: 44px; height: 44px;
}
.brand-mark-img img {
    position: relative;
    z-index: 2;
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(21, 95, 255, 0.45));
}
.brand-mark-img::after {
    inset: -3px;
}

/* Plain hero variant — large cutout image, no orbit/glow chrome */
.hero-visual-plain {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto;
    min-height: 480px;
    background: transparent;
}
.hero-cutout {
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 40px 60px rgba(9, 11, 14, 0.18)) drop-shadow(0 0 80px rgba(21, 95, 255, 0.18));
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@media (max-width: 768px) {
    .hero-visual-plain { min-height: 340px; }
    .hero-cutout { max-width: 460px; }
}

/* Hero generator photo (sits inside the orbital composition) */
.hero-generator-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}
/* Wider container when showing the real photo, since DMIG product photo is closer to 1:1 */
.hero-generator:has(.hero-generator-photo) {
    width: 82%;
    max-width: 540px;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(21, 95, 255, 0.28));
}
@media (max-width: 768px) {
    .hero-generator:has(.hero-generator-photo) { width: 86%; }
}

/* DMIG flagship-section showcase frame */
.dmig-showcase .image-frame {
    border-radius: 0;
    border: 0;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(21, 95, 255, 0.35);
}
@keyframes brand-pulse { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.15); opacity: .3; } }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text-main { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-text-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-top: 3px; }

.primary-nav {
    display: flex; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 0;
}
.primary-nav .nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 14px;
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 0;
    transition: color .25s var(--ease), background .25s var(--ease);
}
.primary-nav .nav-link:hover, .primary-nav .nav-link.active {
    color: var(--text);
    background: rgba(21, 95, 255, 0.06);
}

.has-dropdown { position: relative; }
.dropdown-menu-custom {
    position: absolute; top: calc(100% + 12px); left: 0;
    list-style: none; margin: 0; padding: 8px;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow-card);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all .25s var(--ease);
    z-index: 100;
}
.has-dropdown:hover .dropdown-menu-custom {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu-custom a {
    display: block;
    padding: 10px 14px;
    color: var(--text-soft);
    font-size: 0.9rem;
    border-radius: 0;
    transition: all .2s var(--ease);
}
.dropdown-menu-custom a:hover {
    background: var(--gradient-primary-soft);
    color: var(--text);
    padding-left: 18px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
    width: 44px; height: 44px;
    background: rgba(21, 95, 255, 0.08);
    border: 0;
    border-radius: 0;
    display: inline-grid; place-items: center;
    cursor: pointer;
    transition: all .25s var(--ease);
}
.hamburger:hover { background: rgba(21, 95, 255, 0.14); }
.hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    margin: 3px 0;
    transition: all .3s var(--ease);
    border-radius: 0;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
    position: fixed; inset: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    z-index: 999;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
    overflow-y: auto;
    padding: 100px 24px 40px;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-inner { max-width: 480px; margin: 0 auto; }
.mobile-nav { list-style: none; margin: 0 0 32px; padding: 0; }
.mobile-nav li { border-bottom: 0; }
.mobile-nav a {
    display: block;
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    transition: all .3s var(--ease);
}
.mobile-nav a:hover { color: var(--cyan); padding-left: 12px; }

.mobile-cta { margin-top: 24px; }
.mobile-meta { margin-top: 24px; color: var(--text-muted); font-size: 0.9rem; }
.mobile-meta p { margin: 6px 0; }
.mobile-meta i { color: var(--cyan); margin-right: 6px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-glow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all .35s var(--ease);
    box-shadow: 0 8px 30px -8px rgba(21, 95, 255, 0.5);
}
.btn-glow::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #155fff 0%, #155fff 100%);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.btn-glow span, .btn-glow i { position: relative; z-index: 1; }
.btn-glow i { transition: transform .3s var(--ease); }
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -10px rgba(21, 95, 255, 0.7), 0 0 0 1px rgba(21, 95, 255, 0.5);
    color: #fff;
}
.btn-glow:hover::before { opacity: 1; }
.btn-glow:hover i { transform: translate(3px, -3px); }
.btn-glow-lg { padding: 16px 30px; font-size: 1rem; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    background: rgba(21, 95, 255, 0.06);
    border: 0;
    color: var(--text);
    font-weight: 500;
    border-radius: 0;
    text-decoration: none;
    transition: all .3s var(--ease);
}
.btn-ghost:hover {
    background: rgba(21, 95, 255, 0.14);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--cyan); font-weight: 500;
    text-decoration: none;
}
.btn-link-arrow i { transition: transform .3s var(--ease); }
.btn-link-arrow:hover i { transform: translate(4px, -4px); }

/* ==========================================================================
   Eyebrow / Section Header
   ========================================================================== */

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px;
    background: rgba(21, 95, 255, 0.08);
    border: 0;
    color: var(--cyan);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 0;
    box-shadow: 0 0 8px var(--cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
}
.section-title .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.section-title-block { max-width: 720px; margin: 0 auto; text-align: center; }
.section-title-block.text-start { margin: 0; text-align: left; }

/* ==========================================================================
   Sections base
   ========================================================================== */

.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.site-main { padding-top: 100px; }

/* ==========================================================================
   HERO — Homepage
   ========================================================================== */

.hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.4vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 24px;
}
.hero-title .gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.hero-title .glitch {
    display: inline-block;
    position: relative;
}
.hero-sub {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-soft);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-cta {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-bottom: 40px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 0;
}
.hero-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Hero visual — rotating energy core */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 600px;
    margin-left: auto;
}
.hero-orbit {
    position: absolute; inset: 0;
    border: 0;
    border-radius: 0;
    animation: spin 40s linear infinite;
}
.hero-orbit::before, .hero-orbit::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    background: var(--cyan);
    border-radius: 0;
    box-shadow: 0 0 20px var(--cyan);
}
.hero-orbit::before { top: -6px; left: 50%; transform: translateX(-50%); }
.hero-orbit::after { bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--primary); box-shadow: 0 0 20px var(--primary); }

.hero-orbit-2 {
    position: absolute; inset: 8%;
    border: 0;
    border-radius: 0;
    animation: spin 30s linear infinite reverse;
}
.hero-orbit-3 {
    position: absolute; inset: 16%;
    border: 0;
    border-radius: 0;
    animation: spin 50s linear infinite;
}

.hero-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64%; aspect-ratio: 1/1;
    background: radial-gradient(circle at 50% 50%, rgba(21, 95, 255, 0.35) 0%, rgba(21, 95, 255, 0.18) 40%, transparent 70%);
    border-radius: 0;
    filter: blur(2px);
    animation: pulse-core 4s ease-in-out infinite;
}
@keyframes pulse-core { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }

.hero-generator {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; max-width: 480px;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(21, 95, 255, 0.35)) drop-shadow(0 0 80px rgba(21, 95, 255, 0.3));
    animation: float-y 6s ease-in-out infinite;
}
@keyframes float-y { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 18px)); } }

.hero-spec-tag {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 0;
    border-radius: 0;
    padding: 10px 14px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text);
    box-shadow: var(--shadow-card);
    animation: float-y 5s ease-in-out infinite;
}
.hero-spec-tag .label {
    color: var(--cyan);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 2px;
}
.hero-spec-tag .value { font-size: 1.1rem; font-weight: 600; line-height: 1; }
.hero-spec-tag.t1 { top: 8%; right: -5%; animation-delay: 0s; }
.hero-spec-tag.t2 { bottom: 14%; left: -8%; animation-delay: 1.5s; }
.hero-spec-tag.t3 { top: 50%; right: -12%; animation-delay: 0.8s; }

.scroll-indicator {
    position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-indicator .line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, var(--cyan), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line { 0%, 100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ==========================================================================
   Cards — generic
   ========================================================================== */

.card-tech {
    position: relative;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 0;
    border-radius: 0;
    padding: 32px;
    height: 100%;
    transition: all .4s var(--ease);
    overflow: hidden;
}
.card-tech::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity .4s var(--ease);
}
.card-tech::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary-soft);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}
.card-tech:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(21, 95, 255, 0.3);
}
.card-tech:hover::before { opacity: 1; }
.card-tech:hover::after { opacity: 0.6; }
.card-tech > * { position: relative; z-index: 1; }

.card-icon {
    width: 60px; height: 60px;
    background: var(--gradient-primary-soft);
    border: 0;
    border-radius: 0;
    display: inline-grid; place-items: center;
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 20px;
    position: relative;
    transition: all .4s var(--ease);
}
.card-tech:hover .card-icon {
    transform: scale(1.05) rotate(-4deg);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(21, 95, 255, 0.4);
}
.card-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 0;
    border-radius: 0;
    opacity: 0;
    animation: spin 8s linear infinite;
    transition: opacity .4s var(--ease);
}
.card-tech:hover .card-icon::after { opacity: 1; }

.card-tech h4 {
    color: var(--text);
    margin-bottom: 12px;
    transition: color .3s var(--ease);
}
.card-tech p { color: var(--text-soft); margin-bottom: 16px; font-size: 0.95rem; }
.card-num {
    position: absolute;
    top: 26px; right: 32px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Marquee / Logos
   ========================================================================== */

.marquee-section {
    padding: 50px 0;
    border-top: 0;
    border-bottom: 0;
    background: rgba(246, 248, 250, 0.6);
    overflow: hidden;
}
.marquee-title {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.marquee {
    display: flex;
    gap: 80px;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-item {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-soft);
    opacity: 0.7;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.marquee-item::after {
    content: '';
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 0;
    opacity: 0.5;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   About preview
   ========================================================================== */

.about-stack {
    display: grid;
    gap: 20px;
}
.about-feature {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    transition: all .3s var(--ease);
}
.about-feature:hover {
    transform: translateX(6px);
}
.about-feature-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--gradient-primary-soft);
    border-radius: 0;
    display: grid; place-items: center;
    color: var(--cyan);
    font-size: 1.25rem;
}
.about-feature h5 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.about-feature p { font-size: 0.92rem; margin: 0; }

.image-frame {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: var(--gradient-metal);
    aspect-ratio: 4 / 5;
}
.image-frame::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--gradient-glow);
    z-index: 1;
    pointer-events: none;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame-tag {
    position: absolute;
    bottom: 20px; left: 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 0;
    border-radius: 0;
    padding: 14px 18px;
    z-index: 2;
    display: flex; align-items: center; gap: 12px;
}
.image-frame-tag-icon {
    width: 42px; height: 42px;
    background: var(--gradient-primary);
    border-radius: 0;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.2rem;
}
.image-frame-tag-text strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.image-frame-tag-text span { font-size: 0.8rem; color: var(--text-muted); }

/* Animated generator illustration (SVG fallback) */
.generator-illust {
    position: relative;
    width: 100%; height: 100%;
    display: grid; place-items: center;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */

.process-step {
    position: relative;
    padding: 32px;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    height: 100%;
    transition: all .4s var(--ease);
    overflow: hidden;
}
.process-step:hover {
    background: var(--surface-2);
    transform: translateY(-6px);
}
.process-step-num {
    position: absolute;
    top: -10px; right: -10px;
    width: 80px; height: 80px;
    background: var(--gradient-primary);
    border-radius: 0;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.12;
    transition: opacity .4s var(--ease);
}
.process-step:hover .process-step-num { opacity: 1; }
.process-step h4 { margin: 16px 0 10px; font-size: 1.2rem; }
.process-step p { font-size: 0.92rem; margin: 0; }
.process-step .process-icon {
    width: 56px; height: 56px;
    background: var(--gradient-primary-soft);
    border-radius: 0;
    display: grid; place-items: center;
    color: var(--cyan);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

/* ==========================================================================
   Stats / Counters
   ========================================================================== */

.stats-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    position: relative;
    padding: 36px;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    text-align: center;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.6;
}
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}
.stat-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Portfolio cards
   ========================================================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.portfolio-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: var(--gradient-metal);
    aspect-ratio: 4 / 5;
    cursor: pointer;
    transition: all .5s var(--ease);
    border: 0;
}
.portfolio-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .8s var(--ease);
}
.portfolio-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(4, 8, 22, 0.95) 100%);
    z-index: 1;
}
.portfolio-card:hover { transform: translateY(-8px); }
.portfolio-card:hover .portfolio-card-bg { transform: scale(1.06); }
.portfolio-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px;
    z-index: 2;
}
.portfolio-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(21, 95, 255, 0.15);
    border: 0;
    border-radius: 0;
    color: var(--cyan);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.portfolio-card h4 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; }
.portfolio-card p { color: var(--text-soft); font-size: 0.9rem; margin: 0 0 12px; }
.portfolio-link {
    width: 44px; height: 44px;
    background: var(--gradient-primary);
    border-radius: 0;
    display: grid; place-items: center;
    color: #fff;
    position: absolute;
    top: 20px; right: 20px;
    z-index: 3;
    transform: translateY(-10px); opacity: 0;
    transition: all .4s var(--ease);
}
.portfolio-card:hover .portfolio-link { transform: translateY(0); opacity: 1; }

/* Generator illustration backgrounds */
.gen-illust-1 { background: linear-gradient(135deg, #f6f8fa 0%, #edf2fb 100%); }
.gen-illust-2 { background: linear-gradient(135deg, #eaf1ff 0%, #155fff 200%); }
.gen-illust-3 { background: linear-gradient(135deg, #f4f4f4 0%, #155fff 220%); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
    padding: 36px;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    height: 100%;
    position: relative;
}
.testimonial-card .quote {
    position: absolute;
    top: 24px; right: 30px;
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(21, 95, 255, 0.15);
    line-height: 1;
}
.testimonial-stars {
    color: #cbdaff;
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.testimonial-card p {
    font-size: 1.02rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 24px;
}
.testimonial-author {
    display: flex; align-items: center; gap: 14px;
    border-top: 0;
    padding-top: 20px;
}
.testimonial-avatar {
    width: 54px; height: 54px;
    border-radius: 0;
    background: var(--gradient-primary);
    display: grid; place-items: center;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}
.testimonial-author strong {
    display: block; font-family: var(--font-display);
    font-size: 1rem; color: var(--text);
}
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item {
    background: var(--surface);
    border: 0;
    border-radius: 0;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all .3s var(--ease);
}
.faq-item.open {
    box-shadow: 0 14px 40px -20px rgba(21, 95, 255, 0.3);
}
.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px;
}
.faq-question .faq-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    background: var(--gradient-primary-soft);
    border: 0;
    border-radius: 0;
    display: grid; place-items: center;
    color: var(--cyan);
    transition: all .3s var(--ease);
}
.faq-item.open .faq-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
}
.faq-answer-inner {
    padding: 0 28px 24px;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   CTA Strip (footer-adjacent)
   ========================================================================== */

.cta-strip { padding: 0 0 80px; }
.cta-strip-inner {
    position: relative;
    background: linear-gradient(135deg, #0d2b5e 0%, #093037 100%);
    border: 0;
    border-radius: 0;
    padding: 60px;
    overflow: hidden;
    color: #ffffff;
}
.cta-strip-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 0% 50%, rgba(21, 95, 255, 0.25), transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(21, 95, 255, 0.3), transparent 50%);
    z-index: 0;
}
.cta-strip-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0;
    color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(246, 248, 250, 0.6) 100%);
    border-top: 0;
    padding: 80px 0 30px;
    position: relative;
}
.footer-top { padding-bottom: 50px; border-bottom: 0; }
.brand-footer { margin-bottom: 20px; }
.footer-blurb { color: var(--text-muted); font-size: 0.95rem; max-width: 360px; }
.footer-blurb-sm { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.footer-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; transition: all .25s var(--ease); }
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
    width: 40px; height: 40px;
    background: rgba(21, 95, 255, 0.06);
    border: 0;
    border-radius: 0;
    display: grid; place-items: center;
    color: var(--text-soft);
    transition: all .3s var(--ease);
}
.socials a:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(21, 95, 255, 0.5);
}

.newsletter {
    position: relative;
    display: flex;
    background: rgba(21, 95, 255, 0.06);
    border: 1px solid #dde1e9;
    border-radius: 0;
    padding: 6px;
    margin-bottom: 18px;
}
.newsletter input {
    flex: 1;
    background: none; border: none;
    padding: 10px 18px;
    color: var(--text);
    font-family: var(--font-body);
    outline: none;
    font-size: 0.92rem;
}
.newsletter input::placeholder { color: var(--text-muted); }
.newsletter button {
    width: 42px; height: 42px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    transition: transform .25s var(--ease);
}
.newsletter button:hover { transform: scale(1.08); }
.newsletter-ok {
    position: absolute;
    bottom: -28px; left: 18px;
    color: var(--green);
    font-size: 0.82rem;
    opacity: 0; transform: translateY(-4px);
    transition: all .3s var(--ease);
}
.newsletter-ok.show { opacity: 1; transform: translateY(0); }

.footer-meta {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 2;
}
.footer-meta i { color: var(--cyan); margin-right: 8px; }
.footer-meta a { color: var(--text-muted); }
.footer-meta a:hover { color: var(--cyan); }

.footer-bottom {
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* ==========================================================================
   Scroll-to-top
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 0;
    border-radius: 0;
    color: var(--text);
    display: grid; place-items: center;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s var(--ease);
    z-index: 100;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gradient-primary); }
.scroll-top svg {
    position: absolute; inset: -2px;
    transform: rotate(-90deg);
}
.scroll-top .scroll-progress {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    transition: stroke-dashoffset .1s linear;
}
.scroll-top i { font-size: 1.2rem; z-index: 2; }

/* ==========================================================================
   Page Header (sub-pages)
   ========================================================================== */

.page-header {
    padding: 80px 0 60px;
    position: relative;
    text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%; max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 14px;
}
.page-header h1 .gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.breadcrumb-custom {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 14px;
}
.breadcrumb-custom a { color: var(--cyan); }
.breadcrumb-custom .sep { color: var(--text-dim); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    padding: 40px 36px;
    height: 100%;
    transition: all .4s var(--ease);
    overflow: hidden;
}
.pricing-card.featured {
    background: linear-gradient(180deg, rgba(21, 95, 255, 0.08) 0%, var(--surface) 100%);
    transform: translateY(-12px);
}
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
}
.pricing-badge {
    position: absolute;
    top: 24px; right: 24px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 0;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card.featured:hover { transform: translateY(-16px); }
.pricing-tier { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px; }
.pricing-name { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.pricing-amount {
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 8px;
}
.pricing-amount .currency { color: var(--text-muted); font-size: 1.1rem; }
.pricing-amount .number {
    font-family: var(--font-display);
    font-size: 3rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text; color: transparent;
}
.pricing-amount .per { color: var(--text-muted); font-size: 0.95rem; }
.pricing-features {
    list-style: none; padding: 26px 0 0; margin: 26px 0;
    border-top: 0;
}
.pricing-features li {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 12px;
    color: var(--text-soft); font-size: 0.92rem;
}
.pricing-features li i {
    color: var(--cyan); font-size: 1rem; margin-top: 4px; flex-shrink: 0;
}
.pricing-features li.disabled { color: var(--text-dim); }
.pricing-features li.disabled i { color: var(--text-dim); }

/* ==========================================================================
   Team cards
   ========================================================================== */

.team-card {
    position: relative;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    transition: all .4s var(--ease);
}
.team-card:hover { transform: translateY(-6px); }
.team-photo {
    aspect-ratio: 1 / 1;
    background: var(--gradient-metal);
    position: relative;
    overflow: hidden;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease);
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(246, 248, 250, 0.6) 100%);
}
.team-initials {
    position: absolute;
    inset: 0;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    letter-spacing: -0.04em;
}
.team-body { padding: 24px 26px; }
.team-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}
.team-card h4 { font-size: 1.15rem; margin: 0 0 8px; }
.team-socials { display: flex; gap: 8px; }
.team-socials a {
    width: 32px; height: 32px;
    background: rgba(21, 95, 255, 0.08);
    border-radius: 0;
    display: grid; place-items: center;
    color: var(--text-soft);
    font-size: 0.9rem;
    transition: all .25s var(--ease);
}
.team-socials a:hover { background: var(--gradient-primary); color: #fff; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-wrap {
    background: var(--surface);
    border: 0;
    border-radius: 0;
    padding: 50px;
}
.form-field {
    position: relative;
    margin-bottom: 20px;
}
.form-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #dde1e9;
    border-radius: 0;
    padding: 14px 18px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all .25s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(21, 95, 255, 0.12);
    background: rgba(255, 255, 255, 0.85);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.form-ok.show { opacity: 1 !important; }

/* Filter pill row */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }

.contact-info-card {
    background: var(--surface);
    border: 0;
    border-radius: 0;
    padding: 32px;
    height: 100%;
}
.contact-info-item {
    display: flex; gap: 16px;
    padding: 20px 0;
    border-bottom: 0;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 48px; height: 48px;
    background: var(--gradient-primary-soft);
    border-radius: 0;
    display: grid; place-items: center;
    color: var(--cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-info-item strong { display: block; font-family: var(--font-display); margin-bottom: 4px; color: var(--text); }
.contact-info-item p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   Generator illustration component (SVG-driven)
   ========================================================================== */

.gen-svg-wrap {
    position: relative;
    width: 100%; height: 100%;
    display: grid; place-items: center;
}
.gen-svg-wrap svg { width: 100%; height: 100%; max-width: 520px; }

/* ==========================================================================
   Utility
   ========================================================================== */

.text-cyan { color: var(--cyan) !important; }
.text-soft { color: var(--text-soft) !important; }
.text-muted-2 { color: var(--text-muted) !important; }
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 30px 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-visual { margin: 0 auto; max-width: 480px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-main { padding-top: 80px; }
    .hero { padding: 30px 0 50px; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .hero-stat-label { font-size: 0.68rem; }
    .stats-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .cta-strip-inner { padding: 36px 28px; }
    .contact-wrap { padding: 28px; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-8px); }
    .container-xxl { padding: 0 18px; }
    .navbar-row { padding: 10px 16px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-spec-tag.t3 { display: none; }
    .hero-spec-tag.t1 { right: 0; top: 4%; }
    .hero-spec-tag.t2 { left: 0; bottom: 6%; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn-glow, .hero-cta .btn-ghost { justify-content: center; }
    .hero-stats { grid-template-columns: 1fr; }
    .image-frame-tag { left: 12px; right: 12px; bottom: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Real-image integration
   ========================================================================== */

.image-frame.has-photo .generator-illust {
    display: none;
}
.image-frame .frame-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.image-frame.has-photo::before {
    background: linear-gradient(180deg, rgba(4,8,22,0.1) 0%, rgba(4,8,22,0.55) 100%);
    z-index: 1;
}
.image-frame.has-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21,95,255,0.18) 0%, transparent 50%, rgba(21,95,255,0.14) 100%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.portfolio-card-bg.has-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.portfolio-card-bg.has-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,8,22,0.15) 0%, rgba(4,8,22,0.75) 60%, rgba(4,8,22,0.95) 100%);
}

/* ==========================================================================
   === Review fixes (2026-05-12) ===
   Responsiveness & accessibility additions. All overrides scoped here so
   originals above remain untouched. Safe to drop in / remove as a block.
   ========================================================================== */

/* 1. Color contrast fix — raise --text-dim from #8a91a0 (~3.4:1) to #6b7280 (~4.7:1, WCAG AA) */
:root { --text-dim: #6b7280; }

/* 2. Hover effects guarded for touch devices */
@media (hover: none), (pointer: coarse) {
    .portfolio-link { opacity: 1 !important; transform: none !important; }
    .btn-link-arrow i { transform: translateX(4px); }
}

/* 3. iOS Safari header gap fix — eliminate the 16px transparent strip on mobile */
@media (max-width: 768px) {
    .site-header { top: 0; }
}

/* 4. Footer columns full-width on small mobile (<576px) */
@media (max-width: 575.98px) {
    .footer-top > [class*="col-"] { width: 100%; max-width: 100%; flex: 0 0 100%; }
    .footer-top h6.footer-title { margin-top: 24px; }
}

/* 5. Hero spec tags: neutralize negative offsets that get clipped on mobile */
@media (max-width: 991.98px) {
    .hero-spec-tag.t1, .hero-spec-tag.t2, .hero-spec-tag.t3 {
        position: static; transform: none; margin: 8px 0;
    }
}

/* 6. Pricing card amount font scaling — fluid sizing for narrow phones */
.pricing-amount .number { font-size: clamp(2rem, 7vw, 3rem); }

/* 7. LCOE bar chart — helper class + mobile stack
   NOTE: pricing.php should add class="lcoe-row" to the wrapping .d-flex row */
.lcoe-row { display: flex; align-items: center; gap: 12px; }
.lcoe-row > .lcoe-label { width: 110px; flex-shrink: 0; font-family: var(--font-display); font-weight: 600; color: var(--text); }
.lcoe-row > .lcoe-bar { flex: 1; height: 36px; background: rgba(21,95,255,0.05); overflow: hidden; position: relative; }
.lcoe-row > .lcoe-bar > .lcoe-fill { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding: 0 16px; font-family: var(--font-mono); font-size: 0.85rem; color: #0b0314; font-weight: 600; }
@media (max-width: 480px) {
    .lcoe-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .lcoe-row > .lcoe-label { width: auto; }
}

/* 8. Portfolio filter pills — horizontal scroll instead of multi-row wrap on phones */
@media (max-width: 480px) {
    .portfolio-filters { overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    .portfolio-filters > * { flex-shrink: 0; }
}

/* 9. visually-hidden / sr-only utility — accessible offscreen text */
.visually-hidden, .sr-only {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
}

/* 10. Map iframe mobile aspect ratio — 21/9 is unreadable on phones, use 4/3 */
@media (max-width: 768px) {
    .map-frame { aspect-ratio: 4/3 !important; }
    .map-frame .image-frame-tag { left: 12px !important; bottom: 12px !important; right: 12px; }
}

/* 11. Brand logo render fix — markup declares 491x491 but renders ~38–44px */
.brand-mark-img img { max-width: 44px; height: auto; }

/* 12. Portfolio meta line — Client · Location · Year under card titles */
.portfolio-meta {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* 13. Active state for portfolio filter pills */
.portfolio-filters .btn-ghost.is-active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* 14. .card-tech-title — services.php now uses h3 (was h4); preserve previous h4 size */
.card-tech-title { font-size: 1.15rem; margin: 0 0 12px; line-height: 1.3; color: var(--text); transition: color .3s var(--ease); }

/* 15. Socials placeholder — used by contact form rebuild if it removes the dead social card */
.socials-placeholder { color: var(--text-dim); font-size: 0.9rem; padding: 12px 0; }

/* 16. Mobile drawer — pin to viewport (some pages have horizontal overflow that pushes fixed elements) */
.mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1100 !important;
}
body:has(.mobile-menu.open) .site-header .brand { visibility: hidden; }
/* Lock html overflow when drawer open so page can't scroll behind it */
html:has(.mobile-menu.open) { overflow: hidden; }

/* Mobile drawer close button */
.mobile-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    background: rgba(21, 95, 255, 0.10);
    border: 0;
    color: var(--text);
    font-size: 1.2rem;
    display: grid; place-items: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.mobile-close:hover { background: var(--gradient-primary); color: #fff; }
.mobile-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* 18. Kill horizontal overflow leaked by fixed bg-glow blobs (iOS Safari) */
html { overflow-x: clip; }
body { overflow-x: clip; }


