:root {
  /* PITSTOP Brand Colors */
  --primary: #F26522;       /* Automotive Orange */
  --primary-700: #d65116;   /* Darker Orange for hover */
  --secondary: #1a1a1a;     /* Dark Grey/Black (Tires/Asphalt) */
  --accent: #FF8F55;        /* Light Orange */
  --bg: #fcfcfc;            /* Global Background */
  --white: #ffffff;
  --muted: #f4f4f4;         /* Light Grey Section Background */
  --border: #e0e0e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--secondary);
  background: var(--bg);
  font-family: "Tajawal", "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Containers */
.container { width: min(1120px, 92%); margin-inline: auto; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff; /* Solid White */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}
.site-header .container { display: flex; align-items: center; gap: 20px; padding: 16px 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { height: 40px; width: auto; object-fit: contain; }
.footer-logo { height: 32px; width: auto; object-fit: contain; }
.brand-text { font-weight: 900; letter-spacing: -0.5px; font-size: 20px; text-transform: uppercase; font-style: italic; color: var(--secondary); }

.nav { margin-inline: auto; display: flex; gap: 24px; }
.nav a { color: var(--secondary); text-decoration: none; font-weight: 600; opacity: 0.8; transition: 0.2s; }
.nav a:hover { opacity: 1; color: var(--primary); }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  --pad: 12px 20px;
  padding: var(--pad);
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  display: inline-block;
  line-height: normal;
  transition: 0.2s;
}
.btn.primary { background: var(--secondary); color: #fff; box-shadow: var(--shadow); border: none; }
.btn.primary:hover { background: var(--primary); transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--secondary); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--secondary); }

/* HERO SECTION (Updated for Visibility) */
.hero {
  position: relative;
  overflow: hidden;
  /* 1. Solid Fallback Color (Light Grey) */
  background-color: #eeeeee;
  /* 2. Gradient: Orange glow from top, fading into a distinct grey bottom */
  background: 
    radial-gradient(1200px 500px at 50% 0%, rgba(242, 101, 34, 0.15), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #e6e6e6 100%);
}

/* HERO PATTERN (Darker dots/grid) */
.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12; /* Visible transparency */
  pointer-events: none;
  /* Simple dot pattern */
  background-image: radial-gradient(#1a1a1a 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 80px 0 60px; }
.hero-title { margin: 0 0 10px; font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; }
.hero-title .accent { color: var(--primary); font-style: italic; }
.hero-sub { font-size: clamp(16px, 1.8vw, 18px); opacity: 0.8; margin: 0 0 28px; max-width: 500px; }

.hero-cta { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.notify-form { display: flex; gap: 8px; background: #fff; padding: 6px; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.notify-form input { flex: 1; border: 0; outline: 0; padding: 12px 14px; font-size: 16px; background: transparent; direction: ltr !important; }
.helper { font-size: 13px; opacity: 0.7; margin-top: 2px; }
.notify-msg { min-height: 24px; font-size: 14px; font-weight: 500; }

.store-badges { display: flex; gap: 12px; }
.store-badge { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border); text-decoration: none; color: var(--secondary); font-weight: 700; user-select: none; background: #fff; transition: 0.2s; }
.store-badge:hover { border-color: var(--secondary); background: var(--secondary); color: #fff; }

.countdown { display: flex; gap: 12px; margin-top: 20px; }
.cd-box { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 12px 16px; border-radius: 10px; text-align: center; min-width: 75px; }
.cd-box span { display: block; font-weight: 800; font-size: 24px; color: var(--secondary); }
.cd-box label { font-size: 12px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }

/* HERO LOGO ART */
.hero-art { position: relative; }
.logo-showcase { position: relative; display: grid; place-items: center; padding: 20px; }
.logo-card {
  position: relative;
  width: min(400px, 90vw);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #f2f2f2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.logo-hero { width: 65%; height: auto; object-fit: contain; }
.logo-rings .ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; pointer-events: none; border: 1px dashed rgba(26, 26, 26, 0.1); }
.logo-rings .r1 { width: min(480px, 96vw); height: min(480px, 96vw); animation: spin 20s linear infinite; }
.logo-rings .r2 { width: min(580px, 110vw); height: min(580px, 110vw); border-color: rgba(242, 101, 34, 0.2); animation: spin 30s linear infinite reverse; }
.logo-shadow {
  position: absolute; bottom: -20px;
  width: 50%; height: 20px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), transparent 70%);
  filter: blur(8px);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* SECTIONS */
.section { padding: 80px 0; }
.section.muted { background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { margin: 0 0 10px; font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.5px; }
.section-sub { margin: 0 0 40px; opacity: 0.8; max-width: 600px; font-size: 17px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: 0.3s; }
.feature:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature .icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--secondary); color: #fff; margin-bottom: 16px; }
.feature .icon svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; }
.feature h3 { margin: 0 0 10px; font-weight: 700; }
.feature p { margin: 0; opacity: 0.8; font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 16px; font-size: 18px; }
.step h3 { margin: 0 0 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { color: var(--primary); margin-top: 0; }
.contact-card a { color: var(--secondary); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--primary); text-decoration: underline; }

/* Legal Pages */
.legal h1 { margin: 0 0 16px; font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; }
.legal h2 { margin: 32px 0 12px; font-size: clamp(20px, 2.6vw, 26px); color: var(--secondary); }
.legal p, .legal li { font-size: 16px; color: #444; margin-bottom: 12px; }
.legal .note { background: #fff3e0; border: 1px solid #ffe0b2; border-radius: 8px; padding: 16px; color: #e65100; }
.legal ul { padding-inline-start: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 40px 0; }
.footer-grid { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.f-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.f-links a { color: var(--secondary); text-decoration: none; font-weight: 500; font-size: 14px; }
.f-links a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; text-align: center; }
  .hero-cta, .hero-sub { margin-inline: auto; }
  .store-badges, .countdown { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 20px; }
  .footer-grid { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .features-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .site-header.open .nav {
    display: flex; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); padding: 20px; gap: 16px; flex-direction: column; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
}

/* RTL Support */
body.is-en { font-family: "Inter", "Tajawal", system-ui; direction: ltr; }
body.is-en .notify-form input { direction: ltr; }
body.is-ar .brand-text { font-family: "Tajawal", sans-serif; letter-spacing: 0; }