/* ============================================================
   iOS Experience Launcher — website styles
   Plain CSS3, no frameworks. iOS-inspired but original design.
   ============================================================ */

:root {
    --bg: #f4f5f9;
    --bg-elev: #ffffff;
    --text: #0f1220;
    --text-soft: #5b6072;
    --line: #e4e6ef;
    --accent: #0a84ff;
    --accent-2: #30b34a;
    --accent-3: #ff9f0a;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(20, 40, 80, 0.10);
    --nav-h: 64px;
    --card: #ffffff;
}

[data-theme="dark"] {
    --bg: #0b0d14;
    --bg-elev: #141824;
    --text: #f2f4fa;
    --text-soft: #9aa1b5;
    --line: #232a3c;
    --card: #141824;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

[dir="rtl"] body { font-family: "Segoe UI", "SF Pro Text", -apple-system, "Noto Kufi Arabic", Arial, sans-serif; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------------- header / nav ---------------- */

.nav {
    position: sticky; top: 0; z-index: 50;
    height: var(--nav-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1040px; margin: 0 auto; height: 100%;
    padding: 0 20px;
    display: flex; align-items: center; gap: 18px;
}

.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 17px; color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(145deg, #0a84ff, #5ac8fa);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 800;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
    color: var(--text-soft); font-size: 14.5px; font-weight: 500;
    padding: 8px 12px; border-radius: 10px;
}
.nav-links a:hover { background: var(--bg-elev); color: var(--text); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 38px; height: 38px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--bg-elev);
    color: var(--text); cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-burger { display: none; }

/* mobile menu */
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 40;
    background: var(--bg); padding: calc(var(--nav-h) + 16px) 24px 24px;
    flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text); font-size: 19px; font-weight: 600;
    padding: 14px 10px; border-radius: 14px;
}
.mobile-menu a:hover { background: var(--bg-elev); text-decoration: none; }

/* ---------------- buttons ---------------- */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px; border-radius: 14px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    border: none; transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-green { background: var(--accent-2); color: #fff; }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--line);
}
.btn-lg { padding: 16px 28px; font-size: 16.5px; border-radius: 16px; }

/* ---------------- hero ---------------- */

.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(10, 132, 255, 0.14), transparent 60%),
        radial-gradient(700px 380px at 8% 12%, rgba(48, 179, 74, 0.10), transparent 55%);
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15; font-weight: 800; letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--accent), #5ac8fa);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero p.lead { color: var(--text-soft); font-size: 17.5px; max-width: 46ch; margin-bottom: 26px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; color: var(--text-soft); font-size: 13.5px; }

