/* ============================================
   Webjala Landing Page – Design System
   ============================================ */

/* Dark theme (default) */
:root,
[data-theme="dark"] {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --accent: #06b6d4;
    --accent-hover: #22d3ee;
    --accent-muted: rgba(6, 182, 212, 0.15);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --border: rgba(148, 163, 184, 0.2);
    --header-bg: rgba(15, 23, 42, 0.85);
    --header-bg-scrolled: rgba(15, 23, 42, 0.95);
    --modal-backdrop: rgba(15, 23, 42, 0.85);
    --hero-glow-1: rgba(6, 182, 212, 0.12);
    --hero-glow-2: rgba(6, 182, 212, 0.09);
    --why-bg: rgba(30, 41, 59, 0.3);
    /* Section light colors (alternate 2 colors) */
    --section-glow-a: rgba(6, 182, 212, 0.12);
    --section-glow-a-muted: rgba(6, 182, 212, 0.09);
    --section-glow-b: rgba(20, 184, 166, 0.12);
    --section-glow-b-muted: rgba(20, 184, 166, 0.09);
    --section-accent-a: #06b6d4;
    --section-accent-b: #14b8a6;
    /* Section backgrounds */
    --section-services-bg: linear-gradient(180deg, #0f172a 0%, #0c1222 50%, #0a0f1a 100%);
    --section-why-bg: radial-gradient(ellipse 100% 80% at 50% 20%, rgba(30, 41, 59, 0.5), #0f172a);
    --section-cta-bg: linear-gradient(180deg, #0a0f1a 0%, #0f172a 50%, #0c1222 100%);
    --section-footer-bg: #0a0f1a;
}

/* Light theme */
[data-theme="light"] {
    --bg-dark: #e2e8f0;
    --bg-card: #cbd5e1;
    --bg-elevated: #e2e8f0;
    --accent: #0891b2;
    --accent-hover: #0e7490;
    --accent-muted: rgba(8, 145, 178, 0.15);
    --text: #0f172a;
    --text-muted: #334155;
    --text-subtle: #475569;
    --border: rgba(15, 23, 42, 0.18);
    --header-bg: rgba(226, 232, 240, 0.92);
    --header-bg-scrolled: rgba(203, 213, 225, 0.98);
    --modal-backdrop: rgba(15, 23, 42, 0.5);
    --hero-glow-1: rgba(8, 145, 178, 0.16);
    --hero-glow-2: rgba(8, 145, 178, 0.1);
    --why-bg: rgba(203, 213, 225, 0.6);
    /* Section light colors (alternate 2 colors) */
    --section-glow-a: rgba(8, 145, 178, 0.16);
    --section-glow-a-muted: rgba(8, 145, 178, 0.1);
    --section-glow-b: rgba(13, 148, 136, 0.16);
    --section-glow-b-muted: rgba(13, 148, 136, 0.1);
    --section-accent-a: #0891b2;
    --section-accent-b: #0d9488;
    /* Section backgrounds */
    --section-services-bg: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    --section-why-bg: radial-gradient(ellipse 100% 80% at 50% 20%, rgba(203, 213, 225, 0.8), #e2e8f0);
    --section-cta-bg: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 50%, #cbd5e1 100%);
    --section-footer-bg: #cbd5e1;
}

:root {
    /* Typography */
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;

    /* Layout */
    --container-max: 72rem;
    --container-pad: 1.5rem;

    /* Radius & Effects */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration: 0.2s;
    --duration-slow: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration: 0.01ms;
    }

    html {
        scroll-snap-type: none;
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

/* Page-specific theme variations (light/dark still shared) */

/* Landing: completely different color light per section */
body.page-landing .hero {
    --section-glow-a: rgba(6, 182, 212, 0.22);
    --section-glow-a-muted: rgba(6, 182, 212, 0.12);
    --section-accent-a: #06b6d4;
}

body.page-landing .services {
    --section-glow-b: rgba(20, 184, 166, 0.24);
    --section-glow-b-muted: rgba(20, 184, 166, 0.14);
    --section-accent-b: #14b8a6;
    --section-services-bg: linear-gradient(180deg, #0c1f1e 0%, #0a1a19 50%, #081615 100%);
}

body.page-landing .why {
    --section-glow-a: rgba(139, 92, 246, 0.22);
    --section-glow-a-muted: rgba(139, 92, 246, 0.12);
    --section-accent-a: #8b5cf6;
    --section-why-bg: radial-gradient(ellipse 100% 80% at 50% 20%, rgba(46, 16, 101, 0.4), #0f0a1e);
}

body.page-landing .news-section {
    --section-glow-a: rgba(56, 189, 248, 0.2);
    --section-glow-a-muted: rgba(56, 189, 248, 0.1);
    --section-accent-a: #38bdf8;
    --section-news-bg: linear-gradient(180deg, #0a1624 0%, #0c1a28 50%, #0a1520 100%);
}

body.page-landing .cta {
    --section-glow-b: rgba(245, 158, 11, 0.22);
    --section-glow-b-muted: rgba(245, 158, 11, 0.12);
    --section-accent-b: #f59e0b;
    --section-cta-bg: linear-gradient(180deg, #1e1a0a 0%, #1a1508 50%, #151208 100%);
}

body.page-landing .footer {
    --section-glow-a: rgba(244, 63, 94, 0.2);
    --section-glow-a-muted: rgba(244, 63, 94, 0.1);
    --section-accent-a: #f43f5e;
    --section-footer-bg: linear-gradient(180deg, #1a0a0f 0%, #150810 100%);
}

[data-theme="light"] body.page-landing .hero {
    --section-glow-a: rgba(8, 145, 178, 0.24);
    --section-glow-a-muted: rgba(8, 145, 178, 0.14);
}

[data-theme="light"] body.page-landing .services {
    --section-glow-b: rgba(13, 148, 136, 0.22);
    --section-glow-b-muted: rgba(13, 148, 136, 0.14);
    --section-services-bg: linear-gradient(180deg, #d1f0eb 0%, #e2e8f0 50%, #dde8e6 100%);
}

[data-theme="light"] body.page-landing .why {
    --section-glow-a: rgba(124, 58, 237, 0.22);
    --section-glow-a-muted: rgba(124, 58, 237, 0.12);
    --section-accent-a: #7c3aed;
    --section-why-bg: radial-gradient(ellipse 100% 80% at 50% 20%, rgba(237, 233, 254, 0.95), #ede9fe);
}

[data-theme="light"] body.page-landing .news-section {
    --section-glow-a: rgba(2, 132, 199, 0.2);
    --section-glow-a-muted: rgba(2, 132, 199, 0.12);
    --section-accent-a: #0284c7;
    --section-news-bg: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 50%, #e0f2fe 100%);
}

[data-theme="light"] body.page-landing .cta {
    --section-glow-b: rgba(217, 119, 6, 0.22);
    --section-glow-b-muted: rgba(217, 119, 6, 0.12);
    --section-accent-b: #d97706;
    --section-cta-bg: linear-gradient(180deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
}

[data-theme="light"] body.page-landing .footer {
    --section-glow-a: rgba(225, 29, 72, 0.2);
    --section-glow-a-muted: rgba(225, 29, 72, 0.12);
    --section-accent-a: #e11d48;
    --section-footer-bg: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
}

/* Privacy: violet accent – clearly distinct from landing cyan */
body.page-privacy {
    background: var(--section-why-bg);
}

html.page-privacy-doc[data-theme="dark"] {
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-muted: rgba(167, 139, 250, 0.15);
    --hero-glow-1: rgba(167, 139, 250, 0.12);
    --hero-glow-2: rgba(167, 139, 250, 0.09);
    --section-glow-a: rgba(167, 139, 250, 0.12);
    --section-glow-a-muted: rgba(167, 139, 250, 0.09);
    --section-glow-b: rgba(139, 92, 246, 0.12);
    --section-glow-b-muted: rgba(139, 92, 246, 0.09);
    --section-accent-a: #a78bfa;
    --section-accent-b: #8b5cf6;
}

html.page-privacy-doc[data-theme="light"] {
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-muted: rgba(124, 58, 237, 0.15);
    --hero-glow-1: rgba(124, 58, 237, 0.16);
    --hero-glow-2: rgba(124, 58, 237, 0.1);
    --section-glow-a: rgba(124, 58, 237, 0.16);
    --section-glow-a-muted: rgba(124, 58, 237, 0.1);
    --section-glow-b: rgba(109, 40, 217, 0.16);
    --section-glow-b-muted: rgba(109, 40, 217, 0.1);
    --section-accent-a: #7c3aed;
    --section-accent-b: #6d28d9;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease);
}

.header.scrolled {
    background: var(--header-bg-scrolled);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: var(--space-lg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

body.page-landing .header-context-label {
    display: none;
}

body.page-privacy .header-context-label {
    display: inline;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

body.page-landing li.nav-item-legal-only,
body.page-privacy li.nav-item-landing-only {
    display: none;
}

body.page-privacy .nav-legal-link {
    color: var(--accent);
    font-weight: 600;
}

body.page-privacy .nav-legal-link::after {
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo img {
    display: block;
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
    position: relative;
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration) var(--ease);
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

.nav-actions .btn-account,
.nav-menu .btn-account {
    color: var(--bg-dark);
}

.nav-actions .btn-account:hover,
.nav-menu .btn-account:hover {
    color: var(--bg-dark);
}

.btn-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-account:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
}

.btn-account svg {
    flex-shrink: 0;
    display: block;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--accent-muted);
}

.theme-icon {
    position: absolute;
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.theme-icon-sun {
    opacity: 1;
}

.theme-icon-moon {
    opacity: 0;
}

[data-theme="light"] .theme-icon-sun {
    opacity: 0;
}

[data-theme="light"] .theme-icon-moon {
    opacity: 1;
}

.theme-toggle {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform var(--duration) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Ambient light overlay – spreads accent glow across each section */
.hero::after,
.services::after,
.why::after,
.news-section::after,
.cta::after,
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Hero: color A (cyan) */
.hero::after {
    background:
        radial-gradient(ellipse 120% 60% at 50% -10%, var(--section-glow-a), transparent 60%),
        radial-gradient(ellipse 80% 50% at 100% 30%, var(--section-glow-a), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 70%, var(--section-glow-a-muted), transparent 45%);
}

/* Services: color B (teal) */
.services::after {
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, var(--section-glow-b), transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 50%, var(--section-glow-b-muted), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 80%, var(--section-glow-b), transparent 45%);
}

/* Why: color A */
.why::after {
    background:
        radial-gradient(ellipse 90% 70% at 50% 10%, var(--section-glow-a), transparent 50%),
        radial-gradient(ellipse 50% 40% at 100% 60%, var(--section-glow-a), transparent 45%),
        radial-gradient(ellipse 50% 40% at 0% 40%, var(--section-glow-a-muted), transparent 45%);
}

/* News: color A (sky) */
.news-section::after {
    background:
        radial-gradient(ellipse 95% 65% at 50% 0%, var(--section-glow-a), transparent 52%),
        radial-gradient(ellipse 55% 45% at 0% 70%, var(--section-glow-a-muted), transparent 48%),
        radial-gradient(ellipse 55% 45% at 100% 60%, var(--section-glow-a), transparent 45%);
}

/* CTA: color B */
.cta::after {
    background:
        radial-gradient(ellipse 110% 70% at 50% 20%, var(--section-glow-b), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, var(--section-glow-b-muted), transparent 45%),
        radial-gradient(ellipse 60% 50% at 90% 80%, var(--section-glow-b), transparent 45%);
}

/* Footer: color A */
.footer::after {
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, var(--section-glow-a), transparent 50%),
        radial-gradient(ellipse 70% 50% at 20% 100%, var(--section-glow-a-muted), transparent 45%),
        radial-gradient(ellipse 70% 50% at 80% 100%, var(--section-glow-a), transparent 45%);
}

/* Accent divider at top of each section – alternates color A / B */
.hero::before,
.why::before,
.news-section::before,
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10rem;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--section-accent-a), transparent);
    border-radius: 3px;
    box-shadow: 0 0 20px var(--section-glow-a), 0 0 48px var(--section-glow-a-muted);
}

.services::before,
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10rem;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--section-accent-b), transparent);
    border-radius: 3px;
    box-shadow: 0 0 20px var(--section-glow-b), 0 0 48px var(--section-glow-b-muted);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--section-glow-a), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, var(--section-glow-a), transparent),
        radial-gradient(ellipse 40% 30% at 0% 80%, var(--section-glow-a-muted), transparent);
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hero-character-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(28vw, 280px);
    max-height: 50vh;
    z-index: 50;
    transition: right var(--duration-slow) var(--ease), left var(--duration-slow) var(--ease);
}

.hero-character-wrapper.hero-character-left {
    right: auto;
    left: 0;
}

.hero-character-fixed {
    display: block;
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    object-position: bottom right;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.2s var(--ease), transform var(--duration-slow) var(--ease), margin var(--duration-slow) var(--ease);
}

.hero-character-wrapper .hero-character-fixed {
    object-position: bottom right;
}

.hero-character-wrapper.hero-character-left .hero-character-fixed {
    object-position: bottom left;
}

.hero-character-wrapper.above-modal {
    z-index: 250;
}

.hero-logo {
    display: block;
    max-width: 160px;
    height: auto;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.05s forwards;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.1s forwards;
}

.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 0 var(--space-2xl);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.3s forwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.6s var(--ease) 0.4s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Titles */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 var(--space-3xl);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
    text-align: center;
}

/* Services */
.services {
    position: relative;
    min-height: 100vh;
    padding-top: var(--space-2xl);
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
    background: var(--section-services-bg);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.services>.container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.services-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.services-visual {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-top: var(--space-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(6, 182, 212, 0.15);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--space-md);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0 0 var(--space-md);
}

.service-card ul {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.service-card li {
    padding: var(--space-xs) 0;
    padding-left: 1.25rem;
    position: relative;
}

.service-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* Why Webjala */
.why {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
    background: var(--section-why-bg);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.why>.container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.why-intro {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.why-item {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.why-item:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.why-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.8;
    display: block;
    margin-bottom: var(--space-md);
}

.why-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 var(--space-sm);
}

.why-item p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

/* News (from Identity API) */
.wj-hidden {
    display: none !important;
}

.news-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
    background: var(--section-news-bg, var(--section-why-bg));
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.news-section>.container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.news-intro {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.news-intro-text {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 36rem;
    margin: calc(-1 * var(--space-xl)) auto 0;
    line-height: 1.6;
}

/* --- News grid: stacked cards (match Identity /news) --- */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 48rem;
    margin: 0 auto;
}

.news-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
    padding: var(--space-xl) 0;
}

.news-error a {
    color: var(--section-accent-a);
    text-decoration: underline;
}

.news-error a:hover {
    color: var(--accent-hover);
}

.news-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-elevated);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

[data-theme="dark"] .news-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.news-card:hover {
    border-color: color-mix(in srgb, var(--section-accent-a) 35%, var(--border));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.news-card-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: stretch;
}

/* Square cover: 256px cap, scales down on narrow viewports (matches Identity portal) */
.news-card-media {
    display: block;
    flex-shrink: 0;
    width: min(256px, 42vw);
    overflow: hidden;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.news-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.news-card-cat {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--section-accent-a);
    margin: 0;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.25rem 0 0;
    line-height: 1.35;
    color: var(--text);
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.news-card-title a:hover {
    color: var(--section-accent-a);
}

.news-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
    cursor: help;
    align-self: flex-start;
    border-bottom: 1px dotted var(--text-muted);
}

.news-card-excerpt {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0.35rem 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-read {
    flex-shrink: 0;
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--section-accent-a);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

@media (min-width: 640px) {
    .news-card-read {
        align-self: center;
    }
}

.news-card-read:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.news-view-all {
    margin-top: var(--space-md);
}

.news-view-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--section-accent-a);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.news-view-all-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}


/* CTA */
.cta {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) 0;
    text-align: center;
    background: var(--section-cta-bg);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

.cta>.container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 var(--space-md);
}

.cta-subtitle {
    color: var(--text-muted);
    margin: 0 auto var(--space-xl);
    max-width: 28rem;
}

/* Footer */
.footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--section-footer-bg);
    border-top: 1px solid var(--border);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

.footer>.container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: var(--space-xs);
}

.tagline {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-subtle);
    margin: 0;
}

.footer-legal-links {
    margin: var(--space-sm) 0 0;
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-legal-sep {
    color: var(--text-subtle);
}

.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 var(--space-md);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin: 0 0 var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

.footer-bottom a {
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.contact-modal.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--modal-backdrop);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.contact-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.contact-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: 0.25rem;
    transition: color var(--duration) var(--ease);
}

.contact-modal-close:hover {
    color: var(--text);
}

.contact-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-sm);
}

.contact-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0 0 var(--space-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.contact-form-group input,
.contact-form-group textarea {
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--duration) var(--ease);
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: var(--text-subtle);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.contact-form-hidden {
    position: absolute;
    left: -9999px;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.05s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.15s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.25s;
}

.why-grid .why-item:nth-child(1) {
    transition-delay: 0.05s;
}

.why-grid .why-item:nth-child(2) {
    transition-delay: 0.15s;
}

.why-grid .why-item:nth-child(3) {
    transition-delay: 0.25s;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: var(--space-xl);
        gap: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-actions {
        margin-left: auto;
    }

    .hero-layout {
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content .hero-subtitle {
        text-align: center;
    }

    .hero-logo {
        max-width: 130px;
    }

    .hero-character-wrapper {
        width: min(35vw, 180px);
    }

    .hero-character-fixed {
        max-height: 40vh;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services-visual {
        max-width: 280px;
    }
}