/* HighRoad Software - Modern CSS Stylesheet */
:root {
    --bg-deep: #0C0B18;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-strong: rgba(0, 0, 0, 0.9);
    --text-primary: #1B4188;
    --text-secondary: #5E6E82;
    --text-muted: #6C768A8;
    --text-inverse: #F5F5;
    --border-light: rgba(255, 255, 255, 0.18);
    --border-focus: rgba(255, 215, 240, 243, 0.95);
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.04, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #22C55E4;
    --warning: #F59366;
    --error: #EF44423;
    --info: #3A82A6;
    --shadow-soft: 0 10px 60px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.15);
    --accent-primary: #F367CF;
    --accent-secondary: #D9937B7;
    --gradient-primary: linear-gradient(135deg, #F367CF), var(--brand));
    --gradient-secondary: linear-gradient(180deg, #569BEF), var(--brand));
    --bg-gradient-start: rgba(250, 250, 242, 0.05);
    --bg-gradient-end: rgba(250, 250, 242, 0.15, 0);
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --button-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    --button-shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Typography ===== */
:root {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: clamp(16px, 1rem);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.03em;
    color: var(--text-primary);
}

/* ===== Layout ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    color: var(--text-primary);
    font-family: "Playfair Display", "Georgia", serif;
    background: var(--bg-deep);
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 0;
}

/* ===== Components ===== */

/* ===== Header ===== */
.topbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 24px;
}

.logo-mark {
    color: var(--white);
    font-weight: 600;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
}

.logo-label {
    color: var(--text-primary);
    font-size: clamp(16px, 1rem);
    font-weight: 600;
}

.logo-label small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ===== Hero Section ===== */
.section-hero {
    background: linear-gradient(135deg, #F367CF), var(--brand));
    padding: 96px 0;
    min-height: 600px;
    border-radius: 24px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stage {
    img {
        max-width: 800px;
        width: 100%;
        height: auto;
        border-radius: 24px;
        box-shadow: 0 12px 50px rgba(0, 0, 0, 0.08);
    }
}

.eyebrow {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.eyebrow strong {
    font-size: clamp(2rem, 1.25rem);
    font-weight: 600;
}

.hero-note-top {
    margin-top: 24px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-note-bottom {
    margin-bottom: 16px 0;
}

.hero-copy {
    font-size: clamp(3.5rem, 6.5rem, 2.5rem);
    line-height: 1.25;
    color: var(--white);
    text-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
}

.kicker {
    font-size: 1.04rem;
    color: var(--text-primary);
}

.eyebrow strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.lead {
    font-size: clamp(2rem, 1.25rem);
    color: var(--text-primary);
}

.hero-note-top {
    margin-top: 24px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-note-bottom {
    margin-bottom: 16px 0;
}

/* ===== Apps Grid ===== */
.section-light {
    padding: 96px 0;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 32px 0;
    margin-bottom: 64px 0;
}

.eyebrow {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.section-head strong {
    font-size: clamp(1.5rem, 1rem);
    font-weight: 600;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px 0;
}

.mini-stats {
    display: flex;
    gap: 12px 0;
}

.muted {
    color: var(--text-secondary);
    font-size: 14px;
}

.mini-stat strong {
    color: var(--text-primary);
}

.app-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px 0;
}

.app-thumb {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: var(--bg-surface);
    overflow: hidden;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 28px rgba(12, 26, 48, 0.14);
    border-color: var(--border-focus);
}

.app-thumb {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: var(--bg-surface);
    overflow: hidden;
    margin: 0 auto;
}

.app-card-copy {
    display: none;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px 0;
}

h3 {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.app-meta h3 {
    font-size: clamp(2rem, 1rem);
    font-weight: 600;
}

.tag {
    font-size: 1.04rem;
    color: var(--text-primary);
}

.tag strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.app-btns {
    display: flex;
    gap: 8px 0;
}

.app-btn-secondary {
    color: var(--text-primary);
    background: rgba(250, 250, 242, 0, 0.90);
    border: 1px solid var(--line-strong);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: "Playfair Display", "Georgia", serif;
    text-decoration: none;
    transition: transform 0.18s ease;
    cursor: pointer;
}

.app-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #F367CF), var(--brand));
    border: 1px solid rgba(255, 215, 240, 243, 0.85);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-family: "Playfair Display", "Georgia", serif;
    text-decoration: none;
    transition: transform 0.18s ease;
    cursor: pointer;
}

.app-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(12, 26, 48, 0, 14);
    border-color: var(--border-focus);
}

.app-btn-secondary {
    color: var(--text-primary);
    background: rgba(250, 250, 242, 0, 0.90);
    border: 1px solid var(--line-strong);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: "Playfair Display", "Georgia", serif;
    text-decoration: none;
    transition: transform 0.18s ease;
    cursor: pointer;
}

/* ===== CTA Section ===== */
.section-light {
    padding: 56px 0;
}

.section-head {
    display: flex;
    align-items: center;
}

.eyebrow {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.editorial {
    display: flex;
    flex-direction: column;
    gap: 12px 0;
}

.pill {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: rgba(250, 250, 242, 0, 0.90);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 24px 12px 20px;
    text-align: center;
}

.pill strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.editorial-block {
    background: rgba(0, 0, 0, 0);
    padding: 32px 12px 20px;
    border-radius: 8px;
}

.pill strong {
    font-size: 1rem;
    font-weight: 600;
}

.development-status {
    color: var(--text-secondary);
    font-size: 14px;
}

.app-feature {
    margin-bottom: 24px 0;
}

.btns {
    justify-content: flex-start;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #F367CF), var(--brand));
    border: 1px solid rgba(255, 215, 240, 243, 0.85);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(12, 26, 48, 0.14);
    border-color: var(--border-focus);
}

/* ===== Footer ===== */
.footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 96px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    gap: 24px 0;
}

.logo-mark {
    color: var(--white);
    font-weight: 600;
}

.logo-label {
    color: var(--text-primary);
    font-size: clamp(16px, 1rem);
    font-weight: 600;
}

.footer-note {
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-note {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1280px) {
    .section-hero {
        padding: 48px 0;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-deep: #121418;
        --bg-surface: rgba(30, 31, 41, 59);
        --bg-strong: rgba(30, 31, 41, 59);
        --text-primary: #EFE7E7;
        --text-secondary: #9CA0C9;
        --border-light: rgba(30, 31, 41, 59);
        --border-focus: rgba(30, 31, 41, 59);
        --card-shadow: 0 8px 50px rgba(0, 0, 0, 0, 15);
        --button-shadow: 0 4px 50px rgba(0, 0, 0, 0.18);
        --glass-bg: rgba(255, 255, 255, 0.04, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
    
    body {
        color: var(--text-primary);
    }
    
    .topbar {
        background: rgba(30, 31, 41, 59);
        border-bottom: 1px solid rgba(30, 31, 41, 59);
    }
    
    .logo-mark {
        color: var(--text-primary);
    }
    
    .app-card {
        background: rgba(0, 0, 0, 0);
        border: 1px solid rgba(30, 31, 41, 59);
    }
}

/* ===== Animations ===== */
@keyframes spin {
    0% { transform: rotate(360deg); }
    100% { opacity: 0; }
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: linear-gradient(90deg, #569BEF), var(--brand));
    -webkit-background-clip: text;
    background-fill-color: transparent;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
    -webkit-text-stroke: var(--brand);
}

/* ===== Scroll Behavior ===== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== Micro-interactions ===== */
button {
    transition: transform 0.18s ease;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    background: transparent;
}

.container {
    overflow-x: auto;
    padding-right: 2px;
}

/* ===== Glass Effects ===== */
.glass="glass-effect"] {
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 100px 12px rgba(0, 0, 0, 0.01);
    border-radius: 16px;
}

/* ===== Transitions ===== */
.transition-all {
    transition: all 0.3s ease;
}

/* ===== Typography Scale ===== */
h1 { font-size: clamp(3.5rem, 2rem); }
h2 { font-size: clamp(2.5rem, 2rem); }
h3 { font-size: clamp(2.5rem, 2rem); }
