/* ============================================================
   NUKO — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rancho&display=swap');

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

/* ── Design Tokens ── */
:root {
    --primary:        #0F172A;
    --secondary:      #475569;
    --accent:         #FBBF24;
    --link:           #B45309;
    --bg-light:       #F8FAFC;
    --bg-dark:        #0F172A;
    --text-primary:   #1a1a1a;
    --text-secondary: #475569;
    --text-light:     #ffffff;
    --yellow:         #FBBF24;
    --navy:           #0F172A;

    --icon-blue:   #3B82F6;
    --icon-yellow: #FBBF24;
    --icon-orange: #F97316;
    --icon-pink:   #EC4899;

    --brand-font:    'Mona Sans', sans-serif;
    --headline-font: 'Poppins', sans-serif;
    --body-font:     'Manrope', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── CMS page reveal ── */
html.cms-loading body { opacity: 0; }
html.cms-ready   body { opacity: 1; transition: opacity 180ms ease; }

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* partners-track is now JS-driven; reduced-motion handled in initMarquee() */
    * {
        transition-duration: 0.01ms !important;
        animation-duration:  0.01ms !important;
    }
}

/* ── Accessibility: focus rings ── */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Utility ── */
.nuko-brand {
    font-family: var(--brand-font) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Material Symbols ── */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 18px !important;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    color: white;
    font-variation-settings: 'wght' 700;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.floating {
    background: transparent;
    box-shadow: none;
}

header.sticky {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 16px 0;
}

header.sticky li a {
    color: var(--text-primary);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--brand-font);
    font-size: 36px;
    font-weight: 900;
    color: black;
    letter-spacing: -1px;
    transition: all 0.4s ease;
}

header.sticky .logo {
    color: var(--primary);
    font-size: 32px;
}

/* ── Nav ── */
nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover { color: var(--link); }
nav a:hover::after { width: 100%; }

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: background 0.3s ease;
    display: block;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 70vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
    overflow: hidden;
    background: #FAF8F4;
}

#topoCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
    font-variant-caps: small-caps;
    font-size: 14px;
    color: var(--link);
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.hero h1 {
    font-family: var(--headline-font);
    font-size: 56px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    width: 60%;
    margin: 20px auto;
}

.hero p {
    font-size: 20px;
    color: var(--secondary);
    opacity: 0.95;
    width: 50%;
    margin: 0 auto 20px;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 18px 48px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.6);
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
section {
    padding: 80px 20px;
}

.section-label {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--headline-font);
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* ── Two-column layout ── */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-block h2 {
    font-family: var(--headline-font);
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.content-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.link-button {
    display: inline-flex;
    align-items: center;
    color: var(--link);
    font-weight: 600;
    text-decoration: none;
    gap: 8px;
}

.link-button:hover { text-decoration: underline; }

.link-button::after {
    content: '→';
    transition: transform 0.3s;
}

.link-button:hover::after {
    transform: translateX(4px);
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-section {
    background: var(--secondary);
    padding: 60px 20px 80px;
    position: relative;
    z-index: 1;
}

.partners-title {
    font-family: var(--headline-font);
    font-size: 36px;
    font-weight: 900;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.4;
}



.partners-grid {
    display: flex;
    overflow: hidden;
    gap: 60px;
    align-items: center;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 60px;
    will-change: transform;
}

.partner-logo {
    background: #3d4f63;
    color: #e2e8f0;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   STATS (core-features section)
   ============================================================ */
.stat-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    background: var(--primary);
    border-radius: 12px;
    padding: 18px 20px;
    align-items: center;
}

.stat-number {
    font-family: var(--headline-font);
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.stat-label-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ── Stats banner (if used) ── */
.stats-section { padding: 40px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--primary);
    padding: 40px;
    border-radius: 16px;
}

.stats-grid .stat-item {
    text-align: center;
}

.stat-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
    background: white;
}

.features-header {
    text-align: center;
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: left;
    position: relative;
    padding: 0 20px;
}

.header-group {
    position: relative;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    z-index: 0;
}

.bg-number {
    position: absolute;
    left: -30px;
    top: 0;
    font-size: 150px;
    font-weight: 900;
    color: #F4F7FA;
    line-height: 1;
    z-index: 1;
}

.feature-icon {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    top: 40px;
    left: -25px;
}

.feature-icon.blue   { background: var(--primary); color: white; }
.feature-icon.yellow { background: var(--accent);   color: white; }
.feature-icon.orange { background: var(--secondary); color: white; }
.feature-icon.pink   { background: var(--link);      color: white; }

.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #1A1A1A;
    position: relative;
    z-index: 2;
}

