/* ============================================
   TRIPPPLE — Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
    --ink: #2B120A;
    --paper: #F5F0E6;
    --eggshell: #F0EAD6;
    --earth: #DBC1AC;
    --earth-dark: #C5AA92;
    --accent: #FF5E1A;

    --shadow-default: 4px 4px 0px 0px var(--ink);
    --shadow-hover: 6px 6px 0px 0px var(--accent);
    --shadow-large: 10px 10px 0px 0px var(--accent);
    --shadow-soft: 0 8px 32px rgba(43, 18, 10, 0.08);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 2rem;
    --radius-full: 9999px;

    --border-thick: 4px solid var(--ink);
    --border-medium: 3px solid var(--ink);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--eggshell);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Roboto Flex', sans-serif;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 10px; }

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2.5rem;
    background: rgba(245, 240, 230, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(43, 18, 10, 0.08);
    transition: all 0.4s ease;
}

.nav.scrolled {
    padding: 0.65rem 2.5rem;
    background: rgba(245, 240, 230, 0.95);
    border-bottom-color: rgba(43, 18, 10, 0.15);
    box-shadow: 0 4px 24px rgba(43, 18, 10, 0.06);
}

.nav-logo {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--ink);
    font-variation-settings: "wdth" 130, "wght" 900, "slnt" 0, "GRAD" 50;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.7;
}

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

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

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

/* Active nav link */
.nav-links a.nav-active:not(.btn) {
    color: var(--accent);
}

.nav-links a.nav-active:not(.btn)::after {
    width: 100%;
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    background: var(--ink);
    color: var(--paper) !important;
    border-radius: var(--radius-full);
    border: 2px solid var(--ink);
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white !important;
    transform: translateY(-1px);
}

.btn-nav::after {
    display: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 7rem 2rem 3rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--eggshell);
    z-index: 0;
}

.hero-bg svg {
    width: 100%;
    height: 100%;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--eggshell));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Badge */
.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: var(--radius-full);
    box-shadow: 2px 2px 0px 0px var(--ink);
}

/* Title */
.hero-title {
    font-family: 'Roboto Flex', sans-serif;
    font-size: clamp(3rem, 10vw, 6.5rem);
    color: var(--ink);
    line-height: 0.95;
    letter-spacing: -0.04em;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.25rem 0;
}

.hero-title .char {
    display: inline-block;
    white-space: pre;
    font-variation-settings: "wdth" 100, "wght" 400, "slnt" 0, "GRAD" 0;
    transition: font-variation-settings 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: font-variation-settings;
}

.hero-tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--ink);
    opacity: 0.55;
    max-width: 480px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.hero-actions .btn-primary {
    box-shadow: none;
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: none;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-hint-line {
    width: 1.5px;
    height: 40px;
    background: var(--ink);
    opacity: 0.2;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.1; transform: scaleY(0.6); }
    50% { opacity: 0.3; transform: scaleY(1); }
}

/* Hero reveal animations */
.reveal-hero {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 0.8s ease forwards;
}

.hero-badge.reveal-hero { animation-delay: 0.15s; }
.hero-title { animation: hero-fade-in 0.8s ease 0.3s forwards; opacity: 0; transform: translateY(20px); }
.hero-tagline.reveal-hero { animation-delay: 0.5s; }
.hero-actions.reveal-hero { animation-delay: 0.65s; }
.scroll-hint.reveal-hero { animation-delay: 1.2s; }

@keyframes hero-fade-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Marquee Strip
   ============================================ */
.marquee-strip {
    background: var(--ink);
    color: var(--paper);
    padding: 0.85rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.marquee-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
    flex-shrink: 0;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border: var(--border-thick);
    box-shadow: var(--shadow-default);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 2px 2px 0px 0px var(--ink);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: var(--border-thick);
    box-shadow: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-default);
    background: var(--paper);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.97);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 7rem 2rem;
    position: relative;
}

.section-alt {
    background: var(--paper);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
}

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

.section-title {
    font-family: 'Roboto Flex', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-variation-settings: "wdth" 105, "wght" 700, "slnt" 0, "GRAD" 30;
    letter-spacing: -0.025em;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--ink);
    opacity: 0.5;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    line-height: 1.7;
}

/* ============================================
   About (used on about.html)
   ============================================ */
.about-content {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink);
    opacity: 0.7;
}

/* ============================================
   Problem Section & Floating Logos
   ============================================ */
