/* NoorPath — noorpathi.com
   Editorial design system mirrored from the iOS app.
   Inter typography · dark warm palette · 0.5pt hairlines · no SF symbols. */

:root {
    /* Mirrored from NoorColors */
    --bg: #15130E;
    --surface: #211F1A;
    --surface-low: #1D1B16;
    --surface-high: #2C2A24;
    --on-bg: #E7E2D9;
    --on-surface-variant: #C4C7C7;
    --outline-variant: #444748;
    --gold: #E4C279;
    --gold-soft: #D6B56D;
    --tertiary: #4AE183;

    /* Type scale (web ports of NoorTypography) */
    --display: 48px;
    --headline-lg: 36px;
    --headline-md: 28px;
    --title: 22px;
    --body-lg: 18px;
    --body-md: 16px;
    --body-sm: 14px;
    --label: 11px;
}

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=swap');
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--on-bg);
    font-size: var(--body-md);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: "ss01", "ss02";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top bar — minimal editorial */
.topbar {
    padding: 24px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid rgba(68, 71, 72, 0.2);
    margin-bottom: 48px;
}

.wordmark {
    font-size: var(--label);
    letter-spacing: 2.8px;
    font-weight: 600;
    color: var(--on-bg);
    opacity: 0.88;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    gap: 14px;
    font-size: var(--label);
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.lang-switch a {
    color: var(--on-surface-variant);
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.2s;
}

.lang-switch a:hover, .lang-switch a.active {
    opacity: 1;
    color: var(--gold);
}

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--on-bg);
    line-height: 1.2;
}

h1 {
    font-size: var(--headline-lg);
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    h1 { font-size: var(--display); }
}

h2 {
    font-size: var(--title);
    font-weight: 400;
    margin: 48px 0 16px;
    padding-top: 24px;
    border-top: 0.5px solid rgba(68, 71, 72, 0.2);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
    font-size: var(--body-lg);
    font-weight: 500;
    margin: 32px 0 12px;
    color: var(--gold-soft);
}

p, ul, ol {
    margin-bottom: 16px;
    color: var(--on-bg);
    opacity: 0.92;
}

ul, ol {
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

strong {
    font-weight: 600;
    color: var(--on-bg);
}

em {
    font-style: italic;
    color: var(--gold-soft);
}

a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 0.5px solid rgba(228, 194, 121, 0.4);
    transition: border-color 0.2s;
}

a:hover { border-bottom-color: var(--gold); }

code {
    font-family: 'SF Mono', Menlo, Monaco, monospace;
    background: var(--surface-low);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    color: var(--gold-soft);
}

hr {
    border: none;
    border-top: 0.5px solid rgba(68, 71, 72, 0.25);
    margin: 48px 0;
}

/* Eyebrow */
.eyebrow {
    font-size: var(--label);
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 18px;
    opacity: 0.85;
}

/* Lead paragraph (intro under h1) */
.lead {
    font-size: var(--body-lg);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.55;
}

/* Meta block (last updated / contact) */
.meta {
    font-size: var(--body-sm);
    color: var(--on-surface-variant);
    opacity: 0.75;
    padding: 14px 18px;
    background: var(--surface-low);
    border: 0.5px solid rgba(68, 71, 72, 0.25);
    border-radius: 12px;
    margin: 20px 0 32px;
    line-height: 1.7;
}

.meta strong { color: var(--gold-soft); font-weight: 500; }

/* Footer */
.footer {
    margin-top: 96px;
    padding: 32px 0 48px;
    border-top: 0.5px solid rgba(68, 71, 72, 0.2);
    font-size: var(--body-sm);
    color: var(--on-surface-variant);
    opacity: 0.6;
    text-align: center;
}

.footer a { color: inherit; border-bottom: none; }
.footer a:hover { color: var(--gold); }

.footer .dot { padding: 0 10px; opacity: 0.4; }

/* Landing-specific */
.hero {
    padding: 64px 0 48px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 200;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 84px; }
}

.hero .lead {
    max-width: 480px;
    margin: 0 auto 40px;
    font-size: var(--body-lg);
    opacity: 0.78;
}

.cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--bg);
    font-size: var(--body-md);
    font-weight: 600;
    border-radius: 32px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 16px rgba(228, 194, 121, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(228, 194, 121, 0.35);
    border-bottom: none;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 64px 0;
}