.feature-card p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-section {
    background: #475569;
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 80px auto;
    border-radius: 20px;
}

.testimonial-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-mark {
    font-family: Georgia, serif;
    font-size: 320px;
    line-height: 0.17;
    color: var(--accent);
    user-select: none;
    margin-bottom: -20px;
}

.testimonial-quote {
    font-family: 'Rancho', cursive;
    font-size: 38px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 32px;
}

.testimonial-attribution {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    background: transparent;
    border-top: 0;
    padding: 0;
}

/* ============================================================
   WHAT WE BELIEVE
   ============================================================ */
.beliefs-section {
    text-align: center;
    background: #F4F7FA;
}

.beliefs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.belief-item {
    font-family: var(--headline-font);
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -1px;
}

.belief-underline {
    position: relative;
    display: inline-block;
}

.belief-underline svg {
    position: absolute;
    bottom: -10px;
    left: -4px;
    width: calc(100% + 8px);
    height: 18px;
    overflow: visible;
    pointer-events: none;
}

.beliefs-body {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 860px;
    margin: 0 auto 28px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    background: var(--primary);
    padding: 60px 20px;
    text-align: center;
}

.contact-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.contact-title {
    font-family: var(--headline-font);
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.contact-email {
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-email a {
    color: var(--accent);
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: white;
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid #E5E7EB;
}

footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   COPY TOAST
   ============================================================ */
.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .stat-number { font-size: 28px; }
    .stats-grid  { gap: 60px; padding: 40px; }
}

@media (max-width: 968px) {
    body { padding-top: 0; }

    header {
        position: relative;
        padding: 12px 0;
    }

    header.sticky {
        position: fixed;
        top: 0;
        z-index: 9999;
    }

    header.sticky li a { color: black; }

    .header-container { position: relative; }
    .menu-toggle { display: flex; margin-left: auto; }
    .sticky .menu-toggle span { background: var(--primary); }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
    }

    nav ul {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        top: 100%;
    }

    nav ul.active { display: flex; }

    .hero {
        padding-top: 140px;
        min-height: 70vh;
        margin-top: -85px;
    }

    .hero h1 { font-size: 42px; width: 80%; margin: 20px auto; }
    .hero p  { font-size: 18px; width: 80%; margin: 0 auto 20px; }

    .two-column { grid-template-columns: 1fr; gap: 40px; }

    .partners-title,
    .content-block h2,
    .features-header h2 { font-size: 28px; }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title { font-size: 28px; }
    .contact-title { font-size: 28px; }
    .belief-item   { font-size: 28px; }

    .stat-stack { flex-direction: row; gap: 24px; }
    .stat-item  { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 768px) {
    .features-grid { padding: 0 60px; }

    .testimonial-quote { font-size: 30px; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 28px; width: 90%; margin: 20px auto; }
    .hero p  { font-size: 16px; width: 90%; margin: 0 auto 20px; }

    .partners-title,
    .content-block h2,
    .features-header h2 { font-size: 22px; }

    .stats-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; padding: 0; }
    .logo { font-size: 24px; }

    .stat-stack { flex-direction: column; gap: 12px; }
    .stat-item  { grid-template-columns: auto 1fr; gap: 20px; }
}

@media (max-width: 500px) {
    .features-grid { padding: 0; }
}

@media (max-width: 320px) {
    .cta-button    { padding: 14px 30px; font-size: 14px; }
    .section-title { font-size: 24px; }
}
