/* ============================================
   Somy Landing Page — Layout & Components
   Built on top of somy-brand.css (tokens + base)
   ============================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ========== Container ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========== Eyebrow ========== */
.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--somy-gold);
  margin-bottom: var(--space-md);
  position: relative;
  padding-inline-end: var(--space-md);
}
.eyebrow::after {
  content: "";
  position: absolute;
  inset-block: 50% auto auto;
  inset-inline-end: 0;
  width: 24px;
  height: 1px;
  background: var(--somy-gold);
  opacity: .6;
  transform: translateY(-50%);
}
.eyebrow-light { color: var(--somy-gold); }

/* ========== Section heads ========== */
.section { padding: var(--space-3xl) 0; }
.section-head {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-head .eyebrow { padding-inline-end: 0; }
.section-head .eyebrow::after { display: none; }
.section-title {
  font-family: var(--font-arabic);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--somy-navy);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}
.accent { color: var(--somy-gold); }

/* ========== Custom focus ring ========== */
:focus-visible {
  outline: 2px solid var(--somy-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 224, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(27, 40, 69, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-md);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--somy-navy);
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nav-pill {
  display: inline-block;
  background: var(--somy-gold);
  color: var(--somy-navy);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 0% 0%, rgba(201, 169, 97, 0.10), transparent 60%),
    radial-gradient(50% 50% at 100% 20%, rgba(27, 40, 69, 0.05), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-title {
  font-family: var(--font-arabic);
  font-size: clamp(36px, 6.4vw, 72px);
  font-weight: 800;
  color: var(--somy-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-lg);
}
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--somy-navy);
  opacity: .82;
  max-width: 56ch;
  margin: 0 0 var(--space-xl);
}
.hero-note {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--somy-medium-gray);
}

