/* ═══════════════════════════════════════
   Knimbly — Deep Green & Brass
   Forest + gold. Precision. Trust.
   ═══════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:        #070d09;
    --surface:   #101c14;
    --deep:      #1c3024;
    --hero:      #a8884a;
    --hero-hover:#ba9a58;
    --mark-green:#3d6842;
    --cream:     #d4cfc0;
    --light:     #e6e3d9;
    --faint:     #92b49a;
    --border:    rgba(168, 136, 74, 0.06);
    --serif:     'Libre Baskerville', Georgia, serif;
    --sans:      'Archivo', system-ui, sans-serif;
    --max-w:     1140px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }

::selection {
    background: rgba(168, 136, 74, 0.35);
    color: var(--light);
}

/* ── Grain ── */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ── Ambient glows ── */
.glow {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.glow--hero {
    width: 55vw;
    height: 55vw;
    max-width: 700px;
    max-height: 700px;
    top: -12%;
    right: -10%;
    background: radial-gradient(circle, rgba(40, 90, 55, 0.10) 0%, rgba(40, 90, 55, 0.03) 45%, transparent 65%);
    animation: glowDrift 16s ease-in-out infinite;
}

@keyframes glowDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { transform: translate(20px, -15px) scale(1.06); opacity: 0.7; }
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.1rem 3rem;
    background: rgba(7, 13, 9, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-text {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--cream);
    letter-spacing: -0.01em;
}

/* ── Hero ── */
.hero--full {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 6rem;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--faint);
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(146, 180, 154, 0.3);
    border-radius: 100px;
    background: rgba(146, 180, 154, 0.06);
    margin-bottom: 2rem;
}

.hero-h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 1.8rem;
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1.8;
    margin-bottom: 2.8rem;
    max-width: 540px;
}

/* ── Hero actions ── */
.hero-actions {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    max-width: 560px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(212, 207, 192, 0.35);
    border-radius: 5px;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary:hover {
    background: rgba(212, 207, 192, 0.08);
    border-color: var(--cream);
}

.signup-inline {
    display: flex;
    align-items: center;
    flex: 1;
    border: 1px solid rgba(212, 207, 192, 0.2);
    border-radius: 5px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.signup-inline:focus-within {
    border-color: rgba(168, 136, 74, 0.3);
    box-shadow: 0 0 0 3px rgba(168, 136, 74, 0.06);
}

.signup-inline .signup-input {
    flex: 1;
    padding: 0.95rem 1.1rem;
    background: transparent;
    border: none;
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 300;
    outline: none;
    min-width: 0;
    width: 100%;
}

.signup-inline .signup-input::placeholder { color: var(--cream); opacity: 0.7; }

.signup-send {
    padding: 0.95rem 1rem;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--hero);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.signup-send:hover { color: var(--cream); background: rgba(168, 136, 74, 0.06); }

/* ── Footer ── */
.footer--fixed {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 1.8rem 3rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--faint);
    opacity: 0.6;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--hero);
    color: var(--light);
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10001;
    box-shadow: 0 4px 16px rgba(168, 136, 74, 0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══ Animations ═══ */

.anim {
    opacity: 0;
    transform: translateY(22px);
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--d) * 0.14s + 0.4s);
}

@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ Responsive ═══ */

@media (max-width: 768px) {
    .nav { padding: 0.9rem 1.5rem; }

    .hero--full {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
    .hero-sub { font-size: 1rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary { justify-content: center; }

    .signup-inline .signup-input { min-width: 0; }

    .footer-inner {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }
    .footer--fixed { padding: 1.5rem 1.5rem; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1.1rem; }
    .hero-h1 { font-size: 2rem; }
    .hero-sub { font-size: 0.95rem; }
}
