/* DonkeyRadar — public site (racetrack green & white) */

:root {
    --turf:         #0d8044;
    --turf-dark:    #064a26;
    --turf-deeper:  #021a0c;
    --turf-glow:    #12c462;
    --white:        #ffffff;
    --off-white:    #f2f7f4;
    --cream:        #fafcfb;
    --gold:         #d4a534;
    --gold-bright:  #f0c940;
    --text-dark:    #0c1f13;
    --text-mid:     #3d5a48;
    --text-light:   #dde8e1;
    --text-on-turf: #e3f2e9;
    --border-light: #d0ddd5;
    --won:          #1aad50;
    --lost:         #d44040;
    --radius:       8px;
    --radius-lg:    16px;
    --shadow:       0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body.public {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

a { color: var(--turf); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Public nav ─── */

.pub-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 2rem;
    background: rgba(2, 26, 12, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pub-nav .nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}
.pub-nav .nav-brand span { color: var(--turf-glow); }
.pub-nav .nav-links { display: flex; gap: 1.5rem; align-items: center; }
.pub-nav .nav-links a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.15s;
}
.pub-nav .nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-cta {
    display: inline-block;
    background: var(--turf);
    color: var(--white) !important;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.nav-cta:hover { background: var(--turf-dark); text-decoration: none !important; }

/* ─── Hero ─── */

.hero {
    position: relative;
    padding: 9rem 2rem 5rem;
    background: linear-gradient(165deg, var(--turf-deeper) 0%, #062e16 40%, var(--turf-dark) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(18,196,98,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--turf-glow) 0px,
        var(--turf-glow) 40px,
        transparent 40px,
        transparent 52px
    );
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}
.hero-text {
    flex: 1;
    min-width: 0;
}
.hero-mascot {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.hero-mascot img {
    max-width: 340px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 720px;
    margin: 0 0 1.25rem;
}
.hero h1 em {
    font-style: normal;
    color: var(--turf-glow);
}
.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-on-turf);
    max-width: 560px;
    margin: 0 0 2.5rem;
    opacity: 0.85;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--turf-glow);
    color: var(--turf-deeper);
}
.btn-primary:hover { background: #15d66c; text-decoration: none; }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

/* ─── Section layout ─── */

.section-dark {
    background: var(--turf-deeper);
    color: var(--text-on-turf);
    padding: 4.5rem 2rem;
}
.section-light {
    background: var(--off-white);
    color: var(--text-dark);
    padding: 4.5rem 2rem;
}
.section-white {
    background: var(--white);
    color: var(--text-dark);
    padding: 4.5rem 2rem;
}
.section-green {
    background: linear-gradient(165deg, var(--turf-dark) 0%, var(--turf) 100%);
    color: var(--white);
    padding: 4.5rem 2rem;
}
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: center;
}
.section-sub {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* ─── How it works ─── */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.step {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--turf);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.step p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ─── Performance / stats ─── */

.perf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.perf-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}
.perf-card .perf-value {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--turf-glow);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.perf-card .perf-value.gold { color: var(--gold-bright); }
.perf-card .perf-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
}
.recent-results {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.recent-results table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.recent-results th {
    text-align: left;
    padding: 0.65rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.recent-results td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.recent-results tr:last-child td { border-bottom: none; }
.recent-results .mono { font-family: var(--font-mono); font-size: 0.8rem; }
.recent-results .won { color: var(--won); font-weight: 600; }
.recent-results .lost { color: var(--lost); font-weight: 600; }
.results-note {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 1.25rem;
}

/* ─── Pricing ─── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.price-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card.featured {
    border: 2px solid var(--turf);
    box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
    content: 'Most popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--turf);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 1rem;
    border-radius: 20px;
}
.price-card .plan-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.price-card .plan-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--turf-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.price-card .plan-price .currency { font-size: 1.4rem; vertical-align: top; }
.price-card .plan-period {
    font-size: 0.8rem;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
}
.price-card ul {
    list-style: none;
    margin-bottom: 2rem;
}
.price-card li {
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--text-mid);
    padding-left: 1.4rem;
    position: relative;
}
.price-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--turf);
    font-weight: 700;
}
.price-card .btn {
    width: 100%;
    text-align: center;
    display: block;
}
.btn-green {
    background: var(--turf);
    color: var(--white);
}
.btn-green:hover { background: var(--turf-dark); text-decoration: none; }
.btn-dark {
    background: var(--turf-deeper);
    color: var(--white);
}
.btn-dark:hover { background: #031a0c; text-decoration: none; }

/* ─── Email capture ─── */

.capture-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
}
.capture-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.capture-form input::placeholder { color: rgba(255,255,255,0.4); }
.capture-form input:focus { border-color: var(--turf-glow); }
.capture-form button {
    white-space: nowrap;
}

/* ─── Footer ─── */

.pub-footer {
    background: var(--turf-deeper);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2.5rem 2rem;
    text-align: center;
}
.pub-footer p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.pub-footer .footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .hero { padding: 7rem 1.25rem 3.5rem; }
    .hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-mascot img { max-width: 220px; }
    .hero-actions { justify-content: center; }
    .hero .subtitle { margin-left: auto; margin-right: auto; }
    .hero h1 { font-size: 2rem; margin-left: auto; margin-right: auto; }
    .section-dark, .section-light, .section-white, .section-green { padding: 3rem 1.25rem; }
    .pub-nav { padding: 0.75rem 1rem; }
    .pub-nav .nav-links { gap: 0.75rem; }
    .capture-form { flex-direction: column; }
    .pricing-grid { grid-template-columns: 1fr; }
    .perf-grid { grid-template-columns: repeat(2, 1fr); }
}
