/* =============================================================================
   Foundry — Main Stylesheet
   foundry.css
   
   Structure:
     1.  Fonts & Import
     2.  CSS Custom Properties (Design Tokens)
     3.  Reset & Base
     4.  Typography
     5.  Layout
     6.  Navigation
     7.  Buttons
     8.  Forms
     9.  Cards
     10. Badges & Tags
     11. Alerts & Notices
     12. Auth Pages
     13. Marketing — Hero
     14. Marketing — Sections
     15. Footer
     16. Utilities
     17. Animations
============================================================================= */


/* -----------------------------------------------------------------------------
   1. Fonts
----------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@300;400;500;600&display=swap');


/* -----------------------------------------------------------------------------
   2. CSS Custom Properties
----------------------------------------------------------------------------- */

:root {

    /* Background layers */
    --color-bg-base:      #111009;   /* Forge Black — page background */
    --color-bg-surface:   #1a1710;   /* Anvil — cards, inputs, panels */
    --color-bg-raised:    #222018;   /* Slightly lifted surfaces */
    --color-bg-overlay:   #0d0c09;   /* Nav, modals, darkest elements */

    /* Borders */
    --color-border:       #2c2820;   /* Coal — default border */
    --color-border-light: #3a3530;   /* Lighter border for hover states */

    /* Primary accent — molten orange */
    --color-ember:        #d4621a;   /* Primary CTA */
    --color-flame:        #e8821a;   /* Hover / lighter accent */
    --color-copper:       #c2793a;   /* Secondary accent, links */
    --color-molten:       #7a1f0a;   /* Deep red-orange, destructive */
    --color-ember-glow:   rgba(212, 98, 26, 0.18);  /* Subtle glow */
    --color-ember-muted:  rgba(212, 98, 26, 0.10);  /* Very subtle tint */

    /* Text */
    --color-text-primary:   #f5ede0; /* Parchment — headings */
    --color-text-secondary: #b8aa98; /* Ash — body text */
    --color-text-muted:     #7a6e62; /* Cinder — placeholder, hints */
    --color-text-faint:     #4a4440; /* Very subtle text */
    --color-text-accent:    #c2793a; /* Copper — links, labels */

    /* Status colours */
    --color-success:      #4a9c6a;
    --color-success-bg:   rgba(74, 156, 106, 0.10);
    --color-success-border: rgba(74, 156, 106, 0.25);
    --color-error:        #c24a3a;
    --color-error-bg:     rgba(194, 74, 58, 0.10);
    --color-error-border: rgba(194, 74, 58, 0.25);
    --color-warning:      #c2923a;
    --color-warning-bg:   rgba(194, 146, 58, 0.10);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    /* Font sizes */
    --text-xs:   0.75rem;    /* 12px */
    --text-sm:   0.8125rem;  /* 13px */
    --text-base: 0.9375rem;  /* 15px */
    --text-md:   1rem;       /* 16px */
    --text-lg:   1.125rem;   /* 18px */
    --text-xl:   1.25rem;    /* 20px */
    --text-2xl:  1.5rem;     /* 24px */
    --text-3xl:  2rem;       /* 32px */
    --text-4xl:  2.75rem;    /* 44px */
    --text-5xl:  3.5rem;     /* 56px */

    /* Spacing */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-ember: 0 4px 20px rgba(212, 98, 26, 0.3);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-normal: 250ms ease;

    /* Layout */
    --max-width:      1200px;
    --nav-height:     68px;
}


/* -----------------------------------------------------------------------------
   3. Reset & Base
----------------------------------------------------------------------------- */

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

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

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-flame);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
}


/* -----------------------------------------------------------------------------
   4. Typography
----------------------------------------------------------------------------- */

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

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl);  font-weight: 600; }
h5 { font-size: var(--text-lg);  font-weight: 600; font-family: var(--font-body); }
h6 { font-size: var(--text-base); font-weight: 600; font-family: var(--font-body); }

p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Eyebrow label — small uppercase label above headings */
.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-copper);
    margin-bottom: var(--space-3);
}

/* Lead paragraph */
.lead {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-weight: 300;
}


