/* ============================================
   GitRdy — Premium Dark Design System
   Inspired by Linear, Vercel, Raycast
   ============================================ */

:root {
    /* BRAND */
    --teal: #3898A8;
    --teal-bright: #4EC5D4;
    --teal-dim: #2B7A87;
    --amber: #F8A008;
    --amber-bright: #FBBF24;
    --amber-dim: #D98A00;

    /* SURFACES — dark-first */
    --bg-primary: #09090B;
    --bg-elevated: #111114;
    --bg-surface: #18181B;
    --bg-surface-hover: #1F1F23;
    --bg-overlay: rgba(0,0,0,0.7);

    /* TEXT */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-tertiary: #52525B;
    --text-inverse: #09090B;

    /* BORDERS */
    --border-subtle: rgba(255,255,255,0.06);
    --border-default: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.15);
    --border-teal: rgba(56,152,168,0.3);
    --border-amber: rgba(248,160,8,0.3);

    /* SEMANTIC */
    --color-success: #22C55E;
    --color-error: #EF4444;

    /* GRADIENTS */
    --gradient-teal: linear-gradient(135deg, #3898A8, #4EC5D4);
    --gradient-amber: linear-gradient(135deg, #F8A008, #FBBF24);
    --gradient-text: linear-gradient(135deg, #FAFAFA 0%, #A1A1AA 100%);
    --gradient-glow: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(56,152,168,0.15), transparent);

    /* TYPOGRAPHY */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* SPACING */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* LAYOUT */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* SHADOWS */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-glow-teal: 0 0 40px rgba(56,152,168,0.15), 0 0 80px rgba(56,152,168,0.05);
    --shadow-glow-amber: 0 0 40px rgba(248,160,8,0.15), 0 0 80px rgba(248,160,8,0.05);

    /* TRANSITIONS */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--teal-bright);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--text-primary); }

::selection {
    background: rgba(56,152,168,0.3);
    color: var(--text-primary);
}

/* === ACCESSIBILITY === */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: var(--space-sm) var(--space-md);
    background: var(--teal);
    color: var(--text-primary);
    font-weight: 600;
}
.skip-to-content:focus { left: 0; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 { font-weight: 800; font-size: 2.5rem; }
h2 { font-weight: 700; font-size: 2rem; margin-bottom: var(--space-md); }
h3 { font-weight: 600; font-size: 1.5rem; }
h4 { font-weight: 600; font-size: 1.1rem; }

p { margin-bottom: var(--space-md); }

.text-large { font-size: 1.15rem; line-height: 1.8; }
.text-small { font-size: 0.85rem; color: var(--text-tertiary); }
.text-gradient {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section labels — code-pill style */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-bright);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-teal);
    background: rgba(56,152,168,0.06);
    margin-bottom: var(--space-lg);
}
.section-label--amber {
    color: var(--amber-bright);
    border-color: var(--border-amber);
    background: rgba(248,160,8,0.06);
}

/* === LAYOUT === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
.container--narrow { max-width: var(--max-width-narrow); }

.section {
    padding: var(--space-4xl) 0;
    position: relative;
    isolation: isolate;
}

/* Section heading rhythm — give the eyebrow + title room to breathe */
.section > .container > .section-label { margin-bottom: var(--space-md); }

/* Section separator lines */
.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

/* === ALTERNATING SECTION PANELS ===
   Lifts every other band onto an elevated surface so the page reads
   as distinct, stacked sections instead of one flat sheet. */
.section--alt {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56,152,168,0.06), transparent 60%),
        linear-gradient(180deg, #16161A 0%, #131316 100%);
    border-block: 1px solid var(--border-default);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.section--alt + .section--alt::before,
.section--alt::before { display: none; }

/* Ambient glow that bleeds from the top of a section */
.section--glow-teal::after,
.section--glow-amber::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}
.section--glow-teal::after {
    background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(56,152,168,0.16), transparent 65%);
}
.section--glow-amber::after {
    background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(248,160,8,0.13), transparent 65%);
}

.text-center { text-align: center; }

/* === GRID === */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--5 { grid-template-columns: 1fr; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    text-decoration: none;
    line-height: 1;
    position: relative;
}
.btn:focus-visible {
    outline: 2px solid var(--teal-bright);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--text-inverse);
}
.btn-primary:hover {
    color: var(--text-inverse);
    background: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    padding: 11px 27px;
}
.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-surface);
}

.btn-accent {
    background: var(--gradient-amber);
    color: var(--text-inverse);
    font-weight: 700;
    padding: 14px 36px;
}
.btn-accent:hover {
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 15px; letter-spacing: 0.01em; }

/* === CARDS === */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
}
.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card--bordered {
    border-left: 3px solid var(--amber);
    border-radius: var(--radius-lg);
}

