/* ============================================================
 * Auto360 corporate site — assets/site.css
 * Brand tokens (v0.1) + landing-page styles. Self-contained.
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;700&display=swap');

/* --- BRAND TOKENS --------------------------------------------------- */
:root {
  --a360-blue:     #1551F5;
  --a360-midnight: #0A1A3A;
  --a360-surge:    #00D4FF;
  --a360-carbon:   #0E1424;
  --a360-steel:    #5B6B82;
  --a360-cloud:    #F4F6FB;
  --a360-white:    #FFFFFF;

  --a360-font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --a360-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --a360-font-arabic:  'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', system-ui, sans-serif;

  --a360-radius-sm:   4px;
  --a360-radius-md:   8px;
  --a360-radius-lg:   12px;
  --a360-radius-xl:   16px;
  --a360-radius-full: 9999px;

  --a360-shadow-md: 0 4px 12px rgba(10,26,58,0.08);
  --a360-shadow-lg: 0 12px 32px rgba(10,26,58,0.12);
}

/* --- RESET ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--a360-font-body);
  color: var(--a360-carbon);
  background: var(--a360-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[dir="rtl"] body { font-family: var(--a360-font-arabic); }

img, svg { display: block; max-width: 100%; }
a { color: var(--a360-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }

:focus-visible {
  outline: 2px solid var(--a360-surge);
  outline-offset: 3px;
  border-radius: var(--a360-radius-sm);
}

h1, h2, h3 {
  font-family: var(--a360-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--a360-midnight);
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 { font-family: var(--a360-font-arabic); letter-spacing: 0; }

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1em; }

/* --- LAYOUT --------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

section { padding: 80px 0; }
@media (min-width: 768px) { section { padding: 120px 0; } }

/* --- HEADER --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10,26,58,0.06);
  z-index: 100;
}
.site-header > .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
  gap: 24px;
}
.brand-link { display: flex; align-items: center; }
.brand-wordmark { height: 36px; width: auto; }

.site-nav { display: none; gap: 32px; }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a {
  color: var(--a360-carbon);
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover { color: var(--a360-blue); text-decoration: none; }

.lang-switch {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid rgba(10,26,58,0.12);
  border-radius: var(--a360-radius-full);
  color: var(--a360-carbon);
  white-space: nowrap;
}
.lang-switch:hover {
  background: var(--a360-cloud);
  border-color: var(--a360-blue);
  color: var(--a360-blue);
  text-decoration: none;
}

/* --- HERO ----------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #0A1A3A 0%, #0F2B6E 60%, #1A3FA1 100%);
  color: var(--a360-white);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 880px; height: 880px;
  border: 2px solid rgba(0,212,255,0.10);
  right: -340px; top: -340px;
}
.hero::after {
  width: 620px; height: 620px;
  border: 1px solid rgba(0,212,255,0.07);
  right: -210px; top: -210px;
}
[dir="rtl"] .hero::before { right: auto; left: -340px; }
[dir="rtl"] .hero::after  { right: auto; left: -210px; }

.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: var(--a360-white); max-width: 18ch; }
.hero .lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin: 24px 0 40px;
  line-height: 1.5;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--a360-blue);
  color: var(--a360-white);
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--a360-radius-full);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 16px rgba(21,81,245,0.40);
}
.cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(21,81,245,0.55);
}

/* --- INTRO CARDS ---------------------------------------------------- */
.intro h2 { max-width: 22ch; margin-bottom: 48px; }
.cards {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.card {
  padding: 32px;
  background: var(--a360-cloud);
  border-radius: var(--a360-radius-xl);
  border: 1px solid rgba(10,26,58,0.04);
}
.card h3 { color: var(--a360-midnight); margin-bottom: 12px; }
.card p { margin: 0; color: var(--a360-steel); font-size: 15px; }

/* --- PLATFORM PILLARS ----------------------------------------------- */
.platform { background: var(--a360-cloud); }
.platform h2 { margin-bottom: 48px; }
.pillars {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  padding: 28px;
  background: var(--a360-white);
  border-radius: var(--a360-radius-xl);
  border: 1px solid rgba(10,26,58,0.06);
  display: flex; flex-direction: column;
}
.pillar-tag {
  display: inline-block; width: max-content;
  padding: 4px 10px;
  background: var(--a360-blue);
  color: var(--a360-white);
  font-family: var(--a360-font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--a360-radius-sm);
  margin-bottom: 14px;
}
[dir="rtl"] .pillar-tag {
  font-family: var(--a360-font-arabic);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}
.pillar h3 { margin-bottom: 6px; }
.pillar > p {
  color: var(--a360-steel);
  font-size: 14px;
  margin: 0 0 20px;
}
.pillar ul li {
  padding: 12px 0;
  border-top: 1px solid rgba(10,26,58,0.06);
  font-size: 14px;
  color: var(--a360-carbon);
  display: flex; flex-direction: column;
  gap: 2px;
}
.pillar ul li:first-child { border-top: none; padding-top: 4px; }
.pillar ul li strong {
  font-family: var(--a360-font-display);
  font-weight: 600;
  color: var(--a360-midnight);
  letter-spacing: 0;
}
[dir="rtl"] .pillar ul li strong { font-family: var(--a360-font-arabic); }
.pillar ul li span { color: var(--a360-steel); font-size: 13px; }

/* --- WHY ------------------------------------------------------------ */
.why h2 { margin-bottom: 48px; }
.reasons {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason {
  padding-top: 24px;
  border-top: 4px solid var(--a360-surge);
}
.reason h3 { margin-bottom: 12px; }
.reason p { color: var(--a360-steel); margin: 0; }

/* --- CONTACT -------------------------------------------------------- */
.contact {
  background: var(--a360-midnight);
  color: var(--a360-white);
  text-align: center;
}
.contact h2 { color: var(--a360-white); margin-bottom: 16px; }
.contact p {
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  max-width: 52ch;
  margin: 0 auto 32px;
}
.contact .cta {
  background: var(--a360-surge);
  color: var(--a360-midnight);
  box-shadow: 0 4px 16px rgba(0,212,255,0.40);
}
.contact .cta:hover { box-shadow: 0 8px 24px rgba(0,212,255,0.55); }

/* --- FOOTER --------------------------------------------------------- */
.site-footer {
  background: var(--a360-midnight);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer p { margin: 0; }
.site-footer .footer-mark { height: 32px; width: auto; opacity: 0.9; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--a360-white); text-decoration: none; }

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