/* ============================================================
   Rummifox — Marketing Site
   Dark premium theme — matches the app's design language
   ============================================================ */

:root {
    --bg:          #05050a;
    --bg-soft:     #0b0b13;
    --bg-card:     #14141c;
    --bg-elev:     rgba(255,255,255,0.04);
    --border:      rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.15);
    --text:        #e2e8f0;
    --text-soft:   #94a3b8;
    --text-dim:    #64748b;
    --accent:      #f59e0b;
    --accent-hi:   #fbbf24;
    --accent-glow: rgba(245,158,11,0.35);
    --green:       #34d399;
    --blue:        #60a5fa;
    --red:         #f87171;
    --purple:      #c084fc;
    --pink:        #f472b6;
    --cyan:        #22d3ee;
    --slate:       #94a3b8;
    --radius:      16px;
    --radius-lg:   24px;
    --radius-pill: 9999px;
    --shadow:      0 10px 40px rgba(0,0,0,0.5);
    --shadow-neon: 0 0 30px rgba(245,158,11,0.25);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== BUTTONS ========== */

.btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
    color: #0b0b13;
    box-shadow: var(--shadow-neon), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(245,158,11,0.5), 0 6px 18px rgba(0,0,0,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-strong);
}

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ========== HEADER ========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5,5,10,0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}
.brand-logo {
    width: 36px; height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--accent-glow), 0 0 14px var(--accent-glow);
}
.brand-name { color: #fff; }

.nav {
    display: flex;
    gap: 24px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-soft);
}
.nav a { transition: color 0.15s; }
.nav a:hover { color: var(--accent-hi); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s;
}
.lang-switch:hover { border-color: var(--border-strong); color: var(--text); }
.lang-active { color: var(--accent); }
.lang-sep { color: var(--text-dim); padding: 0 4px; }

/* Hide nav on small screens */
@media (max-width: 768px) {
    .nav { display: none; }
    .header-inner { gap: 12px; }
}

/* ========== HERO ========== */

.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(245,158,11,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(96,165,250,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero { padding: 56px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--radius-pill);
    color: var(--accent-hi);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}
.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 20px;
}
.hero-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 50%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-soft);
    margin-bottom: 32px;
    max-width: 560px;
}
@media (max-width: 900px) { .hero-subtitle { margin-left: auto; margin-right: auto; } }

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
@media (max-width: 900px) { .hero-cta { justify-content: center; } }

.hero-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
@media (max-width: 900px) { .hero-meta { justify-content: center; } }

.meta-item strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.meta-item span {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    display: block;
}

/* Phone mockup */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 280px;
}

.phone-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a35 0%, #14141c 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    padding: 16px 14px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.05);
}

.phone-screen {
    background: linear-gradient(160deg, #0b0b13 0%, #14141c 100%);
    border-radius: 28px;
    padding: 32px 20px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-hero-logo {
    width: 80px; height: 80px;
    border-radius: 18px;
    box-shadow: 0 0 40px var(--accent-glow);
    margin-bottom: 12px;
}

.phone-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}

.phone-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.phone-divider {
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 8px 0 12px;
}

.phone-feature-line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.phone-feature-line:first-of-type {
    background: linear-gradient(90deg, rgba(245,158,11,0.2), rgba(245,158,11,0.05));
    border-color: rgba(245,158,11,0.4);
}
.phone-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.phone-dot-gold   { background: var(--accent-hi); box-shadow: 0 0 8px var(--accent-hi); }
.phone-dot-silver { background: #cbd5e1; }
.phone-dot-bronze { background: #d97706; }

.phone-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 60%);
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
}

/* ========== SECTION HEADER ========== */

section { padding: 100px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-soft);
}

/* ========== FEATURES ========== */

