:root {
    /* Palette aligned with the VEREM ecosystem */
    --bg: #0b111a;
    --bg-soft: #0f1826;
    --bg-muted: #141f2e;
    --surface: #131d2b;
    --surface-soft: #172234;
    --surface-hover: #1c2a3f;
    --border: rgba(48, 227, 163, 0.14);
    --border-strong: rgba(48, 227, 163, 0.30);
    --border-soft: rgba(255, 255, 255, 0.07);
    --primary: #10b981;
    --primary-dark: #0a8e6b;
    --primary-deep: #057355;
    --accent: #30e3a3;
    --text: #f4fffa;
    --text-muted: #cadbd4;
    --text-soft: #93a8a2;
    --glow: 0 0 28px rgba(16, 185, 129, 0.20);
    --glow-strong: 0 0 32px rgba(16, 185, 129, 0.35), 0 0 90px rgba(5, 115, 85, 0.22);
    --gradient-primary: linear-gradient(120deg, #0a8e6b 0%, #30e3a3 100%);
    --radius: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --container: min(1180px, 92vw);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

/* Ambient full-page background — never cuts off on large monitors */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.05) 32%, transparent 62%),
        radial-gradient(90% 60% at 85% 8%, rgba(48, 227, 163, 0.08) 0%, transparent 55%),
        radial-gradient(80% 70% at 10% 20%, rgba(5, 115, 85, 0.10) 0%, transparent 55%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 70%);
    pointer-events: none;
}

h1, h2, h3, .nav-logo-text, .footer-logo span {
    font-family: 'Manrope', 'Inter', 'Segoe UI', Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

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

.container { width: var(--container); margin: 0 auto; }

/* NAV */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(11, 17, 26, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
    background: rgba(11, 17, 26, 0.92);
    border-bottom-color: var(--border);
}

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

.nav-logo img { height: 26px; width: auto; }

.nav-logo-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--gradient-primary);
    color: #04120c !important;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
    box-shadow: var(--glow-strong);
    transform: translateY(-1px);
    color: #04120c !important;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9rem 1.5rem 5rem;
    position: relative;
}

.hero-inner { position: relative; z-index: 1; max-width: 860px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.4rem 1.05rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.9rem;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.4); }
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1.4rem;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.6rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    flex-wrap: wrap;
    color: var(--text-soft);
}

.hero-trust-item { text-align: center; }
.hero-trust-item strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}
.hero-trust-item span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-primary);
    color: #04120c;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    transition: box-shadow 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: var(--glow-strong);
    transform: translateY(-2px);
    color: #04120c;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    border-color: var(--border-strong);
    background: rgba(16, 185, 129, 0.07);
    color: var(--text);
    transform: translateY(-2px);
}

/* APP SHOWCASE */
.app-showcase {
    padding: 4rem 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.app-card {
    background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.app-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.app-card h2 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 1.1rem;
}

.app-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
    line-height: 1.7;
}

.app-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.app-card-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.app-card-features li svg {
    flex-shrink: 0;
    color: var(--accent);
}

.app-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 460px;
}

.app-mockup {
    width: 232px;
    height: 460px;
    background: linear-gradient(170deg, var(--bg-muted), var(--bg));
    border: 1px solid var(--border-strong);
    border-radius: 2.2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 36px 70px rgba(0, 0, 0, 0.55), var(--glow);
    position: relative;
    z-index: 1;
}

.app-mockup-bar {
    height: 42px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.app-mockup-dot { width: 8px; height: 8px; border-radius: 50%; }

.app-mockup-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.6rem;
}

.app-mockup-logo {
    width: 60px; height: 60px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-strong);
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow);
}

.app-mockup-title { font-size: 1.05rem; font-weight: 800; color: var(--text); font-family: 'Manrope', sans-serif; }
.app-mockup-sub { font-size: 0.72rem; color: var(--text-soft); text-align: center; }

.app-mockup-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    border-radius: 0.6rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.app-mockup-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: #04120c;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.65rem;
    border-radius: 999px;
    text-align: center;
    margin-top: 0.4rem;
}

.glow-ring {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.14);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 26s linear infinite;
}

.glow-ring-2 {
    width: 450px; height: 450px;
    border-color: rgba(16, 185, 129, 0.07);
    animation-duration: 40s;
    animation-direction: reverse;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* SECTIONS */
.section { padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; }

.section-inner { max-width: 1180px; margin: 0 auto; }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 3rem;
}

.card {
    background: linear-gradient(165deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 2rem 1.85rem;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--glow);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px; height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    color: var(--accent);
}

.card-step {
    font-family: 'Manrope', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* DIVIDER */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    max-width: 1180px;
    margin: 0 auto;
}

/* CTA SECTION */
.cta-section { padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; text-align: center; }

.cta-box {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 6vw, 4rem) 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 120% at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.cta-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

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

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo img { height: 22px; width: auto; opacity: 0.85; }
.footer-logo span {
    font-size: 0.72rem;
    color: var(--text-soft);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-links a {
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
    color: var(--text-soft);
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
}

/* LEGAL PAGES */
.legal-page { padding: 9rem 1.5rem 5rem; max-width: 820px; margin: 0 auto; }

.legal-page h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.legal-page .legal-meta {
    color: var(--text-soft);
    font-size: 0.875rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft);
}

.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.6rem 0 0.8rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.6rem 0 0.5rem;
    color: var(--text-muted);
}

.legal-page p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

.legal-page ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-page ul li { margin-bottom: 0.4rem; }
.legal-page strong { color: var(--text); }

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-badge-dot, .glow-ring { animation: none; }
    html { scroll-behavior: auto; }
}

/* RESPONSIVE */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .app-card { grid-template-columns: 1fr; text-align: center; }
    .app-card-label, .app-card-features { justify-content: center; }
    .app-card-features { align-items: flex-start; max-width: 340px; margin-left: auto; margin-right: auto; text-align: left; }
    .app-visual { order: -1; min-height: 380px; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
    .nav { padding: 0.9rem 1rem; }
    .hero { padding: 8rem 1rem 3.5rem; }
    .app-showcase { padding: 3rem 1rem; }
    .app-mockup { width: 200px; height: 400px; }
    .glow-ring { width: 260px; height: 260px; }
    .glow-ring-2 { width: 330px; height: 330px; }
    .hero-trust { gap: 1.8rem; }
}
