/* AWOTD Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    min-width: 0;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #263042;
    overflow-x: hidden;
    min-width: 0;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbfcff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fbfcff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Hamburger menu styles */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    z-index: 1100;
    position: relative;
}
.hamburger-bar {
    display: block;
    width: 26px;
    height: 3px;
    background: #fbfcff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 860px) {
    .nav-hamburger {
        display: flex;
    }
    .nav-links {
        display: none !important;
    }
    .mobile-menu {
        display: none;
        position: absolute;
        top: 64px;
        right: 16px;
        background: rgba(30, 58, 138, 0.98);
        border-radius: 14px;
        box-shadow: 0 8px 32px rgba(30,41,59,0.18);
        flex-direction: column;
        min-width: 200px;
        z-index: 1200;
        padding: 12px 0;
        text-align: left;
    }
    .mobile-menu a {
        color: #fbfcff;
        text-decoration: none;
        padding: 12px 24px;
        display: block;
        font-size: 1.1rem;
        font-weight: 500;
        border: none;
        background: none;
        transition: background 0.2s;
    }
    .mobile-menu a:hover,
    .mobile-menu a:focus {
        background: rgba(255,255,255,0.08);
        outline: none;
    }
}

@media (max-width: 768px) {
    html, body, .container {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
    }
    .container {
        padding: 0 8px;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: #fbfcff;
    padding: 140px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fbfcff;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #05070c, #263042);
    color: #fbfcff;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid #007AFF;
    white-space: nowrap;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: #0056CC;
}

@media (max-width: 500px) {
    .cta-button {
        font-size: 1rem;
        padding: 1em 0.5em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .phone-mockup {
        max-width: 210px;
        min-width: 0;
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #fbfcff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #2563eb, #3b82f6);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
}

/* App Preview Section */
.app-preview {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    color: #fbfcff;
    text-align: center;
}

.phone-mockup {
    max-width: 300px;
    margin: 40px auto;
    position: relative;
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* Hero badge (v2 announcement) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 22px;
    padding: 7px 18px 7px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #f4f7ff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-badge__spark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(45deg, #ffd166, #ffb703);
    color: #173579;
    font-size: 0.72rem;
    box-shadow: 0 1px 6px rgba(255, 183, 3, 0.45);
}

/* Premium pill on feature titles */
.pill-premium {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #173579;
    background: linear-gradient(45deg, #ffd166, #ffb703);
    padding: 3px 9px;
    border-radius: 999px;
}

/* Premium / pricing section */
.premium {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f254f 0%, #1e3a8a 55%, #1d4ed8 100%);
    color: #fbfcff;
    text-align: center;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 820px;
    margin: 56px auto 0;
}

.plan-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 36px 30px;
    text-align: left;
    position: relative;
    backdrop-filter: blur(6px);
}

.plan-card--featured {
    background: #fbfcff;
    color: #1e293b;
    border: none;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.plan-tag {
    position: absolute;
    top: -14px;
    left: 30px;
    background: linear-gradient(45deg, #ffd166, #ffb703);
    color: #173579;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 999px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.plan-price span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.plan-list li {
    padding: 9px 0 9px 30px;
    position: relative;
    line-height: 1.5;
}
.plan-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    font-weight: 800;
    color: #2563eb;
}
.plan-card:not(.plan-card--featured) .plan-list li::before {
    color: #8fbaff;
}

.plan-meta {
    margin-top: 18px;
    font-size: 0.92rem;
    opacity: 0.78;
    line-height: 1.5;
}

.premium-cta {
    margin-top: 44px;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: #fbfcff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #f1f5f9;
    transform: translateY(-5px);
}

.benefit-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.benefit-text {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 500;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: #173579;
}
.section-title-white {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: #fbfcff;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 50%, #1e40af 100%);
    color: #fbfcff;
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.app-store-button {
    display: inline-block;
    background: linear-gradient(45deg, #1e40af, #2563eb);
    color: #fbfcff;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
    border: 2px solid rgba(255,255,255,0.2);
}

.app-store-button:hover,
.app-store-button:focus-visible {
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
}

/* Support and Privacy Pages */
.page-section {
    padding: 140px 0 60px 0;
    min-height: 100vh;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: #1e3a8a;
}

.page-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #1e40af;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.page-content li {
    margin: 0.5rem 0;
}

/* Hide pages by default */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hide floating words on support and privacy pages */
#support.active ~ .floating-words,
#privacy.active ~ .floating-words {
    display: none;
}

/* --- Support/Privacy Page Background --- */
#support.page-section,
#privacy.page-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body, .container {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
    }
    .container {
        padding: 0 8px;
    }
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .feature-card,
    .benefit-item {
        padding: 18px !important;
        min-width: 0;
        box-sizing: border-box;
    }
    .app-preview {
        padding: 40px 0;
    }
    .premium,
    .features,
    .benefits {
        padding: 50px 0;
    }
    .plan-grid {
        margin-top: 36px;
        gap: 20px;
    }
    .plan-card {
        padding: 26px 22px;
    }
    .phone-mockup {
        max-width: 98vw;
        min-width: 0;
    }
    .section-title,
    .section-title-white {
        font-size: 1.6rem;
    }
    header {
        padding: 92px 0 44px 0;
    }
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.45;
    }
    .hero-badge {
        margin-bottom: 18px;
        padding: 6px 14px 6px 11px;
        font-size: 0.78rem;
        white-space: normal;
        max-width: 100%;
        text-align: center;
    }
    .cta-button {
        font-size: 0.95rem;
        padding-left: 1em;
        padding-right: 1em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }
    footer {
        padding: 30px 0;
    }
    .app-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Floating Elements */
.floating-words {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(30, 64, 175, 0.08);
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}


.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    transform: translateY(-140%);
    z-index: 2000;
    background: #fbfcff;
    color: #173579;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid #ffd166;
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 3px;
}

.nav-links a[aria-current="page"],
.mobile-menu a[aria-current="page"] {
    background: rgba(251, 252, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .phone-mockup {
        animation: none !important;
    }
}
