/*
Theme Name: Clever Hares
Theme URI: https://cleverhares.com
Author: Clever Hares
Description: Official theme for cleverhares.com — Better is possible. Now we're building it.
Version: 1.0
License: Proprietary
Text Domain: cleverhares
*/

:root {
    --bg: #0B0E0D;
    --bg-2: #111514;
    --bg-3: #161B19;
    --bg-card: #1A201E;
    --text: #EDE9E0;
    --text-2: #A8A49B;
    --text-3: #6B6860;
    --gold: #C8A96E;
    --gold-bright: #DFC48A;
    --gold-dim: #8C7644;
    --green: #4A7C5C;
    --green-dim: #2A4A35;
    --blue: #5B8BA4;
    --blue-dim: #2A4050;
    --coral: #C47A6C;
    --coral-dim: #5A3530;
    --purple: #8B7BAA;
    --purple-dim: #3A3450;
    --border: rgba(200, 169, 110, 0.1);
    --border-2: rgba(200, 169, 110, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: 'Fraunces', serif; }

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(11, 14, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

.nav-logo {
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none;
}

.nav-mark {
    height: 42px;
    padding: 0 10px;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center; justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 1.2rem; font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.nav-name {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem; font-weight: 500;
    color: var(--text); letter-spacing: 0.01em;
}

.nav-links {
    display: flex; gap: 2.25rem; list-style: none; align-items: center;
}

.nav-links a {
    color: var(--text-2); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
    padding: 0.55rem 1.4rem !important;
    border: 1px solid var(--gold-dim);
    color: var(--gold) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--bg) !important;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative; overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(200, 169, 110, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(74, 124, 92, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 400; line-height: 1.15;
    max-width: 800px; margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 em { font-style: italic; color: var(--gold); }
.hero h1 .line2 { display: block; color: var(--text); font-style: normal; }

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-2); max-width: 520px;
    line-height: 1.7; font-weight: 300;
    opacity: 0; animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-btns {
    margin-top: 2.5rem; display: flex; gap: 1rem;
    opacity: 0; animation: fadeUp 0.8s ease 0.65s forwards;
}

.btn {
    display: inline-block; padding: 0.8rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem; font-weight: 600;
    letter-spacing: 0.03em; text-decoration: none;
    transition: all 0.3s ease; cursor: pointer; border: none;
}

.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }

.btn-outline { border: 1px solid var(--border-2); color: var(--text); background: none; }
.btn-outline:hover { border-color: var(--gold-dim); color: var(--gold); }

.scroll-hint {
    position: absolute; bottom: 2.5rem;
    left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    opacity: 0; animation: fadeUp 0.6s ease 1s forwards;
}

.scroll-hint span {
    font-size: 0.65rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-3);
}

.scroll-hint-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ── SECTIONS ── */
.section { padding: 7rem 2rem; position: relative; }
.section-dark { background: var(--bg-2); }

.section-line {
    position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.section-label {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 2.5rem;
}

/* ── BRAND STORY ── */
.story-wrap { max-width: 680px; margin: 0 auto; }

.story p {
    font-size: 1.12rem; line-height: 1.85;
    color: var(--text-2); font-weight: 300;
    margin-bottom: 1.75rem;
}

.story p:first-of-type {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem; line-height: 1.55;
    color: var(--text); font-weight: 400;
}

.story .em { color: var(--text); font-weight: 400; }

.story-hare {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem; color: var(--text);
    margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid var(--border); line-height: 1.5;
}

.story-close {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    color: var(--gold); margin-top: 2.5rem; line-height: 1.35;
}

/* ── MISSION ── */
.mission-grid {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}

.m-card {
    padding: 2.75rem; border: 1px solid var(--border);
    background: var(--bg-card);
}

.m-card-label {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.25rem;
}

.m-card p {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem; line-height: 1.5; color: var(--text);
}

.m-card .q { color: var(--gold); }

/* ── PILLARS ── */
.pillars-top { text-align: center; max-width: 650px; margin: 0 auto 4rem; }

.pillars-h {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin-bottom: 1rem; line-height: 1.2; font-weight: 400;
}

.pillars-sub {
    font-size: 1.05rem; color: var(--text-2);
    font-weight: 300; line-height: 1.65;
}

.pillars-grid {
    max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}

.pillar {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 2.25rem 1.75rem;
    display: flex; flex-direction: column;
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
}

.pillar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; opacity: 0; transition: opacity 0.4s ease;
}

.pillar:hover { transform: translateY(-4px); border-color: var(--border-2); }
.pillar:hover::before { opacity: 1; }

.p-play::before { background: var(--coral); }
.p-plan::before { background: var(--blue); }
.p-live::before { background: var(--green); }
.p-work::before { background: var(--purple); }

.p-icon {
    width: 44px; height: 44px; margin-bottom: 1.25rem;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

.p-play .p-icon { background: var(--coral-dim); color: var(--coral); }
.p-plan .p-icon { background: var(--blue-dim); color: var(--blue); }
.p-live .p-icon { background: var(--green-dim); color: var(--green); }
.p-work .p-icon { background: var(--purple-dim); color: var(--purple); }

.p-icon svg { width: 22px; height: 22px; }

.p-cat {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.p-play .p-cat { color: var(--coral); }
.p-plan .p-cat { color: var(--blue); }
.p-live .p-cat { color: var(--green); }
.p-work .p-cat { color: var(--purple); }

.pillar h3 {
    font-size: 1.2rem; font-weight: 400;
    margin-bottom: 0.75rem; line-height: 1.3;
}

.p-desc {
    font-size: 0.92rem; color: var(--text-2);
    line-height: 1.6; font-weight: 300;
    flex-grow: 1; margin-bottom: 1.5rem;
}

.p-products {
    border-top: 1px solid var(--border); padding-top: 1.25rem;
}

.prod {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0;
}

.prod + .prod { border-top: 1px solid rgba(255,255,255,0.04); }

.prod-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }

.prod-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.25rem 0.6rem; border-radius: 100px;
}

.s-dev { background: rgba(200,169,110,0.12); color: var(--gold); }
.s-beta { background: rgba(74,124,92,0.15); color: var(--green); }
.s-plan { background: rgba(139,123,170,0.15); color: var(--purple); }

.s-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: currentColor;
}

.p-cta {
    display: block; text-align: center;
    margin-top: 1.25rem; padding: 0.6rem;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.04em; color: var(--gold);
    text-decoration: none; border: 1px solid var(--border);
    transition: all 0.3s ease; cursor: pointer;
    background: none; width: 100%;
    font-family: 'Outfit', sans-serif;
}

.p-cta:hover {
    background: rgba(200,169,110,0.08);
    border-color: var(--gold-dim);
}

/* ── MODAL ── */
.overlay {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px); z-index: 200;
    align-items: center; justify-content: center;
}

