/* TrailGoat — product home. Dark "trail at dusk" theme, shared palette + Sora/Inter. */
:root {
    --bg-0: #07120f;          /* deepest pine */
    --bg-1: #0a1a1c;          /* forest navy */
    --ink: #eaf4ee;           /* near-white text */
    --muted: #8ea7a0;         /* muted sage */
    --line: rgba(255, 255, 255, 0.09);
    --glass: rgba(255, 255, 255, 0.045);
    --glass-2: rgba(255, 255, 255, 0.07);

    --orange: #ff7a1a;
    --moss: #9ae600;
    --teal: #19c3b1;
    --violet: #8b6cff;
    --coral: #ff5d73;
    --gold: #ffd23f;

    --radius: 22px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-0);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- Animated backdrop (shared with the tools) ---- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
    radial-gradient(1200px 600px at 70% -10%, rgba(25, 195, 177, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(255, 122, 26, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1)); }
.aurora { position: absolute; inset: -40%; opacity: 0.7;
    background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(154,230,0,0.06), transparent 40%);
    animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ridge { position: absolute; bottom: 0; left: 0; width: 100%; height: 42vh; }
.ridge path { fill: rgba(255,255,255,0.025); }
.ridge .ridge-mid { fill: rgba(255,255,255,0.035); }
.ridge .ridge-front { fill: rgba(255,255,255,0.05); }

/* ---- Top bar ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px;
    max-width: 1140px; margin: 0 auto; padding: 22px 24px; }
.wordmark { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.45rem;
    letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.grad { background: linear-gradient(100deg, var(--orange), var(--gold) 45%, var(--moss));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem;
    padding: 8px 14px; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease; }
.nav a:hover { color: var(--ink); background: var(--glass); }
.nav a.cta { color: #1a1205; background: var(--orange); }
.nav a.cta:hover { background: #ff8f3d; }
.nav .beta-tag { font-size: 0.62rem; font-weight: 700; color: var(--gold); margin-left: 4px;
    letter-spacing: 0.05em; vertical-align: super; }

/* ---- Layout ---- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px 90px; }
section { position: relative; }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
    padding: 40px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange);
    font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.76rem;
    border: 1px solid rgba(255,122,26,0.4); border-radius: 999px; padding: 6px 13px;
    background: rgba(255,122,26,0.07); margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss);
    box-shadow: 0 0 12px var(--moss); animation: blip 2.4s infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 .wiggle { display: inline-block; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 34rem; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: 'Sora', sans-serif;
    font-weight: 700; font-size: 0.98rem; text-decoration: none; padding: 13px 22px;
    border-radius: 999px; transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, var(--orange), var(--gold)); color: #1a1205;
    box-shadow: 0 12px 30px rgba(255,122,26,0.25); }
.btn-primary:hover { box-shadow: 0 16px 38px rgba(255,122,26,0.35); }
.btn-ghost { color: var(--ink); background: var(--glass); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--moss); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero goat accent */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; }
.goat-stage { position: relative; display: inline-block; }
.goat { position: relative; z-index: 1; width: min(82%, 360px); height: auto; display: block;
    /* depth shadow + a static glow (fallback when the LED cycle isn't animating) */
    filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 8px rgba(255,122,26,0.42));
    animation: bob 3.2s ease-in-out infinite, goat-led 22s linear infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
/* LED-style edge glow that slowly fades through the brand palette around his
   silhouette. drop-shadow follows the PNG's alpha, so it hugs his shape, not a box. */
