/* ============================================================
   Jaweb website — centralized styles.
   Design tokens mirror Jaweb.Mobile/Resources/Styles/Colors.xaml
   and Theme/JawebTheme.cs. All shared component classes live
   here; pages must not define their own styles.
   ============================================================ */

:root {
    --jaweb-bg: #0B0F14;
    --jaweb-bg-elevated: #111821;
    --jaweb-surface: #1A2330;
    --jaweb-surface-elevated: #222D3D;
    --jaweb-gold: #F5C242;
    --jaweb-text-primary: #F5F7FA;
    --jaweb-text-secondary: #9AA7B8;
    --jaweb-text-muted: #6B7785;
    --jaweb-border: rgba(154, 167, 184, 0.15);
    --jaweb-success: #22C55E;
    --jaweb-danger: #EF4444;
    --jaweb-blue: #3B82F6;
    --jaweb-emerald: #10B981;
    --jaweb-amber: #F59E0B;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--jaweb-bg);
}

/* Page background — subtle gold/blue radial glows over the dark base,
   same visual language as the mobile JawebBgGradient. */
.jaweb-page-bg {
    min-height: 100vh;
    background-color: var(--jaweb-bg);
    background-image:
        radial-gradient(1200px 600px at 85% -10%, rgba(245, 194, 66, 0.08), transparent 60%),
        radial-gradient(900px 500px at -10% 35%, rgba(59, 130, 246, 0.06), transparent 60%);
    background-attachment: fixed;
}

/* Gold accent underline — the web equivalent of the mobile TitleUnderline. */
.jaweb-underline {
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: var(--jaweb-gold);
}

/* Shared card treatment for feature/mode cards. */
.jaweb-card {
    background: var(--jaweb-surface) !important;
    border: 1px solid var(--jaweb-border);
    border-radius: 16px;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.jaweb-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 194, 66, 0.45);
}

/* Icon tile shown at the top of feature cards. */
.jaweb-icon-tile {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jaweb-surface-elevated);
    border: 1px solid var(--jaweb-border);
}

/* Phone-shaped frame for screenshots (and their placeholders). */
.jaweb-phone-frame {
    aspect-ratio: 9 / 19.5;
    width: min(260px, 80vw);
    border-radius: 36px;
    border: 1px solid var(--jaweb-border);
    background: linear-gradient(160deg, var(--jaweb-surface) 0%, var(--jaweb-bg-elevated) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.jaweb-phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jaweb-phone-frame .jaweb-phone-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
}

/* Sticky translucent header backdrop blur. */
.jaweb-appbar {
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--jaweb-border);
}

/* Brand logo image in the header and footer. */
.jaweb-logo-tile {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

/* Hero section spacing on top of the fixed appbar. */
.jaweb-hero {
    padding-top: 96px;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

/* Gold text accent inside headings. */
.jaweb-gold-text {
    color: var(--jaweb-gold);
}

/* Legal pages: readable measure + consistent section rhythm. */
.jaweb-legal {
    max-width: 820px;
}

.jaweb-legal h1 {
    margin-bottom: 0.25em;
}

/* Section vertical rhythm — used by every landing section. */
.jaweb-section {
    padding-top: 96px;
    padding-bottom: 32px;
    scroll-margin-top: 72px;
}

@media (max-width: 600px) {
    .jaweb-hero {
        min-height: unset;
        padding-top: 110px;
        padding-bottom: 24px;
    }

    .jaweb-section {
        padding-top: 64px;
        scroll-margin-top: 64px;
    }
}