@media (min-width: 720px) {
    .features { grid-template-columns: 1fr 1fr; gap: 0; }
}

.feature {
    padding: 28px 0;
    border-top: 0.5px solid rgba(68, 71, 72, 0.18);
}

@media (min-width: 720px) {
    .feature:nth-child(odd) { padding-right: 24px; }
    .feature:nth-child(even) { padding-left: 24px; border-left: 0.5px solid rgba(68, 71, 72, 0.18); }
    .feature:nth-child(1), .feature:nth-child(2) { border-top: none; padding-top: 0; }
}

.feature h3 {
    font-size: var(--body-lg);
    font-weight: 300;
    color: var(--on-bg);
    margin: 0 0 8px;
}

.feature p {
    font-size: var(--body-sm);
    color: var(--on-surface-variant);
    opacity: 0.8;
    margin: 0;
    line-height: 1.55;
}

/* Trust strip */
.trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin: 48px 0;
    padding: 24px 0;
    border-top: 0.5px solid rgba(68, 71, 72, 0.18);
    border-bottom: 0.5px solid rgba(68, 71, 72, 0.18);
}

.trust-item {
    font-size: var(--label);
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    opacity: 0.55;
}

/* Selection */
::selection {
    background: rgba(228, 194, 121, 0.35);
    color: var(--bg);
}

/* Focus accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─────────────────────────────────────────────
   V25 — Logo (Mihrab mark) + hero polish
   ───────────────────────────────────────────── */

/* Brand lockup in the top bar */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    border-bottom: none;
}
.brand-mark {
    width: 18px;
    height: 22px;
    stroke: var(--gold);
    fill: var(--gold);
    flex: none;
}
.brand-mark path, .brand-mark line { fill: none; }

/* Hero logo mark with a soft luminous glow ("Luminous Sanctuary") */
.hero-mark {
    position: relative;
    width: 92px;
    height: 114px;
    margin: 0 auto 30px;
    display: grid;
    place-items: center;
}
.hero-mark::before {
    content: "";
    position: absolute;
    inset: -60% -90%;
    background: radial-gradient(closest-side, rgba(228, 194, 121, 0.22), rgba(228, 194, 121, 0.06) 55%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}
.mihrab {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 114px;
    stroke: var(--gold);
    fill: var(--gold);
    filter: drop-shadow(0 2px 14px rgba(228, 194, 121, 0.28));
}
.mihrab path, .mihrab line { fill: none; }

/* Hero actions row */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* "Coming to the App Store" badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 32px;
    background: var(--surface-high);
    border: 0.5px solid rgba(228, 194, 121, 0.32);
    color: var(--on-bg);
    font-size: var(--body-sm);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.badge svg { color: var(--gold); opacity: 0.95; }

/* Ghost secondary link */
.cta-ghost {
    font-size: var(--body-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
    border-bottom: 0.5px solid rgba(196, 199, 199, 0.25);
    padding-bottom: 2px;
}
.cta-ghost:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Closing block */
.closing {
    text-align: center;
    padding: 12px 0 8px;
    border-top: 0.5px solid rgba(68, 71, 72, 0.2);
    margin-top: 40px;
}
.closing .eyebrow { padding-top: 32px; }
.closing-text {
    font-size: var(--body-lg);
    font-weight: 300;
    opacity: 0.82;
    max-width: 480px;
    margin: 0 auto;
}

/* Gentle entrance — opacity STARTS at 1 (resting state fully visible) so static
   renderers, App-Review bots and social scrapers always see the hero. The fade
   is layered on only as enhancement and only when motion is welcome; it never
   leaves content stranded invisible. */
@media (prefers-reduced-motion: no-preference) {
    .hero-mark, .hero .eyebrow, .hero h1, .hero .lead, .hero-actions {
        animation: noor-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .hero .eyebrow   { animation-delay: 0.05s; }
    .hero h1         { animation-delay: 0.10s; }
    .hero .lead      { animation-delay: 0.15s; }
    .hero-actions    { animation-delay: 0.20s; }
    /* transform-only: resting opacity stays 1, so a non-animating renderer
       freezes at most 14px lower — always visible, never blank. */
    @keyframes noor-rise {
        from { transform: translateY(14px); }
        to   { transform: translateY(0); }
    }
}