@keyframes goat-led {
    0%,100% { filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 4px rgba(255,122,26,0.46)) drop-shadow(0 0 15px rgba(255,122,26,0.38)); }
    16.6%   { filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 4px rgba(255,210,63,0.46)) drop-shadow(0 0 15px rgba(255,210,63,0.38)); }
    33.3%   { filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 4px rgba(154,230,0,0.46)) drop-shadow(0 0 15px rgba(154,230,0,0.38)); }
    50%     { filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 4px rgba(25,195,177,0.46)) drop-shadow(0 0 15px rgba(25,195,177,0.38)); }
    66.6%   { filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 4px rgba(139,108,255,0.46)) drop-shadow(0 0 15px rgba(139,108,255,0.38)); }
    83.3%   { filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5)) drop-shadow(0 0 4px rgba(255,93,115,0.46)) drop-shadow(0 0 15px rgba(255,93,115,0.38)); }
}
.bib { position: absolute; top: 8%; right: -6%; transform: rotate(8deg);
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em;
    color: #1a1205; background: var(--gold); padding: 7px 12px; border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.bib small { display: block; font-size: 0.6rem; letter-spacing: 0.18em; color: rgba(26,18,5,0.7); }
.dust { position: absolute; top: 36%; right: 11%; font-size: 2rem; z-index: 0;
    animation: dust 1.6s ease-in-out infinite; }
/* He runs left, so the kicked-up wind/dust trails off behind him to the right. */
@keyframes dust { 0% { opacity: 0; transform: translateX(-8px) scale(0.8); } 40% { opacity: 0.85; }
    100% { opacity: 0; transform: translateX(30px) scale(1.15); } }

/* ---- Section heading ---- */
.section-head { text-align: center; max-width: 38rem; margin: 0 auto 36px; }
.kicker { color: var(--teal); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    font-size: 0.74rem; margin-bottom: 12px; }
.section-head h2 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---- Tool cards ---- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool { position: relative; display: flex; flex-direction: column; text-decoration: none;
    color: inherit; background: var(--glass); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px; overflow: hidden;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.25s ease; }
.tool::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--accent, var(--orange)); opacity: 0.9; }
.tool:hover { transform: translateY(-5px); border-color: var(--accent, var(--orange));
    box-shadow: 0 22px 50px rgba(0,0,0,0.4); }
.tool-emoji { font-size: 1.9rem; width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); margin-bottom: 16px; }
.tool h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.25rem;
    display: flex; align-items: center; gap: 8px; }
.tool .pill { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--gold); border: 1px solid rgba(255,210,63,0.45); border-radius: 999px;
    padding: 2px 7px; background: rgba(255,210,63,0.08); }
.tool p { color: var(--muted); font-size: 0.96rem; margin-top: 10px; flex: 1; }
.tool .go { margin-top: 18px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.92rem;
    color: var(--accent, var(--orange)); display: inline-flex; align-items: center; gap: 7px; }
.tool:hover .go .arrow { transform: translateX(4px); }
.tool .go .arrow { transition: transform 0.18s ease; }

/* ---- "How it flows" trail strip ---- */
.flow { margin-top: 90px; }
.flow-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative;
    /* fall through to .flow-3 for the 3-step tool journey */
    margin-top: 14px; }
.flow-3 { grid-template-columns: repeat(3, 1fr); }
.flow-track::before { content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 0;
    border-top: 2px dashed var(--line); }
.step { text-align: center; position: relative; padding: 0 8px; }
.step .num { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 800;
    font-size: 1.2rem; color: #07120f; background: var(--step, var(--orange));
    box-shadow: 0 0 0 6px var(--bg-0); position: relative; }
.step h4 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; }
.step p { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }

/* ---- Final CTA band ---- */
.cta-band { margin-top: 90px; text-align: center; background: var(--glass);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 52px 28px;
    background-image: radial-gradient(600px 200px at 50% -20%, rgba(255,122,26,0.12), transparent 70%); }
.cta-band h2 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: -0.02em; }
.cta-band p { color: var(--muted); margin: 12px auto 26px; max-width: 32rem; }

/* ---- Footer ---- */
.foot { text-align: center; color: var(--muted); font-size: 0.86rem; padding: 40px 24px 20px;
    border-top: 1px solid var(--line); max-width: 1140px; margin: 70px auto 0; }
.foot a { color: var(--orange); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
    .hero-art { order: -1; }
    .goat { width: min(72%, 320px); }
    .eyebrow, .hero-cta { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .tools { grid-template-columns: repeat(2, 1fr); }
    .flow-track { grid-template-columns: repeat(2, 1fr); gap: 28px 10px; }
    .flow-3 { grid-template-columns: 1fr; }
    .flow-track::before { display: none; }
}
@media (max-width: 560px) {
    .nav .nav-link { display: none; }
    .nav a.cta { display: inline-flex; }
    .tools { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .goat, .aurora, .dust, .eyebrow .dot { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
}
