/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #fbfbfa; /* Soft warm sand/linen background */
    --bg-secondary: #f4f2ec;
    --text-primary: #1c1917; /* Sophisticated slate/charcoal */
    --text-secondary: #57534e; /* Warm grey/stone */
    --text-muted: #8c857f;
    
    /* Elegant Editorial Palette */
    --clr-forest: #224229; /* Deep prestige forest green */
    --clr-forest-light: #2e5437;
    --clr-forest-trans: rgba(34, 66, 41, 0.05);
    --clr-gold: #b38f4d; /* Muted gold/brass */
    --clr-gold-light: #faf8f5;
    --clr-emerald: #2d6a4f;
    --clr-coral: #ba3c4f;
    
    /* Borders & Box Shadows */
    --border-light: rgba(28, 25, 23, 0.08);
    --border-focus: rgba(34, 66, 41, 0.4);
    --card-shadow: 0 10px 30px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(28, 25, 23, 0.02);
    --button-shadow: 0 4px 14px rgba(34, 66, 41, 0.18);
    
    /* Layout & Dimensions */
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px; /* Offset for sticky header */
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
}

/* Elegant Soft Light Leak effect */
.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    transform: translate3d(0, 0, 0); /* Force GPU rasterization */
}

.bg-glow-1 {
    background: radial-gradient(circle, #e9e3d5 0%, rgba(251, 251, 250, 0) 70%);
    top: -20%;
    left: -20%;
}

.bg-glow-2 {
    background: radial-gradient(circle, #ded6c5 0%, rgba(251, 251, 250, 0) 70%);
    bottom: -20%;
    right: -20%;
}

/* ==========================================================================
   APPLICATION CONTAINER & LAYOUT
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
    background: #fbfbfa; /* Matches bg-primary to avoid expensive blur composites */
    transform: translate3d(0, 0, 0); /* Hardware accelerate scroll composite */
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-forest);
    text-decoration: none;
}

.logo i {
    font-size: 1.35rem;
    color: var(--clr-gold);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--clr-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--clr-forest);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--clr-forest);
    font-weight: 600;
}

/* Header Right Side containing Status and Toggle */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--clr-forest);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.mobile-menu-btn:hover {
    background: var(--clr-gold-light);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

.status-badge.online {
    border-color: rgba(45, 106, 79, 0.2);
    background: rgba(45, 106, 79, 0.02);
}

.status-badge.online .status-dot {
    background-color: var(--clr-emerald);
}

.status-badge.offline {
    border-color: rgba(186, 60, 79, 0.2);
    background: rgba(186, 60, 79, 0.02);
}

.status-badge.offline .status-dot {
    background-color: var(--clr-coral);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

/* Left Panel: Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.trust-badge-mini {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--clr-forest-trans);
    border: 1px solid rgba(34, 66, 41, 0.12);
    color: var(--clr-forest);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 3.1rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--clr-forest);
    letter-spacing: -0.5px;
}

.text-gradient {
    color: var(--clr-gold);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 490px;
}

/* Stats Mini Grid */
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-mini-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.stat-num {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-forest);
}

.stat-lbl {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.1rem;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(179, 143, 77, 0.06);
    border: 1px solid rgba(179, 143, 77, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--clr-gold);
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-forest);
}

.feature-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Right Panel: White Premium Card Form */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
}

.card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--clr-forest);
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--bg-secondary);
    padding-bottom: 0.75rem;
}

/* ==========================================================================
   INPUTS, TOOLTIPS, AND CONTROLS
   ========================================================================== */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-forest);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.icon-label {
    font-size: 0.8rem;
    color: var(--clr-gold);
}