.card--glass {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
}
.card--glass:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 4px 0;
    transition: all var(--duration-base) var(--ease-out);
}
.navbar--transparent {
    background: rgba(9,9,11,0.72);
    backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--border-default);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 6px 24px rgba(0,0,0,0.35);
}
.navbar--scrolled {
    background: rgba(9,9,11,0.9);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border-hover);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 10px 36px rgba(0,0,0,0.5);
    padding: 2px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo { flex-shrink: 0; margin-right: auto; }
.nav-logo img { height: 110px; width: auto; margin: -30px 0; }

.nav-links {
    display: none;
    list-style: none;
    align-items: center;
    gap: var(--space-xl);
}
.nav-links a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0; right: 0;
    height: 2px;
    background: var(--gradient-teal);
    border-radius: 1px;
}

/* Nav dropdown (grouped links, e.g. Program) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-tertiary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown-toggle.active { color: var(--text-primary); }
.nav-caret {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-top: -3px;
    transition: transform var(--duration-fast) var(--ease-out), margin-top var(--duration-fast) var(--ease-out);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(-135deg); margin-top: 2px; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 180px;
    list-style: none;
    padding: var(--space-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
    z-index: 1002;
}
/* Invisible bridge so the menu stays open while the cursor travels from the toggle */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px; left: 0; right: 0;
    height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}
.nav-dropdown-menu a.active::after { display: none; }

/* Mobile drawer grouped links */
.nav-drawer-group-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}
.nav-drawer-group > ul {
    list-style: none;
    padding: 0;
    margin: var(--space-xs) 0 0;
}
.nav-drawer-group > ul li a { padding-left: var(--space-md); }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1001;
}
.nav-toggle .hamburger-line {
    width: 20px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: all var(--duration-base) var(--ease-out);
    border-radius: 2px;
}
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
    z-index: 999;
    padding: 100px var(--space-xl) var(--space-xl);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base);
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.nav-drawer a {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
}
.nav-drawer a:hover { color: var(--text-primary); }

/* === UTILITIES === */
.mt-lg { margin-block-start: var(--space-lg); }
.mt-xl { margin-block-start: var(--space-xl); }
.mt-2xl { margin-block-start: var(--space-2xl); }
.my-lg { margin-block: var(--space-lg); }
.my-xl { margin-block: var(--space-xl); }
.mb-sm { margin-block-end: var(--space-sm); }
.list-none { list-style: none; }
.btn-block { width: 100%; }

/* Centered lead paragraph beneath a section heading */
.section-lead {
    max-width: 700px;
    margin-inline: auto;
    margin-block: var(--space-lg);
}
.tracks-intro {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    color: var(--text-tertiary);
}
.cta-subtext {
    color: rgba(255, 255, 255, 0.7);
    margin-block: var(--space-lg);
}

/* Footer brand + contact helpers */
.footer-brand { margin-top: -90px; }
.footer-logo {
    height: 250px;
    width: auto;
    max-width: 100%;
    margin-bottom: 0;
    display: block;
}
.footer-tagline { margin-top: -30px; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-location {
    align-items: flex-start;
}
.footer-location svg {
    margin-top: 4px;
    flex-shrink: 0;
}
.footer-location a {
    /* Allow long addresses to wrap onto multiple lines so they never blow out the footer width. */
    overflow-wrap: anywhere;
}
.footer-copy { color: rgba(255, 255, 255, 0.5); }

/* === FOOTER === */
.footer {
    background: var(--bg-primary);
    color: var(--text-tertiary);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; right: 0;
    height: 1px;
    background: var(--border-default);
}

.footer h4 {
    color: var(--text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}
.footer a {
    color: var(--text-tertiary);
    transition: color var(--duration-fast);
}
.footer a:hover { color: var(--teal-bright); }

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    align-items: start;
}
.footer-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: var(--space-xl) 0;
}
/* Newsletter sign-up band, shown above the footer. */
.newsletter-cta {
    background: linear-gradient(135deg, rgba(56, 152, 168, 0.14), rgba(43, 122, 136, 0.06));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-2xl) 0;
}
.newsletter-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}
.newsletter-cta-copy { flex: 1 1 300px; }
.newsletter-cta-copy h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.newsletter-cta-copy p { margin: 0; color: var(--text-secondary, #8a97a3); font-size: 1.05rem; }
.newsletter-form { flex: 1 1 320px; max-width: 420px; }
.newsletter-fields { display: flex; flex-direction: column; gap: var(--space-sm); }
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-2, rgba(255, 255, 255, 0.05));
    color: var(--text-primary, #e9eef2);
    font-size: 1rem;
}
.newsletter-form input::placeholder { color: var(--text-secondary, #8a97a3); }
.newsletter-form input:focus { outline: none; border-color: var(--teal-bright); box-shadow: 0 0 0 3px rgba(56, 152, 168, 0.2); }
.newsletter-form button {
    margin-top: var(--space-sm);
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    border: none;
    background: var(--teal-bright);
    color: #06222a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}
.newsletter-form button:hover { filter: brightness(1.05); }
.newsletter-form button:disabled { opacity: 0.6; cursor: default; }
.newsletter-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.newsletter-msg { margin: .75rem 0 0; font-size: 0.95rem; min-height: 1.2em; }
.newsletter-msg.is-ok { color: var(--teal-bright); }
.newsletter-msg.is-error { color: #ff8a8a; }
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}
.footer-social {
    display: flex;
    gap: var(--space-md);
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-base) var(--ease-out);
}
.footer-social a:hover {
    border-color: var(--teal);
    background: rgba(56,152,168,0.1);
    transform: translateY(-2px);
}
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }

.footer-terminal {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--teal);
    opacity: 0.3;
    margin-top: var(--space-md);
}

/* === FORMS === */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}
.form-input, .form-select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
    appearance: none;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(56,152,168,0.15);
    background: var(--bg-elevated);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-input.error, .form-select.error { border-color: var(--color-error); }
