/* =========================================================
   Titan — public marketing styles
   Dark navy theme with electric blue accent.
   Adapted from bekraeft.dk design system.
   ========================================================= */

/* ─── Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ─── Variables ──────────────────────────────────────────── */
:root {
    --bg:         hsl(222 35% 8%);
    --fg:         hsl(210 20% 92%);
    --primary:    hsl(212 100% 60%);
    --primary-fg: hsl(222 35% 8%);
    --card:       hsl(222 28% 11%);
    --secondary:  hsl(222 25% 16%);
    --muted:      hsl(215 18% 55%);
    --border:     hsl(222 25% 18%);
    --accent:     hsl(25 90% 58%);
    --radius:     0.75rem;
    --glow:       0 0 40px hsl(212 100% 60% / 0.25);
    --font-h:     'Space Grotesk', sans-serif;
    --font-b:     'Inter', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-b);
    background-color: hsl(214 55% 13%);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            hsl(212 100% 60% / 0.07) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            hsl(212 100% 60% / 0.07) 40px
        );
    color: var(--fg);
    line-height: 1.6;
    min-height: 100dvh;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); }
a { color: inherit; text-decoration: none; }

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.anim-fade-up  { animation: fade-up  0.6s ease-out both; }
.anim-fade-in  { animation: fade-in  0.5s ease-out both; }
.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.20s; }
.delay-3 { animation-delay: 0.30s; }
.delay-4 { animation-delay: 0.40s; }
.delay-5 { animation-delay: 0.50s; }

/* ─── Utilities ──────────────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, hsl(212 100% 60%), hsl(190 100% 68%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-accent { color: var(--accent); }

/* ─── Container ──────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.container--narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    border-bottom: 1px solid hsl(212 80% 50% / 0.20);
    background:
        radial-gradient(ellipse 40% 200% at 0% 50%,   hsl(212 100% 60% / 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 200% at 100% 50%, hsl(212 100% 60% / 0.18) 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 79px,
            hsl(212 100% 60% / 0.08) 80px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            hsl(212 100% 60% / 0.08) 80px
        ),
        hsl(220 40% 10%);
    overflow: visible;
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7.5rem;
    overflow: visible;
}
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-link:hover,
.nav-link.active { color: var(--primary); }
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary);
    color: var(--primary-fg);
    font-family: var(--font-h);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: filter 0.15s, box-shadow 0.15s;
}
.nav-btn:hover {
    filter: brightness(1.1);
    box-shadow: var(--glow);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
}
/* Grid lines */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsl(212 100% 60% / 0.055) 1px, transparent 1px),
        linear-gradient(90deg, hsl(212 100% 60% / 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}
/* Glow blobs */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 75% 35%, hsl(212 100% 55% / 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 15% 75%, hsl(195 100% 55% / 0.10) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 6rem;
    padding-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    border: 1px solid hsl(212 100% 60% / 0.30);
    background: hsl(212 100% 60% / 0.10);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    max-width: 700px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.hero-sub {
    max-width: 520px;
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.hero-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0 2rem;
    max-width: 700px;
}
.hero-sub-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    max-width: 700px;
}
.hero-sub-points span {
    font-size: 0.875rem;
    color: var(--muted);
}
.hero-sub-points strong { color: var(--fg); font-weight: 600; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--primary-fg);
    font-family: var(--font-h);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: filter 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: var(--glow);
}
.btn-primary .arrow { transition: transform 0.15s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    color: var(--fg);
    font-family: var(--font-h);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover {
    border-color: hsl(212 100% 60% / 0.5);
    background: var(--secondary);
}

/* ─── Features section ───────────────────────────────────── */
.features {
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}
.features-header {
    text-align: center;
    margin-bottom: 4rem;
}
.features-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.features-header p {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    border-color: hsl(212 100% 60% / 0.35);
    box-shadow: var(--glow);
}
.feature-badge {
    display: inline-block;
    background: hsl(212 100% 60% / 0.10);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}
.feature-badge--orange {
    background: hsl(25 90% 58% / 0.12);
    color: var(--accent);
}
.feature-badge--green {
    background: hsl(142 70% 45% / 0.12);
    color: hsl(142 70% 55%);
}
.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.feature-card p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--muted);
}
.feature-list {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.feature-list li {
    font-size: 0.875rem;
    color: var(--muted);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}
.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.75rem;
    top: 0.15em;
}