/* -----------------------------------------------------------------------------
   5. Layout
----------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container--narrow {
    max-width: 720px;
}

.container--wide {
    max-width: 1400px;
}

.site-main {
    min-height: calc(100vh - var(--nav-height) - 80px);
}


/* -----------------------------------------------------------------------------
   6. Navigation
----------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg-overlay);
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-height);
    /* Subtle warm glow along the bottom edge */
    box-shadow: 0 1px 0 rgba(212, 98, 26, 0.08), var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    height: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
    flex-shrink: 0;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-logo::after {
    content: '.';
    color: var(--color-ember);
}

.site-logo:hover {
    color: var(--color-text-primary);
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex: 1;
}

.site-nav__links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.01em;
    padding: var(--space-1) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.site-nav__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-ember);
    transition: width var(--transition-normal);
}

.site-nav__links a:hover {
    color: var(--color-text-primary);
}

.site-nav__links a:hover::after {
    width: 100%;
}

.site-nav__auth {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
}


/* -----------------------------------------------------------------------------
   7. Buttons
----------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
}

/* Primary — ember orange gradient */
.btn--primary {
    background: linear-gradient(135deg, var(--color-ember) 0%, var(--color-flame) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-ember);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-flame) 0%, #f09030 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(212, 98, 26, 0.45);
}

/* Secondary — dark surface */
.btn--secondary {
    background: var(--color-bg-surface);
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.btn--secondary:hover {
    background: var(--color-bg-raised);
    color: var(--color-text-primary);
    border-color: var(--color-border-light);
}

/* Ghost — outlined copper */
.btn--ghost {
    background: transparent;
    color: var(--color-copper);
    border-color: var(--color-copper);
}

.btn--ghost:hover {
    background: var(--color-ember-muted);
    color: var(--color-flame);
    border-color: var(--color-flame);
}

/* Danger */
.btn--danger {
    background: var(--color-molten);
    color: var(--color-text-primary);
    border-color: transparent;
}

.btn--danger:hover {
    background: #962510;
    color: #fff;
}

/* Sizes */
.btn--sm {
    font-size: var(--text-xs);
    padding: 0.4rem 0.875rem;
}

.btn--large {
    font-size: var(--text-base);
    padding: 0.875rem 1.75rem;
}

.btn--full {
    width: 100%;
}


/* -----------------------------------------------------------------------------
   8. Forms
----------------------------------------------------------------------------- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--color-bg-overlay);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--color-text-primary);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
    outline: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-copper);
    box-shadow: 0 0 0 3px var(--color-ember-glow);
}

.form-group input:disabled,
.form-group textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Inline row — checkbox + link side by side */
.form-group--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    background: var(--color-bg-overlay);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--color-ember);
    border-color: var(--color-ember);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.form-link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.form-link:hover {
    color: var(--color-copper);
}

/* Validation states */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px var(--color-error-bg);
}


/* -----------------------------------------------------------------------------
   9. Cards
----------------------------------------------------------------------------- */

.card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-md);
}

.card--interactive {
    cursor: pointer;
}

.card--interactive:hover {
    border-color: var(--color-copper);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(194, 121, 58, 0.15);
}

.card__eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-copper);
    margin-bottom: var(--space-2);
}

.card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.card__body {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
}

.card__footer {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* -----------------------------------------------------------------------------
   10. Badges & Tags
----------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.badge--fire {
    background: var(--color-ember-muted);
    color: var(--color-flame);
    border: 1px solid rgba(212, 98, 26, 0.2);
}

.badge--gold {
    background: rgba(180, 140, 60, 0.1);
    color: #c8a84a;
    border: 1px solid rgba(180, 140, 60, 0.2);
}

.badge--steel {
    background: rgba(100, 110, 120, 0.1);
    color: #8a9aaa;
    border: 1px solid rgba(100, 110, 120, 0.15);
}

.badge--success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.badge--error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid var(--color-error-border);
}


/* -----------------------------------------------------------------------------
   11. Alerts & Notices
----------------------------------------------------------------------------- */

