/* ─────────────────────────────────────────────────────────────────
   OplSmart — fonts
   ───────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Maison Neue Extended';
  src: url('../assets/fonts/MaisonNeueExtended-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Maison Neue Extended';
  src: url('../assets/fonts/MaisonNeueExtended-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Maison Neue Extended';
  src: url('../assets/fonts/MaisonNeueExtended-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Maison Neue Extended';
  src: url('../assets/fonts/MaisonNeueExtended-Semi.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Maison Neue Extended';
  src: url('../assets/fonts/MaisonNeueExtended-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Retro Signature';
  src: url('../assets/fonts/RetroSignature.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ─────────────────────────────────────────────────────────────────
   OplSmart — base
   ───────────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --accent: #fecf0a;
  --white: #ffffff;
  --font: 'Maison Neue Extended', 'Archivo', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1530px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 195px);
}

/* ─────────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 56vw, 1087px);
  background: var(--bg);
  overflow: hidden;
}
/* Bottom fade — transparent → #000 to blend into next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 18vw, 280px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 100%);
  pointer-events: none;
  z-index: 5;
}

/* Background texture (dotted + interior) full-bleed */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Car dashboard photo — center-right, behind copy */
.hero-car {
  position: absolute;
  z-index: 1;
  top: clamp(220px, 37vw, 404px);
  left: 50%;
  width: clamp(620px, 70vw, 1320px);
  height: auto;
  transform: translateX(-42%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 120% at 60% 40%, #000 55%, transparent 92%);
          mask-image: radial-gradient(120% 120% at 60% 40%, #000 55%, transparent 92%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  padding-top: clamp(28px, 4.2vw, 72px);
  padding-bottom: clamp(48px, 8vw, 140px);
}

/* ── Header ── */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-logo img { height: clamp(34px, 3vw, 59px); width: auto; }

.hero-header__right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 44px);
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-social img { height: 20px; width: auto; opacity: .9; transition: opacity .2s; }
.hero-social a:hover img { opacity: 1; }
.hero-social__sep { color: rgba(255,255,255,.4); }

/* WhatsApp pill */
.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 80px;
  padding: 0 28px;
  border: 2px solid var(--accent);
  border-radius: 40px;
  background: transparent;
  transition: background .25s ease;
}
.wa-pill:hover { background: rgba(254,207,10,.08); }
.wa-pill__icon { flex: 0 0 auto; display: grid; place-items: center; }
.wa-pill__icon img { width: 44px; height: 44px; }
.wa-pill__text { display: flex; flex-direction: column; line-height: 1.05; }
.wa-pill__top { font-size: clamp(14px, 1.1vw, 20px); font-weight: 400; color: var(--accent); }
.wa-pill__num { font-size: clamp(20px, 1.7vw, 32px); font-weight: 700; color: var(--white); }

/* ── Copy ── */
.hero-copy {
  margin-top: clamp(40px, 7vw, 108px);
  max-width: 1100px;
}
.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero-title__thin { font-size: clamp(22px, 2.6vw, 36px); font-weight: 400; }
.hero-title__bold { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; }

/* Last bold line ("Modülü") shares a row with the description */
.hero-lastrow {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 2.4vw, 48px);
  flex-wrap: wrap;
}
.hero-title__last { flex: 0 0 auto; line-height: 1.04; }
.hero-desc {
  flex: 1 1 320px;
  max-width: 720px;
  margin-top: clamp(8px, 1vw, 16px);
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--white);
}
.hero-desc strong { font-weight: 700; color: var(--accent); }