.features { background: var(--bg-soft); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-icon-amber   { background: rgba(245,158,11,0.15); color: var(--accent-hi); }
.feature-icon-emerald { background: rgba(52,211,153,0.15); color: var(--green); }
.feature-icon-blue    { background: rgba(96,165,250,0.15); color: var(--blue); }
.feature-icon-purple  { background: rgba(192,132,252,0.15); color: var(--purple); }
.feature-icon-pink    { background: rgba(244,114,182,0.15); color: var(--pink); }
.feature-icon-red     { background: rgba(248,113,113,0.15); color: var(--red); }
.feature-icon-cyan    { background: rgba(34,211,238,0.15); color: var(--cyan); }
.feature-icon-slate   { background: rgba(148,163,184,0.15); color: var(--slate); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.55;
}

/* ========== SCREENSHOTS ========== */

.screenshots { background: var(--bg); }

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
@media (min-width: 1024px) {
    .screens-grid { grid-template-columns: repeat(4, 1fr); }
}

.screen-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.25s ease;
}
.screen-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,158,11,0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.15);
}

.screen-card img {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    background: var(--bg-soft);
    display: block;
}

.screen-placeholder {
    width: 100%;
    aspect-ratio: 9 / 19;
    background: linear-gradient(160deg, #0b0b13, #14141c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-dim);
}
.screen-placeholder span { font-size: 3rem; opacity: 0.6; }
.screen-placeholder em { font-style: normal; font-size: 0.85rem; letter-spacing: 0.05em; }

.screen-card figcaption {
    padding: 16px;
    font-size: 0.85rem;
    color: var(--text-soft);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* ========== HOW ========== */

.how { background: var(--bg-soft); }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.step { text-align: center; }

.step-num {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hi));
    color: #0b0b13;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: var(--shadow-neon);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* ========== PRICING ========== */

.pricing { background: var(--bg); }

.pricing-card {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 40px;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-soft) 100%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}
.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.pricing-ribbon {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.35);
    color: var(--accent-hi);
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.pricing-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.pricing-card > p {
    color: var(--text-soft);
    margin-bottom: 28px;
    line-height: 1.65;
}

/* ========== FAQ ========== */

.faq { background: var(--bg-soft); }

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(245,158,11,0.3); }

.faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 300;
    transition: transform 0.2s;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: rgba(255,255,255,0.03); }

.faq-item p {
    padding: 0 22px 20px;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ========== DOWNLOAD CTA ========== */

.download {
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-soft) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(245,158,11,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.download-inner {
    text-align: center;
    max-width: 600px;
    position: relative;
}

.download-logo {
    width: 96px; height: 96px;
    margin: 0 auto 24px;
    border-radius: 22px;
    box-shadow: 0 0 60px var(--accent-glow);
}

.download h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.download p {
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 32px;
}

.playstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    transition: all 0.2s;
}
.playstore-btn:hover {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}
.playstore-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1;
}
.playstore-text small {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.playstore-text strong {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.download-note {
    margin-top: 24px !important;
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
}

/* ========== FOOTER ========== */

.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    .footer-brand { justify-content: center; }
    .footer-nav  { justify-content: center; }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
}
.footer-name {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}
.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-nav {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 0.9rem;
}
.footer-nav a { color: var(--text-soft); transition: color 0.15s; }
.footer-nav a:hover { color: var(--accent-hi); }

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-note {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.footer-note small {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ========== IMPRINT PAGE ========== */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}
.legal-page h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 16px;
}
.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 10px;
}
.legal-page p, .legal-page li {
    color: var(--text-soft);
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.95rem;
}
.legal-page ul, .legal-page ol {
    padding-left: 1.5em;
    margin-bottom: 16px;
}
.legal-page a {
    color: var(--accent-hi);
    text-decoration: underline;
    text-decoration-color: rgba(251,191,36,0.4);
    text-underline-offset: 3px;
}
.legal-page a:hover { text-decoration-color: var(--accent-hi); }

.legal-page hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 32px;
    transition: color 0.15s;
}
.back-home:hover { color: var(--accent-hi); }