/* ─── Inner page hero ────────────────────────────────────── */
.page-hero {
    padding: 12rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, hsl(212 100% 55% / 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ─── Content sections ───────────────────────────────────── */
.content-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}
.content-section:last-of-type { border-bottom: none; }
.section-header { margin-bottom: 3rem; }
.section-header h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.section-header p {
    font-size: 0.9375rem;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.7;
}

/* ─── Two column ─────────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ─── Steps / How it works ───────────────────────────────── */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.step {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.step--highlight {
    border-color: hsl(212 100% 60% / 0.35);
    background: hsl(212 100% 60% / 0.04);
}
.step-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: hsl(212 100% 60% / 0.10);
    color: var(--primary);
    font-family: var(--font-h);
    font-size: 0.9rem;
    font-weight: 700;
}
.step-body { flex: 1; }
.step-body h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-body p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ─── Check list ─────────────────────────────────────────── */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.check-list li {
    font-size: 0.9375rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.5;
}
.check-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: hsl(212 100% 60% / 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 0.15em;
}

/* ─── Info box ───────────────────────────────────────────── */
.info-box {
    border: 1px solid hsl(212 100% 60% / 0.25);
    background: hsl(212 100% 60% / 0.05);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
    color: var(--fg);
    line-height: 1.7;
}
.info-box--orange {
    border-color: hsl(25 90% 58% / 0.3);
    background: hsl(25 90% 58% / 0.06);
}
.info-box p { color: var(--muted); }
.info-box p + p { margin-top: 0.75rem; }
.info-box strong { color: var(--fg); }

/* ─── Code example ───────────────────────────────────────── */
.code-block {
    border: 1px solid var(--border);
    background: var(--secondary);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.8rem;
    font-family: 'Courier New', Consolas, monospace;
    white-space: pre;
    overflow-x: auto;
    color: var(--fg);
    line-height: 1.7;
    margin-top: 1rem;
}

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.plan-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}
.plan-card--featured {
    border-color: hsl(212 100% 60% / 0.5);
    background: hsl(212 100% 60% / 0.05);
}
.plan-popular {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    background: var(--primary);
    color: var(--primary-fg);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.plan-name {
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 700;
}
.plan-tagline {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: -0.5rem;
}
.plan-price {
    font-family: var(--font-h);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.plan-price span {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 400;
}
.plan-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.plan-feature-list li {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    line-height: 1.4;
}
.plan-feature-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05em;
}
.plan-cta {
    display: block;
    text-align: center;
    padding: 0.625rem 1rem;
    border-radius: calc(var(--radius) - 0.125rem);
    font-family: var(--font-h);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--secondary);
    color: var(--fg);
    border: 1px solid var(--border);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    margin-top: auto;
}
.plan-cta:hover,
.plan-card--featured .plan-cta {
    background: var(--primary);
    color: var(--primary-fg);
    border-color: var(--primary);
}
.plan-card--featured .plan-cta:hover { filter: brightness(1.1); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--fg);
    font-family: var(--font-h);
    font-size: 1rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.15s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s, color 0.15s;
    font-size: 1.25rem;
    line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}
.faq-answer p + p { margin-top: 0.75rem; }
.faq-item.open .faq-answer { display: block; }

/* ─── CTA section ────────────────────────────────────────── */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 50% 100%, hsl(212 100% 55% / 0.10) 0%, transparent 60%);
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.cta-section p {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ─── Footer ─────────────────────────────────────────────── */
/* =============================================================================
   Auth / Login
   ============================================================================= */
.auth-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 1rem 3rem;
    background-color: hsl(0 0% 0%);
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 79px,
            hsl(212 100% 60% / 0.05) 80px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            hsl(212 100% 60% / 0.05) 80px
        );
}
.auth-logo {
    margin-bottom: 0;
}
.auth-logo img {
    height: 320px;
    width: auto;
    max-width: 100%;
    display: block;
}
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.auth-card {
    background: hsl(222 35% 11%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px hsl(212 100% 20% / 0.2);
}
.auth-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--fg);
}
.auth-subtitle {
    color: var(--muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
}
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* Field components */
.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}
.field-input {
    display: block;
    width: 100%;
    background: hsl(222 35% 14%);
    border: 1px solid hsl(222 30% 25%);
    border-radius: 8px;
    color: var(--fg);
    font-size: 1rem;
    font-family: var(--font-b);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(212 100% 60% / 0.15);
}
.field-input::placeholder { color: hsl(222 15% 40%); }
.field-error {
    display: block;
    font-size: 0.8125rem;
    color: hsl(0 75% 60%);
    margin-top: 0.375rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}
.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer p {
    font-size: 0.875rem;
    color: var(--muted);
}
.site-footer a {
    color: var(--primary);
    transition: filter 0.15s;
}
.site-footer a:hover { filter: brightness(1.1); }
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.8125rem;
    color: var(--muted);
    transition: color 0.15s;
    text-decoration: none;
}
.footer-links a:hover { color: var(--fg); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
    .nav-links { gap: 0.75rem; }
    .nav-link { display: none; }
    .nav-link:last-of-type { display: flex; }
    .nav-btn { font-size: 0.8rem; padding: 0.4rem 0.875rem; }
    .hero-content h1 { font-size: 2.25rem; }
    .step { flex-direction: column; gap: 1rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .site-footer .container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; gap: 1rem; }
}
