@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;900&family=Tajawal:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --cream: #f7f2e8;
    --sand: #ece2cd;
    --ink: #201c16;
    --ink-soft: #5a5346;
    --gold: #b8935f;
    --gold-deep: #93733f;
    --clay: #a15c3c;
    --line: #d8cbae;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
}
.mono { font-family: 'JetBrains Mono', monospace; }
.display { font-family: 'Tajawal', sans-serif; font-weight: 900; }
.wordmark { font-family: 'Playfair Display', serif; }

/* ===== شريط علوي ===== */
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 6%; position: relative; z-index: 5;
}
.topbar .logo { display: flex; align-items: center; gap: 10px; }
.topbar .logo-mark {
    width: 40px; height: 40px; border: 1.5px solid var(--gold-deep); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif;
    font-weight: 700; color: var(--gold-deep); font-size: 18px;
}
.topbar .logo-text { font-size: 15px; letter-spacing: .5px; color: var(--ink); }
.topbar .logo-text .wordmark { display: block; font-size: 20px; font-weight: 700; color: var(--ink); }
.topbar .tagline { font-family: 'Playfair Display', serif; font-style: italic; color: var(--ink-soft); font-size: 13px; letter-spacing: .3px; }

/* ===== القسم الرئيسي (Hero) ===== */
.hero {
    position: relative; padding: 60px 6% 40px; text-align: center; overflow: hidden;
}
.hero .route-svg {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 2px; color: var(--gold-deep); background: rgba(184,147,95,.12);
    padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(184,147,95,.35); margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 54px); line-height: 1.35; color: var(--ink); margin-bottom: 18px;
}
.hero h1 span { color: var(--gold-deep); }
.hero p.lead {
    font-size: 18px; color: var(--ink-soft); line-height: 1.9; max-width: 620px; margin: 0 auto 36px;
}

/* ===== بطاقات الدخول (Boarding Passes) ===== */
.gates {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px;
    max-width: 880px; margin: 0 auto; position: relative; z-index: 2;
}
.gate-card {
    background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; text-align: right;
    padding: 30px 30px 26px; position: relative; text-decoration: none; color: var(--ink);
    box-shadow: 0 10px 30px rgba(32,28,22,.06); transition: transform .25s ease, box-shadow .25s ease;
    display: block;
}
.gate-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(32,28,22,.12); }
.gate-card::before {
    content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 24px; background: var(--cream); border-radius: 50%; border: 1px solid var(--line);
}
.gate-card .gate-code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold-deep); letter-spacing: 2px; }
.gate-card h3 { font-size: 22px; margin: 10px 0 8px; }
.gate-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.gate-card .divider {
    border-top: 1.5px dashed var(--line); margin: 18px 0; position: relative;
}
.gate-card .divider::before, .gate-card .divider::after {
    content: ''; position: absolute; top: -8px; width: 16px; height: 16px; background: var(--cream);
    border-radius: 50%; border: 1px solid var(--line);
}
.gate-card .divider::before { right: -30px; }
.gate-card .divider::after { left: -30px; }
.gate-card .cta-row { display: flex; justify-content: space-between; align-items: center; }
.gate-card .cta-label { font-weight: 700; font-size: 15px; }
.gate-card .cta-arrow {
    width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--cream);
    display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .2s ease;
}
.gate-card.admin .cta-arrow { background: var(--gold-deep); }
.gate-card.company .cta-arrow { background: var(--clay); }

/* ===== شريط إحصائيات ===== */
.stats-strip {
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
    padding: 46px 6%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    margin-top: 60px;
}
.stat { text-align: center; }
.stat .num { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 700; color: var(--gold-deep); }
.stat .label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ===== قسم الخدمات ===== */
.features { padding: 70px 6%; max-width: 1100px; margin: 0 auto; }
.features h2 { text-align: center; font-size: 30px; margin-bottom: 8px; }
.features .sub { text-align: center; color: var(--ink-soft); margin-bottom: 46px; font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature-card {
    background: var(--sand); border-radius: 14px; padding: 26px 22px; border: 1px solid var(--line);
}
.feature-card .icon {
    width: 44px; height: 44px; border-radius: 10px; background: #fffdf8; display: flex; align-items: center;
    justify-content: center; margin-bottom: 16px; font-size: 20px; color: var(--gold-deep); border: 1px solid var(--line);
}
.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ===== تذييل ===== */
footer {
    text-align: center; padding: 34px 6%; color: var(--ink-soft); font-size: 13px;
    border-top: 1px solid var(--line);
}
footer .wordmark { color: var(--ink); font-weight: 700; }

@media (max-width: 640px) {
    .stats-strip { gap: 26px; }
    .hero { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
