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

:root {
    --primary: #00bcf6;
    --primary-dim: #0080b0;
    --surface: #0a0f1a;
    --surface-variant: #111827;
    --surface-card: rgba(22, 30, 45, 0.8);
    --text-main: #ffffff;
    --text-dim: #9aa9c1;
    --accent: #22d3ee;
    --nav-bg: rgba(10, 15, 26, 0.85);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* ----- navigation ----- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:focus,
.btn:focus,
.more-screens-btn:focus,
.links a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-links a:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
}

/* ----- hero section ----- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 0;
    background: radial-gradient(circle at 50% -20%, #006994 0%, var(--surface) 75%);
    margin-bottom: -2rem;
}

.hero-logo-container {
    width: 104px;
    height: 104px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px var(--primary));
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 2.8rem;
    font-weight: 400;
}

.btn-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-filled {
    background: var(--primary);
    color: #0a0f1a;
    box-shadow: 0 6px 24px rgba(0, 188, 246, 0.25);
}
.btn-filled:hover {
    background: #1ac8ff;
    transform: scale(1.02);
    box-shadow: 0 10px 32px var(--primary);
}

.btn-outline {
    background: rgba(20, 30, 50, 0.6);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 188, 246, 0.1);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    font-weight: 500;
    padding: 1rem 2rem;
}
.btn-tertiary:hover {
    border-color: var(--primary-dim);
    color: var(--text-main);
    background: rgba(0, 188, 246, 0.05);
}

/* ----- screenshots ----- */
.screenshots-section {
    padding: 3rem 2rem 5rem;
    background: var(--surface);
    position: relative;
    z-index: 2;
    margin-top: 72px;
}

.screenshots-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.screen-card {
    width: 320px;
    height: 720px;
    background: #131d2c;
    border-radius: 36px;
    border: 6px solid #1e2a3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 25px 50px -10px black;
    transition: none;
    position: relative;
    overflow: hidden;
}

.screen-card::before {
    display: none;
}

.screen-card img {
   display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
}

.more-screens-link {
    text-align: center;
}

.more-screens-btn {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--primary-dim);
    color: white;
    padding: 0.9rem 2.8rem;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: 0.2s;
}

.more-screens-btn:hover {
    background: var(--primary-dim);
    color: #000;
    border-color: var(--primary);
}

/* ----- features ----- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 7rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.card {
    background: var(--surface-card);
    padding: 2.5rem 2rem;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    transition: 0.2s;
    text-decoration: none;
    display: block;
}

.card:hover {
    border-color: var(--primary);
    background: rgba(28, 38, 56, 0.9);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    color: #fff;
}

.card p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* ----- adaptive section ----- */
.adaptive-showcase {
    background: linear-gradient(145deg, #0f1a24, #0c121e);
    border-radius: 3rem;
    padding: 4rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.adaptive-text {
    flex: 1 1 280px;
}

.adaptive-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.adaptive-text p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 500px;
}

.adaptive-preview {
    flex: 1 1 280px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.theme-chip {
    background: #1f2a3c;
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #334155;
    backdrop-filter: blur(10px);
}

.theme-chip span {
    color: var(--primary);
    font-weight: 700;
}

.material-badge {
    display: inline-block;
    background: #1e2c3a;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    margin-right: 0.6rem;
    margin-top: 1rem;
    border: 1px solid #335566;
}

/* ----- FAQ ----- */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq {
    background: #080c14;
    padding: 6rem 2rem;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 1rem;
    padding: 2rem;
    background: var(--surface-variant);
    border-radius: 16px;
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-dim);
}

.faq-btn {
    margin-top: 64px;
    text-align: center;
}

/* ----- footer ----- */
footer {
    background: #020617;
    padding: 6rem 2rem 3rem;
    border-top: 1px solid rgba(0,188,246,0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
}

.footer-col h5 {
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ----- links ------- */
.links a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-dim);
}
.links a:hover {
    color: var(--accent);
    border-bottom: 1px solid var(--primary);
}


/* ----- mobile refinements ----- */
@media (max-width: 680px) {
    nav {
        padding: 0.6rem 1rem;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 8px;
    }
    .policy-hero { padding-top: 9rem; }
    .policy-content { padding: 2rem 1.5rem; }
    .nav-links a {
        font-size: 0.85rem;
    }
    .hero {
        padding-top: 9rem;
    }
    .adaptive-showcase {
        padding: 3rem 1.5rem;
        border-radius: 2rem;
        margin-bottom: 3rem;
    }
    .adaptive-text h2 {
        font-size: 2rem;
    }
    .container {
        padding: 5rem 1.5rem;
    }
    .btn-tertiary {
        padding: 0.9rem 1.8rem;
    }
}

/* ----- error pages ----- */
.error-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.error-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 2rem 6rem;
    background: radial-gradient(circle at 50% -10%, #006994 0%, var(--surface) 70%);
    flex: 1;
}

.error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 40px rgba(0, 188, 246, 0.3);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.error-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* ----- print style ----- */
@media print {
    nav, footer, .btn-group, .more-screens-link {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: none;
        color: black;
        min-height: auto;
    }
}

/* ----- social links ----- */
.social-divider {
    position: relative;
    text-align: center;
    margin: 3rem 0 2rem;
}

.social-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
    transform: translateY(-50%);
    z-index: 1;
}

.social-divider span {
    background: #020617;
    padding: 0 1.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: #0a0f1a;
    border-color: var(--primary);
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .social-links {
        gap: 1rem;
    }
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* ----- privacy ----- */
.policy-hero {
    padding: 10rem 2rem 3rem;
    background: radial-gradient(circle at 50% -10%, #006994 0%, var(--surface) 70%);
    text-align: center;
}
.policy-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.policy-hero p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
/* Policy content */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex: 1;
}
.policy-section {
    margin-bottom: 3rem;
}
.policy-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.policy-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.policy-section p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.policy-section ul {
    list-style: none;
    margin-bottom: 1.5rem;
}
.policy-section li {
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}
.policy-section li::before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
}
.last-updated {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    font-style: italic;
}