/* Play button */
.hero-play {
  margin-top: clamp(40px, 6vw, 96px);
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.hero-play__circle {
  flex: 0 0 auto;
  width: clamp(72px, 7vw, 98px);
  height: clamp(72px, 7vw, 98px);
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: rgba(254,207,10,.3);
  display: grid;
  place-items: center;
  transition: background .25s ease, transform .25s ease;
}
.hero-play:hover .hero-play__circle { background: rgba(254,207,10,.45); transform: scale(1.05); }
.hero-play__circle img { width: 30px; height: auto; }
.hero-play__label {
  display: flex;
  flex-direction: column;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 700;
  line-height: 1.1;
}
.hero-play__accent { color: var(--accent); }

/* Mobile WhatsApp pill (in hero body) — hidden on desktop */
.hero-wa { display: none; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .hero-header { gap: 18px; }
  .hero-car { transform: translateX(-40%); opacity: .85; }
}
@media (max-width: 768px) {
  /* Header: logo only, centered. Social + whatsapp pill move out. */
  .hero-header { justify-content: center; }
  .hero-header__right { display: none; }

  /* Centered hero copy */
  .hero-inner { text-align: center; }
  .hero-copy { margin: clamp(56px, 16vw, 100px) auto 0; max-width: 560px; }
  .hero-title { align-items: center; row-gap: 0; }
  .hero-lastrow { flex-direction: column; align-items: center; gap: 0; }
  .hero-desc { max-width: 100%; margin-inline: auto; margin-top: 30px; }
  .hero-play { justify-content: center; margin-top: clamp(28px, 7vw, 48px); }

  /* Mobile whatsapp pill — full width below play */
  .hero-wa {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: clamp(20px, 5vw, 32px);
  }

  /* Car dashboard — full-width band. Both top+bottom can't both drive
     position; use top alone to place it (bottom is ignored when top is set). */
  .hero-car {
    top: clamp(340px, 50vw, 520px);
    bottom: auto;
    left: 50%;
    width: 150vw;
    transform: translateX(-50%);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Showcase — console + screen slider
   ───────────────────────────────────────────────────────────────── */
.section--showcase {
  position: relative;
  padding: clamp(48px, 7vw, 110px) 0 0;
  background: #000;
}
.section--showcase .container { padding-inline: clamp(20px, 2vw, 195px); }
.showcase-grid {
  display: grid;
  grid-template-columns: 360px 1fr 360px;
  gap: clamp(20px, 2vw, 40px);
  align-items: start;
}
.sc-col { display: flex; flex-direction: column; gap: clamp(18px, 1.8vw, 32px); }

/* Cards — gray default, yellow on hover */
.sc-card {
  min-height: var(--min-h, auto);
  border-radius: 40px;
  padding: clamp(22px, 1.8vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #1c1c1c;
  transition: background .3s ease;
}
.sc-card--dark   { background: #1c1c1c; }
.sc-card__title {
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.02;
  color: var(--accent);
  transition: color .3s ease;
}
.sc-card__body {
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  transition: color .3s ease;
}
.sc-models { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sc-models li { font-size: clamp(16px, 1.5vw, 24px); font-weight: 400; color: #fff; transition: color .3s ease; }
.sc-models strong { font-weight: 700; }

/* Hover → yellow card, dark text */
.sc-card:hover { background: var(--accent); }
.sc-card:hover .sc-card__title,
.sc-card:hover .sc-card__body,
.sc-card:hover .sc-models li { color: #000; }

/* Center stage */
.sc-stage { display: flex; flex-direction: column; align-items: center; }
.sc-head { text-align: center; }
.sc-head__title { font-size: clamp(26px, 2.4vw, 36px); font-weight: 700; color: #fff; }
.sc-head__sub   { margin-top: 4px; font-size: clamp(15px, 1.3vw, 20px); font-weight: 400; color: #fff; }

.sc-badges {
  display: flex;
  gap: clamp(16px, 1.6vw, 32px);
  margin-top: clamp(18px, 2vw, 34px);
  flex-wrap: wrap;
  justify-content: center;
}
.sc-badges img { height: clamp(40px, 3.4vw, 59px); width: auto; }

/* Console + screen */
.sc-console {
  position: relative;
  width: 100%;
  max-width: 732px;
  margin-top: clamp(20px, 2vw, 36px);
  aspect-ratio: 732 / 633;
}
.sc-console__img { width: 100%; height: 100%; object-fit: contain; }

.sc-screen {
  position: absolute;
  left: 29.92%;
  top: 21.01%;
  width: 38.93%;
  height: 22.43%;
  overflow: hidden;
  border-radius: 2px;
}
.sc-screen__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.sc-screen__slide.is-active { opacity: 1; }

/* Arrows */
.sc-arrow {
  position: absolute;
  top: 22%;
  width: clamp(64px, 6.5vw, 80px);
  height: clamp(64px, 6.5vw, 80px);
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform .2s ease, filter .2s ease;
  z-index: 3;
}
.sc-arrow:hover { transform: scale(1.06); filter: brightness(1.05); }
.sc-arrow img { width: 38%; height: auto; }
.sc-arrow--prev { left: 0; }
.sc-arrow--prev img { transform: rotate(180deg); }
.sc-arrow--next { right: 0; }

/* Product box overlapping console bottom */
.sc-product {
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 65%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.sc-product__box    { width: 70%; height: auto; }
.sc-product__module { width: 56%; height: auto; margin-left: -18%; margin-bottom: 4%; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .sc-stage { grid-column: 1 / -1; order: -1; margin-bottom: 12px; }
  .sc-console { max-width: 560px; }
}
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr; }
  /* Arrows vertically centered on the screen, at console edges */
  .sc-arrow { top: 22%; bottom: auto; width: 56px; height: 56px; }
  .sc-arrow--prev { left: 0; }
  .sc-arrow--next { right: 0; }
  .sc-product { bottom: -20%; width: 72%; }
  /* Push cards down so the overflowing product box clears the first card */
  .sc-col--left { margin-top: 100px; }
  /* Cards hug their content on mobile (drop fixed min-heights) */
  .sc-card { min-height: auto; }
}

/* Supported cars strip */
.sc-cars { margin-top: clamp(80px, 11vw, 180px); }
.sc-cars__wrap {
  position: relative;
  width: 100%;
  max-width: 1614px;
  margin-inline: auto;
}
.sc-cars__img { width: 100%; height: auto; display: block; }
.sc-cars__label {
  position: absolute;
  top: 10%;
  transform: translateX(-50%);
  font-size: clamp(18px, 2.4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 640px) {
  .sc-cars__label { font-size: 11px; top: 6%; }
}

/* ─────────────────────────────────────────────────────────────────
   Note — white section, store image overflows upward
   ───────────────────────────────────────────────────────────────── */
.section--note {
  position: relative;
  background: #fff;
  color: #262626;
  padding: clamp(28px, 3.5vw, 56px) 0 clamp(24px, 2.5vw, 40px);
  overflow: visible;
}
.note-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: stretch;
}

/* Right column — store image bleeds up into black section above */
.note-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}
.note-store {
  width: 100%;
  height: auto;
  margin-top: -150px;
  pointer-events: none;
  transform: scale(1.2);
  transform-origin: center top;
}
.note-title {
  font-family: 'Retro Signature', 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 90px);
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-bottom: clamp(20px, 2.4vw, 36px);
}
.note-left p {
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: clamp(16px, 1.8vw, 28px);
}
.note-left p:last-child { margin-bottom: 0; }
.note-small { font-size: clamp(12px, 1vw, 14px); }

/* Bottom bar (right column): follow + whatsapp side by side under the store image */
.note-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 3vw, 56px);
  flex-wrap: nowrap;
  margin-top: clamp(28px, 3vw, 56px);
}
.note-follow { display: flex; align-items: center; gap: 20px; }
.note-social { display: flex; align-items: center; gap: 10px; }
.note-social img { height: 22px; width: auto; }
.note-social__sep { color: var(--accent); font-weight: 700; }
.note-follow__text { font-size: clamp(15px, 1.3vw, 20px); font-weight: 400; line-height: 1.3; color: #000; }
.note-follow__text strong { font-size: clamp(22px, 1.7vw, 32px); font-weight: 700; }

/* WhatsApp solid (yellow fill, dark text) */
.wa-pill--solid { background: var(--accent); border-color: var(--accent); flex-shrink: 0; }
.wa-pill--solid:hover { background: #ffd927; }
.wa-pill__top--dark { color: #000; }
.wa-pill__num--dark { color: #000; }
.wa-pill__top, .wa-pill__num { white-space: nowrap; }
.note-follow { flex-shrink: 0; }

@media (max-width: 1023px) {
  .note-inner { grid-template-columns: 1fr; }
  .note-left { max-width: none; order: 2; }
  .note-right { order: 1; }
  .note-store { margin-top: 0; max-width: 720px; transform: none; }
  .note-title { font-size: 50px; }
}
@media (max-width: 640px) {
  .note-bar { flex-direction: column; align-items: flex-start; }
  .wa-pill--solid { width: 100%; justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────── */
.footer-main { background: #262626; padding: clamp(36px, 4.5vw, 64px) 0; }
.footer-main .container { padding-inline: clamp(20px, 2vw, 195px); }
.footer-main__row {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  flex-wrap: wrap;
}
.footer-logo { flex: 0 0 auto; }
.footer-logo img { height: clamp(40px, 3.4vw, 59px); width: auto; }
.footer-text {
  flex: 1 1 480px;
  max-width: 1008px;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}
.footer-text strong { font-weight: 700; }

.footer-copy { background: #010101; padding: clamp(18px, 2vw, 26px) 0; }
.footer-copy p {
  text-align: center;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 400;
  color: #fff;
}
.footer-copy span { color: #4e4e4e; }

/* ── Mobile: footer + showcase centering ── */
@media (max-width: 768px) {
  .footer-main__row { flex-direction: column; align-items: center; text-align: center; gap: clamp(20px,5vw,32px); }
  .footer-text { flex: 1 1 auto; }
  .sc-cars__label { font-size: 11px; }
}

/* ─────────────────────────────────────────────────────────────────
   Scroll reveal
   ───────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal.is-in {
  animation: revealIn .7s cubic-bezier(.22,.61,.36,1) var(--reveal-delay, 0ms) both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.is-in { animation: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Loading screen
   ───────────────────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.loader__pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .35;
}
.loader__logo {
  position: relative;
  z-index: 1;
  width: clamp(180px, 26vw, 360px);
  height: auto;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