.form-errors {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.form-error {
    font-size: var(--text-sm);
    color: var(--color-error);
    line-height: 1.5;
}

.form-error + .form-error {
    margin-top: var(--space-1);
}

.form-notice {
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.form-notice--success {
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success);
}

.form-notice--warning {
    background: var(--color-warning-bg);
    border: 1px solid rgba(194, 146, 58, 0.25);
    color: var(--color-warning);
}


/* -----------------------------------------------------------------------------
   12. Auth Pages
----------------------------------------------------------------------------- */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: var(--space-8) var(--space-6);
}

.auth-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    /* Subtle ember warmth at the top edge */
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-ember), var(--color-copper), transparent);
}

.auth-card__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.auth-card__sub {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.auth-form {
    margin-top: var(--space-6);
}

.auth-card__footer {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
}

.auth-card__footer a {
    color: var(--color-copper);
    font-weight: 500;
}

.auth-card__footer a:hover {
    color: var(--color-flame);
}


/* -----------------------------------------------------------------------------
   13. Marketing — Hero
----------------------------------------------------------------------------- */

.hero {
    padding: var(--space-24) var(--space-6);
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
    position: relative;
}

/* Subtle radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212, 98, 26, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

.hero h1 {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    color: var(--color-text-primary);
    margin-bottom: var(--space-5);
    line-height: 1.08;
}

/* Gradient text on key word */
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--color-ember), var(--color-flame));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: var(--space-10);
    line-height: 1.7;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}


/* -----------------------------------------------------------------------------
   14. Marketing — Sections
----------------------------------------------------------------------------- */

.section {
    padding: var(--space-20) var(--space-6);
}

.section--alt {
    background: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section__header h2 {
    margin-bottom: var(--space-4);
}

.section__header p {
    max-width: 520px;
    margin-inline: auto;
    font-size: var(--text-lg);
    font-weight: 300;
}

/* Grid for feature/game cards */
.grid {
    display: grid;
    gap: var(--space-5);
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


/* -----------------------------------------------------------------------------
   15. Footer
----------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) var(--space-6);
    text-align: center;
}

.site-footer p {
    font-size: var(--text-xs);
    color: var(--color-text-faint);
}


/* -----------------------------------------------------------------------------
   16. Error pages
----------------------------------------------------------------------------- */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    text-align: center;
    padding: var(--space-8);
}

.error-page h1 {
    font-size: 6rem;
    line-height: 1;
    color: var(--color-border-light);
    margin-bottom: var(--space-4);
}

.error-page p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}


/* -----------------------------------------------------------------------------
   17. Utilities
----------------------------------------------------------------------------- */

.text-primary   { color: var(--color-text-primary)   !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-muted     { color: var(--color-text-muted)     !important; }
.text-accent    { color: var(--color-text-accent)    !important; }
.text-center    { text-align: center; }
.text-right     { text-align: right; }

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.mb-8    { margin-bottom: var(--space-8); }

.d-flex          { display: flex; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2           { gap: var(--space-2); }
.gap-4           { gap: var(--space-4); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* -----------------------------------------------------------------------------
   18. JS-enhanced components
----------------------------------------------------------------------------- */

/* Active nav link */
.site-nav__links a.is-active {
    color: var(--color-text-primary);
}
.site-nav__links a.is-active::after {
    width: 100%;
}

/* Password toggle wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: var(--text-md);
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--color-copper);
}


/* -----------------------------------------------------------------------------
   19. Animations
----------------------------------------------------------------------------- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Subtle ember pulse for loading states */
@keyframes emberPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.pulse {
    animation: emberPulse 1.5s ease-in-out infinite;
}


/* -----------------------------------------------------------------------------
   19. Responsive
----------------------------------------------------------------------------- */

@media (max-width: 768px) {

    :root {
        --nav-height: 60px;
    }

    .site-nav__links {
        display: none; /* Mobile nav handled separately in Phase 1 */
    }

    .auth-card {
        padding: var(--space-8) var(--space-6);
    }

    .hero {
        padding: var(--space-16) var(--space-4);
    }

    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group--inline {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

}
