:root {
    --bg-dark: #0d1b2a;
    --bg-mid: #1b2838;
    --accent: #2e9e9e;
    --accent-light: #5fd1d1;
    --text: #e6edf2;
    --text-dim: #97a7b8;
    --text-dimmer: #64758a;
    --card: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(10, 20, 30, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}
.nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-logo .xe { color: #ffffff; }
.nav-logo .dialer { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
    color: var(--text-dim);
    font-size: 14px;
    text-decoration: none;
}
.nav-links a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 96px 24px 64px;
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-mid) 55%, #204049 100%);
    overflow: hidden;
}
.hero-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    width: 100%;
    height: auto;
    opacity: 0.35;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.logo-big {
    font-size: clamp(40px, 8vw, 68px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
}
.logo-big .xe { color: #ffffff; }
.logo-big .dialer { color: var(--accent); }
.hero .tagline {
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--text-dim);
    max-width: 560px;
    margin: 20px auto 8px;
}
.hero .subtext {
    font-size: 15px;
    color: var(--text-dimmer);
    max-width: 500px;
    margin: 0 auto 36px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: #ffffff;
    color: #0d1b2a;
}
.btn-play:hover { background: #f0f4f7; text-decoration: none; }
.btn-play svg { width: 22px; height: 22px; flex: none; }
.btn-play .play-label {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
}
.btn-play .play-label small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.65;
}
/* No listing URL yet, so the button must not behave like a link. */
.btn-play[aria-disabled="true"] { cursor: default; }
.btn-play[aria-disabled="true"]:hover { background: #ffffff; transform: none; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 48px;
    font-size: 15px;
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px;
    transition: transform 0.2s ease, background 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}
.feature-icon {
    font-size: 26px;
    display: inline-block;
    margin-bottom: 14px;
}
.feature-card h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
}

/* ---------- Screenshots ---------- */
.gallery {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 8px 24px 32px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
/* Auto margins center the row while it fits on screen, and collapse to 0
   as soon as it overflows — so the first frame stays reachable when the
   gallery becomes scrollable. */
.gallery-item:first-child { margin-left: auto; }
.gallery-item:last-child { margin-right: auto; }
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.gallery-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.phone-frame {
    width: 220px;
    aspect-ratio: 1080 / 2004;
    border-radius: 26px;
    border: 6px solid #223142;
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.phone-frame::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 6px;
    background: #223142;
    border-radius: 4px;
    z-index: 2;
}
.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
.gallery-caption {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    max-width: 220px;
}

/* ---------- Footer ---------- */
.footer {
    padding: 40px 24px 48px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dimmer);
    font-size: 13px;
}
.footer a { color: var(--accent); }
.footer .footer-links {
    margin-bottom: 12px;
}
.footer .footer-links a {
    margin: 0 10px;
    color: var(--text-dim);
}
.footer .footer-links a:hover { color: #fff; }

/* ---------- Privacy policy page ---------- */
.policy-page { padding: 56px 24px 80px; }
.policy-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px clamp(24px, 5vw, 56px);
}
.policy-card h1 {
    font-size: clamp(26px, 4vw, 34px);
    margin-bottom: 8px;
}
.policy-meta {
    color: var(--text-dimmer);
    font-size: 14px;
    margin-bottom: 32px;
}
.policy-card h2 {
    font-size: 19px;
    color: var(--accent-light);
    margin: 36px 0 12px;
}
.policy-card h2:first-of-type { margin-top: 0; }
.policy-card h3 {
    font-size: 15px;
    color: var(--text);
    margin: 20px 0 8px;
}
.policy-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.policy-card ul { color: var(--text-dim); font-size: 15px; margin: 0 0 12px 20px; }
.policy-card li { margin-bottom: 6px; }
.policy-card strong { color: var(--text); }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-dim);
}
.back-link:hover { color: #fff; }

@media (max-width: 560px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 13px; }
}
