:root {
    --primary: #1C4A60;
    --primary-dark: #143646;
    --secondary: #D4AF37;
    /* Rich Gold */
    --secondary-light: #F4E5BC;
    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --border-radius: 20px;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #4FA3C8;
        /* Lighter teal for dark mode text */
        --primary-dark: #8CD6F5;
        --bg-color: #0F172A;
        --surface-color: #1E293B;
        --text-main: #F1F5F9;
        --text-muted: #94A3B8;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(28, 74, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 74, 96, 0.4);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-main);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, rgba(28, 74, 96, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

@media (prefers-color-scheme: dark) {
    .badge {
        background: #0c4a6e;
        color: #7dd3fc;
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    z-index: 2;
    transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-10px) rotate(-1deg);
}

.app-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    /* Soft shadow for the image itself if it doesn't have one */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 24px;
}

.feature-box {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: rgba(28, 74, 96, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

@media (prefers-color-scheme: dark) {
    .icon-circle {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary);
    }

    .feature-box {
        border-color: rgba(255, 255, 255, 0.05);
    }
}

.feature-box h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Deep Dive Sections (Alternating) */
.deep-dive {
    padding: 100px 0;
}

.section-bg {
    background: rgba(28, 74, 96, 0.03);
}

@media (prefers-color-scheme: dark) {
    .section-bg {
        background: rgba(255, 255, 255, 0.02);
    }
}

.dive-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.dive-container.reverse {
    flex-direction: row-reverse;
}

.dive-image {
    flex: 1;
}

.rounded-image {
    width: 100%;
    border-radius: 30px;
    transition: transform 0.4s ease;
}

.shadow-lg {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.dive-text {
    flex: 1;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.check-list ion-icon {
    color: var(--secondary);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Footer */
.main-footer {
    background: var(--surface-color);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand h2 {
    color: var(--primary);
    font-size: 2rem;
}

@media (prefers-color-scheme: dark) {
    .footer-brand h2 {
        color: var(--secondary);
    }
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Legal/Text Pages (Global) */
.legal-doc {
    background: var(--surface-color);
    padding: 80px 60px;
    border-radius: var(--border-radius);
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    /* Optimized for reading line-length */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.legal-doc h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -1px;
}

.legal-doc .last-updated {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 60px;
    display: block;
    font-size: 1rem;
}

.legal-doc h2 {
    font-size: 1.5rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.legal-doc h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary);
    font-weight: 700;
}

.legal-doc p {
    margin-bottom: 20px;
    font-size: 1.125rem;
    /* 18px for better readability */
    line-height: 1.8;
    color: var(--text-main);
}

.legal-doc ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.legal-doc li {
    margin-bottom: 10px;
    padding-left: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.legal-header {
    text-align: center;
    padding: 60px 0 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .hero-container,
    .dive-container,
    .dive-container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .check-list li {
        justify-content: center;
        text-align: left;
    }

    /* Legal Mobile Adjustments */
    .legal-doc {
        padding: 40px 24px;
        margin: 20px;
    }

    .legal-doc h1 {
        font-size: 2rem;
    }
}