/* phone mockup */
.phone {
    width: 260px; aspect-ratio: 9 / 18.6;
    border-radius: 42px; position: relative;
    background: linear-gradient(165deg, #182032, #0e1322);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    margin-inline: auto;
    overflow: hidden;
}

.phone-screen {
    position: absolute; inset: 12px;
    border-radius: 32px; overflow: hidden;
    background: linear-gradient(160deg, #7fb2e8, #3d6ea9);
}

.phone-notch {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 88px; height: 22px; border-radius: 12px; background: #0c1018; z-index: 3;
}

.phone-clock { position: absolute; top: 58px; width: 100%; text-align: center; color: #fff; }
.phone-clock .t { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.phone-clock .d { font-size: 12px; opacity: 0.85; }

.phone-grid {
    position: absolute; top: 150px; left: 0; right: 0; bottom: 84px;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; padding: 6px 20px 0;
}

.ic {
    border-radius: 13px; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.ic.cal { background: linear-gradient(145deg, #ff6b6b, #e53d3d); }
.ic.clk { background: linear-gradient(145deg, #14181f, #14181f); }
.ic.cam { background: linear-gradient(145deg, #4b5563, #111827); }
.ic.map { background: linear-gradient(145deg, #f6f6f6, #d8d8d8); color: #2f6fe4; }
.ic.fn { background: linear-gradient(145deg, #2fcd6e, #148e3f); }
.ic.ph { background: linear-gradient(145deg, #58d264, #1ea83d); }
.ic.msg { background: linear-gradient(145deg, #5ce06b, #1ea83d); }
.ic.mail { background: linear-gradient(145deg, #5aa7ff, #1c5cd6); }
.ic.mus { background: linear-gradient(145deg, #fd4d4d, #b41b1b); }

.phone-dock {
    position: absolute; left: 16px; right: 16px; bottom: 22px; height: 62px;
    border-radius: 26px; background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px;
}

/* ---------------- sections ---------------- */

.section { padding: 64px 0; }
.section.alt { background: var(--bg-elev); border-block: 1px solid var(--line); }

.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 10px; }
.section-head p { color: var(--text-soft); font-size: 16px; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
}

/* feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .glyph {
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 14.5px; }

.g-blue { background: rgba(10, 132, 255, 0.14); }
.g-green { background: rgba(48, 179, 74, 0.14); }
.g-orange { background: rgba(255, 159, 10, 0.15); }
.g-purple { background: rgba(142, 68, 173, 0.14); }
.g-red { background: rgba(255, 59, 48, 0.13); }
.g-teal { background: rgba(90, 200, 250, 0.15); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px 24px;
}
.step::before {
    counter-increment: step; content: counter(step);
    flex: 0 0 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--text-soft); font-size: 14.5px; }
.step code {
    background: var(--bg-elev); border: 1px solid var(--line);
    padding: 2px 8px; border-radius: 7px; font-size: 13px;
}

/* download box */
.download-box {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 24px; padding: 40px;
    display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
    box-shadow: var(--shadow);
}
.download-box .apk-ico {
    width: 96px; height: 96px; border-radius: 24px;
    background: linear-gradient(145deg, #0a84ff, #5ac8fa);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px; font-weight: 800;
}
.download-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.download-box p { color: var(--text-soft); font-size: 15px; margin-bottom: 14px; }
.notice {
    border: 1px dashed var(--line); background: var(--bg);
    color: var(--text-soft); font-size: 13.5px;
    border-radius: 14px; padding: 12px 16px; margin-top: 16px;
}

/* requirements list */
.req-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.req-list li { list-style: none; padding-inline-start: 26px; position: relative; color: var(--text-soft); font-size: 14.5px; }
.req-list li::before {
    content: "✓"; position: absolute; inset-inline-start: 0;
    color: var(--accent-2); font-weight: 800;
}

/* feature list page */
.feat-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    padding: 36px 0; border-bottom: 1px solid var(--line);
}
.feat-row:last-child { border-bottom: none; }
.feat-row h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.feat-row p { color: var(--text-soft); font-size: 15.5px; }
.feat-row ul { margin-top: 14px; display: grid; gap: 8px; }
.feat-row li { list-style: none; padding-inline-start: 26px; position: relative; font-size: 14.5px; color: var(--text); }
.feat-row li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent-2); font-weight: 800; }

.feat-panel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 24px; padding: 26px;
    display: grid; gap: 14px; box-shadow: var(--shadow);
}
.feat-panel .bar {
    height: 34px; border-radius: 12px; display: flex; align-items: center; padding: 0 14px;
    color: #fff; font-size: 13.5px; font-weight: 700;
}

/* screenshots */
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot {
    border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
    box-shadow: var(--shadow); background: var(--card);
    transition: transform 0.2s ease;
}
.shot:hover { transform: translateY(-5px); }
.shot-frame {
    aspect-ratio: 9 / 17; background: linear-gradient(165deg, #1a2236, #0d1320);
    display: flex; align-items: center; justify-content: center;
    color: #47506b; font-size: 15px; font-weight: 600;
}
.shot .cap { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--text); }
.shot .cap span { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-soft); margin-top: 3px; }

/* ---------------- FAQ ---------------- */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-item {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
details.faq-item summary {
    cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "⌄"; font-size: 20px; color: var(--text-soft); transition: transform 0.2s ease; }
details.faq-item[open] summary::after { transform: rotate(180deg); }
details.faq-item .faq-a { padding: 0 22px 20px; color: var(--text-soft); font-size: 14.5px; }

/* ---------------- tables / lists ---------------- */

.perms { display: grid; gap: 10px; }
.perms .perm {
    display: flex; gap: 14px; align-items: baseline;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 18px;
}
.perms .perm b { flex: 0 0 150px; font-size: 13.5px; }
.perms .perm span { color: var(--text-soft); font-size: 13.5px; }

/* ---------------- footer ---------------- */

footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 30px; margin-top: 40px;
    background: var(--bg-elev);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer ul a { color: var(--text); font-size: 14.5px; }
footer .disclaimer { color: var(--text-soft); font-size: 12.5px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------------- utility / animation ---------------- */

.center { text-align: center; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 34px; }
.muted { color: var(--text-soft); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero p.lead { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .feat-row { grid-template-columns: 1fr; gap: 26px; padding: 30px 0; }
    .feat-row .feat-panel { order: -1; }
    .progress-none { display: none; }
    .shot-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .nav-links, .nav-actions .icon-btn#themeToggle { display: none; }
    .nav-burger { display: flex; }
    .grid-3, .grid-2, .req-list { grid-template-columns: 1fr; }
    .shot-grid { grid-template-columns: 1fr; }
    .download-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .perms .perm { flex-direction: column; gap: 2px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 40px; }
    .section { padding: 44px 0; }
}