.form-error {
    font-size: 0.8rem;
    color: var(--color-error);
    margin-top: var(--space-xs);
    display: none;
}
.form-error.visible { display: block; }
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2352525B' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* === ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-text {
    font-family: var(--font-mono);
    color: var(--teal-bright);
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--teal-bright);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.btn-pulse { animation: subtle-pulse 2.5s infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

/* Glow orb - disabled */
.glow-orb {
    display: none;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    .section { padding: var(--space-5xl) 0; }
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.75rem; }
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--5 { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1.6fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .fade-in-up { opacity: 1; transform: none; }
}

/* === FLOATING QUICK ACTIONS === */
.qa {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
.qa--hidden { display: none !important; }
[dir="rtl"] .qa {
    right: auto;
    left: 1.25rem;
    align-items: flex-end;
}

.qa-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
[dir="rtl"] .qa-panel { align-items: flex-end; }

.qa-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
[dir="rtl"] .qa-menu { align-items: flex-end; }
.qa.is-open .qa-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qa-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s var(--ease-out), border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.qa-item:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
    color: var(--text-primary);
}
.qa-item--primary {
    background: var(--amber);
    color: #1a1204;
    border-color: transparent;
}
.qa-item--primary:hover {
    background: var(--amber-bright);
    color: #1a1204;
}
.qa-item-icon {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
}
.qa-item-icon svg { display: block; }
[dir="rtl"] .qa-item-icon--faq svg { transform: scaleX(-1); }

.qa-fab-wrap { position: relative; }
.qa-fab {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 1px solid var(--border-amber);
    cursor: pointer;
    background: var(--bg-elevated);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(248, 160, 8, 0.35);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
    animation: qa-pulse 3s ease-in-out infinite;
}
.qa-fab:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
    box-shadow: 0 14px 36px rgba(248, 160, 8, 0.5);
}
.qa-fab-logo {
    display: block;
    height: 2rem;
    width: auto;
    pointer-events: none;
}
.qa.is-open .qa-fab { border-color: var(--amber-bright); }

.qa-collapse {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-hover);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}
[dir="rtl"] .qa-collapse {
    right: auto;
    left: -0.4rem;
}
.qa-collapse:hover {
    border-color: var(--amber);
    color: var(--amber-bright);
}
.qa-collapse-line {
    display: block;
    width: 0.7rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* Collapsed state: hide the panel and show a slim edge handle to bring it back. */
.qa-handle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 3rem;
    padding: 0;
    border: 1px solid var(--border-amber);
    border-right: none;
    cursor: pointer;
    background: var(--bg-elevated);
    border-radius: 10px 0 0 10px;
    margin-right: -1.25rem;
    box-shadow: 0 8px 24px rgba(248, 160, 8, 0.25);
    transition: margin 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.qa-handle:hover {
    border-color: var(--amber);
    margin-right: -0.9rem;
}
.qa-handle-logo {
    display: block;
    width: 1.1rem;
    height: auto;
    pointer-events: none;
}
[dir="rtl"] .qa-handle {
    border-radius: 0 10px 10px 0;
    border-right: 1px solid var(--border-amber);
    border-left: none;
    margin-right: 0;
    margin-left: -1.25rem;
}
[dir="rtl"] .qa-handle:hover {
    margin-left: -0.9rem;
}
.qa--collapsed .qa-panel { display: none; }
.qa--collapsed .qa-handle { display: inline-flex; }

@keyframes qa-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(248, 160, 8, 0.35); }
    50% { box-shadow: 0 10px 34px rgba(248, 160, 8, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .qa-menu, .qa-fab, .qa-fab-icon, .qa-item, .qa-handle { transition: none; }
    .qa-fab { animation: none; }
}