/* Tooltip Styling */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.tooltip-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.tooltip-icon:hover {
    color: var(--clr-forest);
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e201e;
    color: #ffffff;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e201e transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Autocomplete search container */
.autocomplete-container {
    position: relative;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    background: #fbfbfa;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

input[type="text"] {
    padding-right: 2.5rem;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: var(--clr-forest);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(34, 66, 41, 0.03);
}

/* Unit Badge inside Number Input */
.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.unit-badge {
    position: absolute;
    right: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    pointer-events: none;
}

/* Autocomplete Clear Button */
.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 0.2rem;
}

.clear-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

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

/* Autocomplete Dropdown List */
.dropdown-list {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-top: 0.3rem;
    box-shadow: 0 10px 25px rgba(30, 32, 30, 0.06);
    z-index: 100;
    display: none;
}

.dropdown-list.active {
    display: block;
}

.dropdown-item {
    padding: 0.7rem 1.1rem;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border-bottom: 1px solid #fcfcfb;
}

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

.dropdown-item:hover, 
.dropdown-item.highlighted {
    background: var(--clr-gold-light);
    color: var(--clr-forest);
    padding-left: 1.4rem;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   SEGMENTED CONTROLS
   ========================================================================== */
.segmented-control {
    display: flex;
    background: #fbfbfa;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.2rem;
    gap: 0.25rem;
    width: 100%;
}

.segment-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.55rem 0;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.segment-btn:hover {
    color: var(--clr-forest);
    background: rgba(34, 66, 41, 0.03);
}

.segment-btn.active {
    background: var(--clr-forest);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(34, 66, 41, 0.12);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-predict {
    width: 100%;
    background: var(--clr-forest);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.95rem;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: var(--button-shadow);
}

.btn-predict:hover {
    background: var(--clr-forest-light);
    transform: translateY(-1px);
}

.btn-predict:active {
    transform: translateY(1px);
}

/* Loader styling */
.btn-loader {
    display: none;
    font-size: 1.1rem;
}

.btn-predict.loading {
    pointer-events: none;
    background: var(--clr-forest-light);
}

.btn-predict.loading .btn-text {
    opacity: 0;
}

.btn-predict.loading .btn-loader {
    display: block;
    position: absolute;
}

/* ==========================================================================
   RESULT CARD
   ========================================================================== */
.result-card {
    margin-top: 1.75rem;
    background: var(--clr-gold-light);
    border: 1px dashed rgba(179, 143, 77, 0.4);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    animation: revealCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.result-card.hidden {
    display: none;
}

@keyframes revealCard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.result-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--clr-forest);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    background: rgba(34, 66, 41, 0.06);
    border: 1px solid rgba(34, 66, 41, 0.1);
}

.result-tag.mock {
    background: rgba(30, 32, 30, 0.04);
    border-color: rgba(30, 32, 30, 0.08);
    color: var(--text-secondary);
}

.close-card-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.1rem;
}

.close-card-btn:hover {
    color: var(--text-primary);
}

.price-value {
    font-family: 'Lora', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-forest);
}

.price-breakdown {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.price-convert {
    font-size: 0.85rem;
    color: var(--clr-emerald);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.price-convert::before {
    content: '\f155';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* ==========================================================================
   SECTIONS: INSIGHTS & FAQ
   ========================================================================== */
.section-container {
    padding: 5rem 0;
    border-top: 1px solid var(--border-light);
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--clr-forest);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
}

.insight-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--card-shadow);
}

.insight-card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-forest);
    margin-bottom: 1.5rem;
}

.chart-container {
    width: 100%;
    margin-bottom: 1rem;
}

.svg-chart {
    width: 100%;
    height: auto;
}

.chart-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--bg-secondary);
    padding-top: 1rem;
}

.trending-up-icon {
    color: var(--clr-emerald);
    font-size: 1rem;
}

/* Data Table styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.9rem 1rem;
    text-align: left;
}

.data-table th {
    font-weight: 600;
    color: var(--clr-forest);
    border-bottom: 2px solid var(--bg-secondary);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.data-table td {
    border-bottom: 1px solid rgba(28, 25, 23, 0.04);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.growth-positive {
    color: var(--clr-emerald);
    font-weight: 600;
}

/* ==========================================================================
   FAQ / ACCORDIONS
   ========================================================================== */
.faq-container {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.faq-trigger {
    width: 100%;
    border: none;
    background: transparent;
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--clr-forest);
    text-align: left;
}

.faq-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-content {
    padding-bottom: 1.5rem;
}

/* ==========================================================================
   NEWSLETTER SEGMENT
   ========================================================================== */
.newsletter-section {
    padding: 4rem 0 2rem 0;
}

.newsletter-card {
    background: var(--clr-forest);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(34, 66, 41, 0.15);
}

.newsletter-card h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.newsletter-card p {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 500px;
}

.newsletter-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.4);
}

.newsletter-form button {
    background: var(--clr-gold);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.8rem 1.6rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background: #c5a059;
    transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 3rem;
    margin-top: 4rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-right a {
    color: var(--clr-forest);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.footer-right a:hover {
    color: var(--clr-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(28, 25, 23, 0.04);
    padding: 1.5rem 0 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .hero-section {
        text-align: center;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.7rem;
    }
    
    .hero-subtitle {
        margin: 0 auto;
    }
    
    .stats-mini-grid {
        max-width: 480px;
        width: 100%;
    }
    
    .features-list {
        max-width: 480px;
        align-items: flex-start;
        text-align: left;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-section {
        width: 100%;
    }
    
    .glass-card {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1.5px solid var(--border-light);
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(30, 32, 30, 0.05);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1.25rem;
    }
    
    .app-header {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .segmented-control {
        padding: 0.2rem;
    }
    
    .segment-btn {
        padding: 0.5rem 0;
        font-size: 0.82rem;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .newsletter-card {
        padding: 2rem 1.25rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--clr-forest);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(34, 66, 41, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 999;
}

.scroll-to-top-btn:hover {
    background-color: var(--clr-forest-light);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
