:root {
    /* M3 Color Palette (Purple / Lavender Theme) */
    --md-sys-color-primary: #6750a4;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #eaddff;
    --md-sys-color-on-primary-container: #21005d;
    
    --md-sys-color-secondary: #625b71;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #e8def8;
    --md-sys-color-on-secondary-container: #1d192b;
    
    --md-sys-color-tertiary: #7d5260;
    --md-sys-color-tertiary-container: #ffd8e4;
    --md-sys-color-on-tertiary-container: #31111d;
    
    --md-sys-color-surface: #fdf8fd;
    --md-sys-color-surface-dim: #ded8e1;
    --md-sys-color-surface-variant: #e7e0ec;
    --md-sys-color-on-surface: #1c1b1f;
    --md-sys-color-on-surface-variant: #49454f;
    
    --md-sys-color-outline: #79747e;
    
    /* Shapes */
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;
    
    /* Elevations */
    --md-sys-elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-2: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
    --md-sys-elevation-3: 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    
    /* Fonts */
    --font-family-display: 'Outfit', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
}

.display-large {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.display-medium {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.body-large {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(253, 248, 253, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 16px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.top-app-bar.scrolled {
    box-shadow: var(--md-sys-elevation-2);
    background-color: var(--md-sys-color-surface);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--md-sys-color-primary);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--md-sys-color-primary);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--md-sys-color-surface);
    box-shadow: var(--md-sys-elevation-2);
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
}

.mobile-nav.active {
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 500;
    font-family: var(--font-family-body);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-filled:hover {
    box-shadow: var(--md-sys-elevation-1);
    background-color: #7966b4; /* Lighter primary */
}

.btn-filled.on-primary {
    background-color: var(--md-sys-color-on-primary);
    color: var(--md-sys-color-primary);
}

.btn-filled.on-primary:hover {
    background-color: var(--md-sys-color-primary-container);
}

.btn-tonal {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.btn-tonal:hover {
    background-color: #dfd3f0;
}

.w-100 {
    width: 100%;
}

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--md-sys-color-primary-container) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 6s infinite alternate;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text-content h1 {
    margin-bottom: 24px;
    color: var(--md-sys-color-on-surface);
}

.hero-text-content h1 span {
    color: var(--md-sys-color-primary);
}

.hero-text-content p {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 32px;
}

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

.hero-image-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 24px;
    box-shadow: var(--md-sys-elevation-2);
}

.decorative-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    animation: float 4s ease-in-out infinite;
}

.icon-large {
    font-size: 48px;
    color: var(--md-sys-color-primary);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.hero-blob {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    animation: blobMorph 8s ease-in-out infinite alternate;
}

/* Layout */
.section-padding {
    padding: 96px 0;
}

.bg-surface-variant {
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 40px;
    margin: 24px;
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
}

.section-subtitle {
    color: var(--md-sys-color-on-surface-variant);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 12px;
}

.m3-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
}

.elevated-card {
    box-shadow: var(--md-sys-elevation-1);
}

.elevated-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--md-sys-elevation-3);
}

.m3-card.primary-card {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.m3-card.tonal-card {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--md-sys-color-tertiary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.card-header .price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-family-display);
    margin-bottom: 24px;
}

.card-header .price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.card-body {
    flex-grow: 1;
    margin-bottom: 32px;
    text-align: left;
}

.speed-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--md-sys-color-outline);
    opacity: 0.6;
}

.m3-card.primary-card .speed-indicator {
    border-bottom-color: rgba(255,255,255,0.3);
}

.speed-indicator h4 {
    font-size: 1.25rem;
}

.features-list {
    list-style: none;
}

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

.check-icon {
    color: var(--md-sys-color-primary);
    font-size: 20px;
}

.m3-card.primary-card .check-icon {
    color: var(--md-sys-color-primary-container);
}

/* Coverage */
.coverage-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.coverage-info h2 {
    margin-bottom: 16px;
}

.coverage-info p.body-large {
    margin-bottom: 32px;
    color: var(--md-sys-color-on-surface-variant);
}

.info-box {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: var(--md-sys-shape-corner-large);
    background-color: var(--md-sys-color-surface-variant);
}

.m3-surface {
    /* added for info-box background using m3 surface */
}

.icon-accent {
    color: var(--md-sys-color-primary);
    font-size: 32px;
}

.info-box h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.info-box p {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 12px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--md-sys-color-primary);
    font-weight: 600;
}

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

.map-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #eaddff, #ffd8e4);
    color: var(--md-sys-color-on-primary-container);
    text-align: center;
    padding: 24px;
}

.huge-icon {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--md-sys-color-surface-dim);
    padding: 64px 24px 24px;
}

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

.footer-brand p {
    margin-top: 16px;
    color: var(--md-sys-color-on-surface-variant);
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: var(--md-sys-color-on-surface-variant);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--md-sys-color-primary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes blobMorph {
    0% { border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%; }
    100% { border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%; }
}

/* Responsiveness */
@media (max-width: 900px) {
    .hero-content, .coverage-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-text-content {
        text-align: center;
        margin-top: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .display-large {
        font-size: 2.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links, .top-app-bar .btn {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .bg-surface-variant {
        margin: 0;
        border-radius: 0;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 600ms linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
