/* Modern CSS Reset & Variables */
:root {
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --color-bg: #ffffff;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;

    /* Grahamish Brand Colors - Premium & Financial */
    --color-primary: #111827;
    /* Dark charcoal */
    --color-accent: #10b981;
    /* Emerald */
    --color-accent-subtle: rgba(16, 185, 129, 0.1);

    --color-bg-secondary: #f9fafb;
    --color-border: #e5e7eb;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    /* Increased line height for better readability with larger font */
    -webkit-font-smoothing: antialiased;
    padding-top: 70px;
    font-size: 1.125rem;
    /* 18px */
}

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

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* =========================================
   Navigation Bar
   ========================================= */
.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    /* Constrained height */
    width: auto;
    display: block;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-search-box {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    border-radius: 9999px;
    position: relative;
    transition: all 0.2s;
}

.nav-search-box:hover,
.nav-search-box:focus-within {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-accent);
}

.nav-right {
    display: flex;
    align-items: center;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 0.5rem;
}

.menu-btn:hover {
    color: var(--color-primary);
}

.mobile-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

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

/* =========================================
   Section 1: Hero
   ========================================= */
.hero-section {
    position: relative;
    padding: 6rem 0 6rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--color-primary);
    position: relative;
    z-index: 10;
}

.hero-subheadline {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 10;
}

.search-box {
    position: relative;
    /* Context for absolute dropdown */
}

/* Ensure consistent search box styling */
.hero-search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    color: var(--color-text);
    background: transparent;
    font-family: var(--font-sans);
}

.search-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

/* Abstract Background */
.hero-background-abstract {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(17, 24, 39, 0.03) 0%, transparent 25%);
    pointer-events: none;
}

/* =========================================
   Search Dropdown
   ========================================= */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    text-align: left;
    /* Reset text alignment from hero */
}

.search-result-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--color-bg-secondary);
}

.result-symbol {
    font-weight: 700;
    color: var(--color-primary);
}

.result-name {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Detail View
   ========================================= */
.detail-header-section {
    padding: 6rem 0 3rem;
    background: white;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.company-symbol {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.company-desc {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
}

.detail-metrics-section {
    padding: 6rem 0;
    background: var(--color-bg-secondary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    overflow-wrap: break-word;
}

/* =========================================
   Utilities
   ========================================= */
.hidden {
    display: none !important;
}

/* =========================================
   Other Sections (Preserved)
   ========================================= */
.intro-section {
    padding: 6rem 0;
    background-color: white;
    text-align: center;
}

.intro-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
    font-weight: 300;
}

.brand-name {
    font-weight: 700;
    color: var(--color-primary);
}

.selection-section {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.selection-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-attribution {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.proof-section {
    padding: 6rem 0;
    background-color: white;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.proof-card {
    background: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.proof-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.proof-author cite {
    display: block;
    font-weight: 700;
    font-style: normal;
    color: var(--color-primary);
}

.author-title {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.evidence-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.evidence-headline {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.evidence-subheadline {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.product-section {
    padding: 6rem 0;
    background-color: white;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-visual {
    background: var(--color-bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    position: relative;
}

.mockup-window {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.mockup-header {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.mockup-content {
    padding: 2rem;
}

.mock-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.mock-label {
    font-weight: 600;
    color: var(--color-text-muted);
}

.mock-value {
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

.score-high {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.tag-good {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-family: var(--font-sans);
}

.mock-metric-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-headline {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.1rem;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--color-accent);
}

.cta-section {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
}

.cta-headline {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-subheadline {
    color: #9ca3af;
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.cta-btn {
    background: var(--color-accent);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    background: #059669;
}

.cta-secondary {
    margin-top: 1.5rem;
}

.search-trigger {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px dotted #9ca3af;
}

.search-trigger:hover {
    color: white;
}

/* Auth Buttons */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #374151;
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    width: 100%;
    margin-top: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   Contact Form 
   ========================================= */
.app-footer {
    padding: 6rem 0;
    background-color: #0f172a;
    background-color: #0f172a;
    /* Slate 900 */
    border-top: 1px solid #1f2937;
    color: #94a3b8;
    margin-top: auto;
    /* Push to bottom if flex container */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #64748b;
}

.copyright {
    font-size: 0.8rem;
    color: #475569;
}

.footer-links-group {
    min-width: 150px;
}

.footer-heading {
    color: #f8fafc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .hidden-mobile {
        display: none !important;
    }
}

/* =========================================
   Contact Form
   ========================================= */
.contact-section {
    padding-bottom: 6rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
    color: var(--color-accent);
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.btn-google:hover {
    background: #f9fafb;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

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

    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-visual {
        order: -1;
    }

    .cta-headline {
        font-size: 2rem;
    }

    .metric-card {
        padding: 1rem;
    }

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