/* ========== Hero visual ========== */
.hero-visual {
  position: relative;
  height: 360px;
  display: none;
}
.hero-card {
  position: absolute;
  background: var(--somy-white);
  border: 1px solid var(--somy-light-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  width: 320px;
  font-family: var(--font-arabic);
}
.hero-card-back {
  inset-inline-start: 0;
  top: 24px;
  transform: rotate(-4deg);
  opacity: .85;
}
.hero-card-front {
  inset-inline-end: 0;
  bottom: 0;
  transform: rotate(2deg);
  z-index: 2;
  border-color: rgba(201, 169, 97, 0.4);
}
.hero-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.hero-card-label {
  font-size: var(--text-sm);
  color: var(--somy-medium-gray);
  font-weight: 600;
}
.hero-card-tag {
  background: var(--somy-success);
  color: var(--somy-white);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic);
}
.hero-card-tag.tag-warn {
  background: var(--somy-warning);
}
.hero-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.hero-old {
  font-size: var(--text-base);
  color: var(--somy-medium-gray);
  text-decoration: line-through;
}
.hero-new {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--somy-navy);
  letter-spacing: -0.01em;
}
.hero-card-bar {
  height: 6px;
  background: var(--somy-light-gray);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.hero-card-bar > span {
  display: block;
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, var(--somy-gold), #e3c889);
  border-radius: var(--radius-full);
}
.hero-card-foot {
  font-size: var(--text-sm);
  color: var(--somy-navy);
  font-weight: 600;
}

/* ============================================
   STORE BADGES
   ============================================ */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--somy-navy);
  color: var(--somy-cream);
  border: 1px solid var(--somy-navy);
  border-radius: var(--radius-lg);
  padding: 12px 22px;
  min-width: 200px;
  cursor: not-allowed;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.badge-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: start;
}
.badge-small {
  font-family: var(--font-arabic);
  font-size: 11px;
  font-weight: 500;
  opacity: .8;
  margin-bottom: 2px;
}
.badge-big {
  font-family: var(--font-latin);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.badge-soon {
  position: absolute;
  top: -10px;
  inset-inline-start: -10px;
  background: var(--somy-gold);
  color: var(--somy-navy);
  font-family: var(--font-arabic);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
  transform: rotate(-6deg);
}
.store-badge-light {
  background: var(--somy-cream);
  color: var(--somy-navy);
  border-color: var(--somy-cream);
}
.store-badges-lg .store-badge {
  padding: 16px 26px;
  min-width: 220px;
}
.store-badges-lg .badge-icon { width: 32px; height: 32px; }
.store-badges-lg .badge-big { font-size: 19px; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how { background: var(--somy-cream); }
.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}
.how-card {
  position: relative;
  background: var(--somy-white);
  border: 1px solid var(--somy-light-gray);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.how-card:hover {
  border-color: rgba(201, 169, 97, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.how-num {
  position: absolute;
  top: var(--space-lg);
  inset-inline-end: var(--space-lg);
  font-family: var(--font-arabic);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--somy-gold);
  opacity: .35;
  line-height: 1;
}
.how-icon {
  width: 36px;
  height: 36px;
  color: var(--somy-navy);
  margin-bottom: var(--space-md);
  padding: 8px;
  background: var(--somy-cream);
  border-radius: var(--radius-md);
  box-sizing: content-box;
}
.how-title {
  font-family: var(--font-arabic);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--somy-navy);
  margin: 0 0 var(--space-sm);
}
.how-desc {
  font-size: var(--text-base);
  color: var(--somy-navy);
  opacity: .75;
  margin: 0;
  line-height: 1.7;
}

/* ============================================
   WHY SOMY
   ============================================ */
.why { background: var(--somy-white); }
.why-inner {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}
.why-copy { max-width: 520px; }
.why-lead {
  font-size: var(--text-lg);
  color: var(--somy-navy);
  opacity: .78;
  line-height: 1.7;
  margin: var(--space-md) 0 0;
}
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}
.why-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.why-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--somy-gold);
  color: var(--somy-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.why-check svg { width: 18px; height: 18px; }
.why-title {
  font-family: var(--font-arabic);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--somy-navy);
  margin: 0 0 4px;
}
.why-desc {
  font-size: var(--text-base);
  color: var(--somy-navy);
  opacity: .72;
  margin: 0;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background: var(--somy-navy);
  color: var(--somy-cream);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgba(201, 169, 97, 0.18), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(201, 169, 97, 0.10), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-arabic);
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800;
  color: var(--somy-cream);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
}
.cta-sub {
  font-size: var(--text-lg);
  color: var(--somy-light-gray);
  opacity: .85;
  margin: 0 0 var(--space-xl);
}
.cta .store-badges {
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--somy-cream);
  border-top: 1px solid rgba(27, 40, 69, 0.08);
  padding: var(--space-xl) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.footer-brand .brand-logo { width: 36px; height: 36px; }
.footer-name {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--somy-navy);
}
.footer-tag {
  font-size: var(--text-sm);
  color: var(--somy-medium-gray);
}
.footer-meta {
  font-size: var(--text-sm);
  color: var(--somy-medium-gray);
}

/* ============================================
   RESPONSIVE — desktop ≥ 768px
   ============================================ */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-3xl);
  }
  .hero-visual { display: block; }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .why-inner { grid-template-columns: 0.8fr 1fr; gap: var(--space-3xl); }
  .why-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-2xl); }
  .hero { padding: var(--space-3xl) 0; }
  .hero-visual { height: 440px; }
  .hero-card { width: 360px; }
}

/* Small mobile tweaks */
@media (max-width: 480px) {
  .store-badge { min-width: 0; flex: 1 1 calc(50% - var(--space-md)); padding: 10px 14px; }
  .store-badge .badge-text { font-size: 14px; }
  .badge-big { font-size: 15px; }
  .nav-inner { padding-block: var(--space-sm); }
  .brand-name { font-size: var(--text-lg); }
}

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