.problem-section {
    position: relative;
    overflow: hidden;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.problem-section .section-inner {
    position: relative;
    z-index: 2;
}

.floating-logos {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-logo {
    position: absolute;
    opacity: 0.07;
    will-change: transform;
    pointer-events: none;
    top: 0;
    left: 0;
}

.floating-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* ============================================
   Journey (minimalist)
   ============================================ */
.journey {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.journey-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}

.journey-label {
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    font-variation-settings: "wdth" 105, "wght" 700;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.journey-tools {
    font-size: 0.72rem;
    color: var(--ink);
    opacity: 0.35;
    line-height: 1.4;
}

.journey-divider {
    width: 40px;
    height: 1px;
    background: var(--earth);
    flex-shrink: 0;
}

.journey-break {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    flex-shrink: 0;
}

.journey-break-line {
    display: block;
    width: 3px;
    height: 48px;
    border-radius: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--accent) 0px,
        var(--accent) 6px,
        transparent 6px,
        transparent 10px
    );
}

.journey-step-faded {
    opacity: 0.3;
}



/* ============================================
   Features Section (animated gradient bg)
   ============================================ */
.features-section {
    position: relative;
    overflow: hidden;
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    background: var(--earth);
}

.features-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.features-section-bg svg {
    width: 100%;
    height: 100%;
}

.features-section-fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

.features-section-fade-top {
    top: 0;
    background: linear-gradient(to bottom, var(--earth), transparent);
}

.features-section-fade-bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--earth), transparent);
}

/* ============================================
   Feature Cards
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--paper);
    border: var(--border-thick);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-default);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-number {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--earth-dark);
    margin-bottom: 1.25rem;
}

.feature-icon-wrap {
    margin-bottom: 1.25rem;
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

.feature-card h3 {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    font-variation-settings: "wdth" 105, "wght" 700;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--ink);
    opacity: 0.55;
    line-height: 1.7;
}

/* ============================================
   Audience (Who We Build For)
   ============================================ */
.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.audience-col {
    background: var(--eggshell);
    border: var(--border-thick);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-default);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audience-col:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.audience-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    line-height: 1;
}

.audience-title {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    font-variation-settings: "wdth" 105, "wght" 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
    white-space: nowrap;
}

.audience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.audience-list li {
    font-size: 1rem;
    color: var(--ink);
    opacity: 0.55;
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
}

.audience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.audience-tagline {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    font-variation-settings: "wdth" 105, "wght" 700;
    color: var(--accent);
}

/* ============================================
   CTA / Waitlist
   ============================================ */
.cta-section {
    background: var(--ink);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
}

.cta-section .section-label {
    color: var(--accent) !important;
}

.cta-section .section-title {
    color: var(--paper);
}

.cta-section .section-subtitle {
    color: var(--paper);
    opacity: 0.5;
}

.cta-section .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.cta-section .btn-primary:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.cta-section .waitlist-input {
    border-color: rgba(245, 240, 230, 0.3);
}

.cta-section .waitlist-input:focus {
    border-color: var(--paper);
    box-shadow: 4px 4px 0px 0px var(--accent);
}

.cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta-content .section-title {
    margin-bottom: 0;
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 440px;
    margin-top: 0.5rem;
}

.waitlist-input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    border: var(--border-thick);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--ink);
    outline: none;
    transition: all 0.25s ease;
}

.waitlist-input::placeholder {
    color: var(--earth-dark);
}

.waitlist-input:focus {
    box-shadow: var(--shadow-default);
    transform: translateY(-1px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 3.5rem 2rem;
    border-top: 2px solid rgba(43, 18, 10, 0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--ink);
    font-variation-settings: "wdth" 130, "wght" 900, "GRAD" 50;
    letter-spacing: -0.02em;
}

.footer-est {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.25;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    opacity: 0.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--ink);
    opacity: 0.25;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delays applied via data-delay */
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ============================================
   Mobile Nav Overlay
   ============================================ */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    font-variation-settings: "wdth" 110, "wght" 700;
    transition: color 0.2s ease;
}

.nav-mobile a:hover {
    color: var(--accent);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .journey-step {
        padding: 1rem 1.25rem;
    }

    .journey-divider {
        width: 24px;
    }

    .journey-break {
        padding: 0 0.75rem;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form .btn {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 1.25rem;
    }

    .hero {
        padding: 5.5rem 1.25rem 2.5rem;
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    .scroll-hint {
        display: none;
    }
}