.overlay.on { display: flex; }

.modal {
    background: var(--bg-3); border: 1px solid var(--border-2);
    padding: 2.5rem; max-width: 420px; width: 90%; position: relative;
}

.modal-x {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: var(--text-3);
    font-size: 1.4rem; cursor: pointer; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s;
}

.modal-x:hover { color: var(--text); }

.modal h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 400; }
.modal p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1.5rem; line-height: 1.5; }

.modal input {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--bg); border: 1px solid var(--border-2);
    color: var(--text); font-family: 'Outfit', sans-serif;
    font-size: 0.95rem; margin-bottom: 0.75rem; outline: none;
    transition: border-color 0.3s;
}

.modal input:focus { border-color: var(--gold-dim); }

.modal-btn {
    width: 100%; padding: 0.75rem; background: var(--gold);
    color: var(--bg); border: none; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-size: 0.9rem;
    font-weight: 600; letter-spacing: 0.03em; transition: background 0.3s;
}

.modal-btn:hover { background: var(--gold-bright); }

.modal-ok {
    display: none; text-align: center; padding: 1rem 0;
}

.modal-ok .chk {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--green-dim); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.4rem;
}

/* ── CTA ── */
.cta {
    padding: 7rem 2rem; text-align: center;
    position: relative; overflow: hidden;
}

.cta::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(200,169,110,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-wrap { max-width: 550px; margin: 0 auto; position: relative; }

.cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 1rem; line-height: 1.25; font-weight: 400;
}

.cta p {
    font-size: 1.05rem; color: var(--text-2);
    font-weight: 300; margin-bottom: 2rem; line-height: 1.6;
}

/* ── FOOTER ── */
footer {
    padding: 2.5rem 3rem; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}

.f-logo {
    display: flex; align-items: center; gap: 0.6rem;
}

.f-mark {
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--text-3);
    display: flex;
    align-items: center; justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.05em;
}

.f-logo span {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem; color: var(--text-3);
}

.f-copy { font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.03em; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.reveal {
    opacity: 0; transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.vis { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero { padding: 7rem 1.5rem 4rem; }
    .section { padding: 5rem 1.5rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
}
