/* Stablecoin Stack Foundation - Brand Identity Implementation */

:root {
    /* Primary Colors */
    --color-navy: #0B1F33;
    --color-white: #FFFFFF;
    --color-graphite: #2B2B2B;
    
    /* Secondary Colors */
    --color-signal-blue: #1F6AE1;
    --color-trust-green: #2E7D32;
    --color-warning-amber: #C58A00;
    --color-light-gray: #F5F7F9;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing */
    --section-padding: 112px;
    --container-max-width: 1240px;
    --side-padding: 40px;
}

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

body {
    font-family: var(--font-primary);
    font-size: 20px; /* Brand manual: min 18px, primary body 20-22px */
    line-height: 1.6;
    color: var(--color-graphite);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.container.narrow {
    max-width: 800px;
}

/* Typography Defaults */
h1, h2, h3, h4 {
    color: var(--color-navy);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 60px; /* Brand manual: 56–64 px */
}

h2 {
    font-size: 42px; /* Brand manual: 40–44 px */
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 30px; /* Brand manual: 28–32 px */
}

p {
    margin-bottom: 1.5rem;
}

/* Section Rhythm */
.section {
    padding: var(--section-padding) 0;
}

.bg-light {
    background-color: var(--color-light-gray);
}

.bg-navy {
    background-color: var(--color-navy);
}

.text-white {
    color: var(--color-white);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4 {
    color: var(--color-white);
}

.bg-navy .hero-subtitle {
    color: rgba(255,255,255,0.85);
}

/* >>>>>>> Top header and CTA button >>>>> */
.top-bar-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-bar {
    background-color: #F8FAFC; /* Extremely light cool gray */
    border-bottom: 1px solid rgba(11, 31, 51, 0.08);/* Navy-tinted border*/ 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    width: 100%;
    align-content: flex-start;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    /* Foundation text on left, links on right */
    align-items: center;
}

.top-bar-tagline {
    font-size: 11px;
    letter-spacing: 1.2px;
    color: #888;
    /* Neutral/Less perceptive */
}

/* 2. Navigation CTA Button Styling */
.nav-list {
    align-items: center;
    /* Vertically aligns text links and the button */
}

.btn-nav-cta {
    height: 44px !important;
    padding: 0 20px !important;
    white-space: nowrap;
    /* Prevents "Get Started" from stacking */
}


/* Ensure the main header content still feels right with the section above it */
.header-content {
    height: 85px;
    /* Keeps the logo/nav area consistent */
}

/* The Skinny Login Button */
.btn-login {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
    padding: 4px 18px;
    /* Narrower top/bottom for the "skinny" look */
    border: 1px solid #d1d1d1;
    /* Light neutral border */
    border-radius: 50px;
    /* Pill shape / Rounded corners */
    transition: all 0.2s ease;
    background: transparent;
}
.btn-login:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}
/*<<<<<<< Top header and CTA button <<<<<<<<</

/* Header & Navigation */
.header {
    height: auto; /* Allow header to grow to accommodate the top section */
    display: flex; /*<--- Reis*/
    flex-direction: column; /*<--- Reis*/
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 120px;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    width: 260px;
    height: auto; 
    max-width: 100%;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--color-navy);
}

.weight-light {
    font-weight: 300;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-graphite);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-signal-blue);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-navy);
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px; /* Brand manual: 56–64 px */
    padding: 0 32px;
    border-radius: 8px; /* Brand manual: 8 px */
    font-size: 19px; /* Brand manual: 18–20 px */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-signal-blue);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #1756ba;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    padding: 140px 0;
    background-color: var(--color-white);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--color-graphite);
    max-width: 800px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Grids & Cards */
.grid {
    display: grid;
    gap: 40px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

.card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Prototype Cards */
.prototype-section {
    background-color: #f0f4f8;
}

.prototype-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.prototype-card {
    background: var(--color-white);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 100%;
}

.prototype-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(11, 31, 51, 0.15);
    border-color: var(--color-signal-blue);
}

.prototype-icon-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    color: rgba(31, 106, 225, 0.03);
    pointer-events: none;
    transform: rotate(-15deg);
}

.prototype-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-signal-blue);
    margin-bottom: 16px;
    display: block;
}

.prototype-card h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.prototype-card p {
    font-size: 20px;
    color: var(--color-graphite);
    margin-bottom: 32px;
}

.prototype-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-github {
    background: #24292e;
    color: white !important;
}

.btn-github:hover {
    background: #000;
}

/* Stack Items */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-top: 60px;
}

.stack-item {
    border-top: 4px solid var(--color-signal-blue);
    padding-top: 24px;
}

.stack-icon {
    font-size: 32px;
    color: var(--color-signal-blue);
    margin-bottom: 20px;
}

/* Audience Boxes */
.audience-box {
    padding: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

/* Manifesto Content */
.manifesto-content {
    list-style: none;
}

.manifesto-content li {
    margin-bottom: 1.5rem;
}

.cta-box {
    margin-top: 4rem;
    padding: 32px;
    border-left: 4px solid var(--color-signal-blue);
    background: var(--color-light-gray);
    font-style: italic;
}

/* Lists */
.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-list li::before {
    content: "✓";
    color: var(--color-trust-green);
    font-weight: bold;
}

.safeguard-list li::before {
    content: "!";
    color: var(--color-warning-amber);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 32px;
}

.language-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
}

.language-btn:hover{
    background-color: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    min-width: 160px;
    z-index: 1001;
}

.language-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    color: var(--color-graphite);
    font-size: 16px;
}

.language-option:hover {
    background: #f5f5f5;
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer h4 {
    color: var(--color-white);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
}

.footer ul a:hover {
    color: var(--color-white);
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    margin-top: 24px;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: rgba(255,255,255,0.5);
}

/* Utilities */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    background: var(--color-signal-blue);
    color: white;
    padding: 15px;
    z-index: 10001;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    .hero-subtitle { font-size: 20px; }
    
    .section { padding: 80px 0; }
    
    .grid-3, .grid-2, .grid-2-1, .prototype-grid { 
        grid-template-columns: 1fr; 
    }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }

    /* Burger Menu Styles */
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: 0;
        background: white;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav.active {
        max-height: 500px;
        padding: 40px 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 20px 0; /*<--- Reis */
    }

    .nav-link {
        font-size: 22px;
        display: block;
        padding: 10px;
    }

    .prototype-card {
        padding: 40px 32px;
    }
    
    .prototype-card h3 {
        font-size: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
      
    .btn-nav-cta {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    :root {
        --side-padding: 24px;
        --section-padding: 64px;
    }

    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    
    .prototype-card {
        padding: 32px 24px;
    }
    
    .prototype-card h3 {
        font-size: 24px;
    }

    .prototype-actions {
        flex-direction: column;
    }

    .container.narrow {
        padding: 0 var(--side-padding);
    }
}

/* Impact Metrics */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    margin-top: 48px;
}

.impact-stat {
    padding: 32px;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 600;
    color: var(--color-signal-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: var(--color-graphite);
    font-weight: 500;
}

/* Supporters Grid */
.supporters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 32px;
    align-items: center;
    margin-top: 48px;
}

.supporter-logo {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.supporter-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Forms */
.contact-form {
    background: var(--color-white);
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-navy);
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 18px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-signal-blue);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Community Cards */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.community-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
}

.community-icon {
    font-size: 40px;
    color: var(--color-signal-blue);
    margin-bottom: 24px;
}

.btn-discord {
    background-color: #5865F2;
    color: white !important;
}

.btn-discord:hover {
    background-color: #4752c4;
}

/* Newsletter form specific */
.newsletter-form .form-control {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}
