/* DriveSense — drivesense.onecodeapp.com
   Tasarım sistemi: "Drive Sense Apple Görselleri" .dc.html şablonlarından
   çıkarıldı. Inline stiller sınıflara taşındı, responsive breakpoint eklendi
   (orijinal şablonlarda sabit grid vardı, mobilde bozuluyordu). */

:root {
  --bg: #05080f;
  --bg-alt: #070c17;
  --fg: #f3f7fc;
  --fg-2: #c2ccdb;
  --muted: #9aa9c1;
  --muted-2: #8b9ab2;
  --faint: #7c8aa3;
  --faintest: #5b6b85;
  --cyan: #27d6ef;
  --cyan-hi: #4fe0f4;
  --on-cyan: #04121a;
  --amber: #f0a63a;
  --line: rgba(255, 255, 255, 0.07);
  --line-soft: rgba(255, 255, 255, 0.06);
  --card: linear-gradient(180deg, rgba(17, 26, 44, 0.55), rgba(9, 14, 24, 0.35));
  --sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Grotesk', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(39, 214, 239, 0.28); }

@keyframes dsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

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

/* ============ Layout ============ */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 28px; }
.wrap-mid { max-width: 1120px; margin: 0 auto; padding-inline: 28px; }
.wrap-sm { max-width: 900px; margin: 0 auto; padding-inline: 28px; }
.wrap-xs { max-width: 820px; margin: 0 auto; padding-inline: 28px; }

.section-alt { border-top: 1px solid var(--line-soft); background: var(--bg-alt); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 8, 15, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(39, 214, 239, 0.85);
  animation: dsPulse 2.6s ease-in-out infinite;
  flex: none;
}
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; color: #aebacd; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.is-active { color: var(--cyan); }

.btn-store-sm {
  display: flex; align-items: center; gap: 9px;
  background: var(--cyan); color: var(--on-cyan);
  font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 12px;
  box-shadow: 0 8px 26px rgba(39, 214, 239, 0.28);
  flex: none;
}
.btn-store-sm:hover { background: var(--cyan-hi); }

/* ============ Typography ============ */
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
}
.kicker-amber { color: var(--amber); }

.h-hero {
  margin: 26px 0 0;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -2px;
  text-wrap: balance;
}
.h-page {
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.6px;
  text-wrap: balance;
}
.h-sec {
  margin: 16px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.h-sub {
  margin: 16px 0 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  text-wrap: balance;
}
.lede {
  margin: 20px 0 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.lede-narrow { max-width: 560px; }
.center { text-align: center; }
.center .lede-narrow { margin-inline: auto; }

/* ============ Buttons ============ */
.btn-store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fg); color: var(--bg);
  padding: 14px 22px; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.btn-store:hover { background: #fff; }
.btn-store-top { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; }
.btn-store-main { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  font-size: 15px; font-weight: 500; color: #cdd8e8;
}
.btn-ghost:hover { border-color: rgba(39, 214, 239, 0.5); }

.btn-cyan {
  display: inline-block;
  background: var(--cyan); color: var(--on-cyan);
  font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 13px;
}
.btn-cyan:hover { background: var(--cyan-hi); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(39, 214, 239, 0.32);
  border-radius: 100px;
  background: rgba(39, 214, 239, 0.06);
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 2.5px;
  color: var(--cyan); text-transform: uppercase;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  animation: dsPulse 1.8s ease-in-out infinite;
  flex: none;
}

/* ============ Cards ============ */
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: var(--card);
}
.card-lg { border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.card-hover:hover { border-color: rgba(39, 214, 239, 0.32); }

.glyph {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(39, 214, 239, 0.1);
  border: 1px solid rgba(39, 214, 239, 0.22);
  color: var(--cyan);
  font-size: 20px;
  flex: none;
}
.glyph-sm { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }

.card h3 { margin: 20px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.card p { margin: 11px 0 0; font-size: 15px; line-height: 1.55; color: #93a2ba; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grid-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-block: 76px 40px;
}
.glow {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, rgba(39, 214, 239, 0.16), rgba(39, 214, 239, 0) 68%);
}
.glow-hero { left: -160px; top: 80px; width: 520px; height: 520px; }
.glow-page {
  left: 50%; top: 0; transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(circle, rgba(39, 214, 239, 0.12), transparent 66%);
}
.z2 { position: relative; z-index: 2; }

.stats { margin-top: 38px; display: flex; gap: 30px; flex-wrap: wrap; }
.stat-num { font-size: 30px; font-weight: 700; letter-spacing: -1px; color: var(--cyan); }
.stat-label { font-size: 13px; color: var(--faint); margin-top: 2px; }
.stat-sep { width: 1px; background: rgba(255, 255, 255, 0.08); }

.phone-col { position: relative; z-index: 2; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 315px; max-width: 82vw;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #1a2436, #0a0f1a);
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone-sm { width: 290px; border-radius: 42px; padding: 10px; }
.phone-notch {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: var(--bg); border-radius: 16px; z-index: 3;
}
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: var(--bg); }
.phone-sm .phone-screen { border-radius: 33px; }
.phone-screen img { width: 100%; display: block; }

.badge-float {
  position: absolute; bottom: -18px; right: -6px; z-index: 4;
  background: rgba(11, 20, 36, 0.9);
  border: 1px solid rgba(39, 214, 239, 0.28);
  border-radius: 14px;
  padding: 12px 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.badge-label { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--faint); }

/* ============ Spec strip ============ */
.spec-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.spec-strip-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 22px 28px;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 1px;
  color: #6c7a92; text-transform: uppercase;
}
.spec-strip-inner .dot { color: var(--cyan); }

/* ============ Split showcase ============ */
.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
  padding-block: 70px;
}
.split-rev { grid-template-columns: 1.08fr 0.92fr; }
.shot-col { position: relative; display: flex; justify-content: center; }
.shot-glow {
  position: absolute; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(39, 214, 239, 0.14), transparent 66%);
}
.shot-glow-amber { background: radial-gradient(circle, rgba(240, 166, 58, 0.14), transparent 66%); }

.bullets { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.bullet { display: flex; gap: 13px; align-items: flex-start; }
.bullet-mark { color: var(--amber); margin-top: 1px; flex: none; }
.bullet-title { font-weight: 600; font-size: 15px; }
.bullet-body { font-size: 14px; color: var(--muted-2); }

.callout {
  margin-top: 28px;
  border: 1px solid rgba(39, 214, 239, 0.22);
  border-radius: 16px;
  padding: 20px;
  background: rgba(39, 214, 239, 0.05);
}
.callout-head { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 1px; }

/* ============ Steps ============ */
.step-num { font-family: var(--mono); font-size: 44px; font-weight: 700; color: rgba(39, 214, 239, 0.28); letter-spacing: -2px; }
.card .step-num + h3 { margin-top: 10px; }

/* ============ Feature rows (features page) ============ */
.row-head { display: flex; align-items: center; gap: 14px; }
.row-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; }
.row-title { margin: 4px 0 0; font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.6px; }
.row-body { margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 720px; }
.row-items { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.row-item {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(5, 8, 15, 0.4);
}
.row-item-mark { color: var(--cyan); font-size: 14px; margin-top: 2px; flex: none; }
.row-item-name { font-size: 14px; font-weight: 600; }
.row-item-desc { font-size: 13px; color: var(--muted-2); margin-top: 2px; line-height: 1.45; }

.param {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  font-size: 13.5px; color: var(--fg-2);
  font-family: var(--mono);
}
.param-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }

/* ============ HUD banner ============ */
.hud {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.hud img { width: 100%; display: block; object-fit: cover; max-height: 560px; object-position: center 30%; }
.hud-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.4) 55%, transparent 100%); }
.hud-copy {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 6vw, 72px);
  max-width: 560px;
}

/* ============ CTA ============ */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(39, 214, 239, 0.25);
  background: linear-gradient(140deg, #0b1626, #080d18);
  padding: clamp(36px, 6vw, 72px);
  text-align: center;
}
.cta-glow {
  position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(39, 214, 239, 0.16), transparent 62%);
  pointer-events: none;
}

/* ============ Legal pages ============ */
.legal-section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0; font-size: clamp(19px, 2.4vw, 22px); font-weight: 700; letter-spacing: -0.4px; }
.legal-section p,
.legal-section li { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.legal-section p { margin: 14px 0 0; }
.legal-section ul { margin: 14px 0 0; padding-left: 20px; }
.legal-section li { margin-top: 8px; }
.legal-section li strong,
.legal-section p strong { color: var(--fg-2); font-weight: 600; }
.legal-section a { color: var(--cyan); }
.legal-section a:hover { text-decoration: underline; }
.legal-section h3 {
  margin: 22px 0 0;
  font-size: 16px; font-weight: 600; color: var(--fg-2);
  letter-spacing: -0.2px;
}
.legal-meta { margin: 34px 0 0; font-size: 13px; color: var(--faintest); }
.legal-meta a { color: var(--cyan); }

.table-wrap { margin-top: 16px; overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
table.data th,
table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
table.data th {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
  white-space: nowrap;
}
table.data td { color: var(--muted); }
table.data td:first-child { color: var(--fg-2); font-weight: 600; }

.notice {
  margin-top: 18px;
  border: 1px solid rgba(240, 166, 58, 0.28);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(240, 166, 58, 0.06);
}
.notice p { margin: 0; color: #d9c2a0; font-size: 15px; line-height: 1.6; }
.notice p + p { margin-top: 10px; }
.notice-title { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--amber); text-transform: uppercase; }

/* ============ FAQ / contact cards ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  background: rgba(9, 14, 24, 0.4);
}
.faq-q { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; color: #eef3f9; }
.faq-a { margin: 11px 0 0; font-size: 15px; line-height: 1.6; color: #93a2ba; }
.faq-a a { color: var(--cyan); }

.contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: var(--card);
  display: block;
}
.contact-card:hover { border-color: rgba(39, 214, 239, 0.35); }
.contact-title { margin-top: 16px; font-size: 17px; font-weight: 600; }
.contact-body { margin-top: 6px; font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.contact-action { margin-top: 12px; font-size: 14px; color: var(--cyan); font-weight: 600; word-break: break-word; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-alt); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 28px;
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
}
.footer-blurb { max-width: 300px; margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--faint); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-head { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--faintest); text-transform: uppercase; }
.footer-col a { font-size: 14px; color: #aebacd; }
.footer-col a:hover { color: var(--cyan); }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-bar-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 28px;
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between;
  font-size: 13px; color: var(--faintest);
}
.back-link { margin-top: 40px; font-size: 13px; color: var(--faintest); }
.back-link a:hover { color: var(--cyan); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero, .split, .split-rev { grid-template-columns: 1fr; gap: 44px; }
  .split .shot-col, .split-rev .shot-col { order: 2; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .hud img { max-height: 460px; }
  .hud-scrim { background: linear-gradient(180deg, rgba(5, 8, 15, 0.5) 0%, rgba(5, 8, 15, 0.92) 70%); }
  .hud-copy { justify-content: flex-end; padding-bottom: 34px; max-width: none; }
}

@media (max-width: 720px) {
  .wrap, .wrap-mid, .wrap-sm, .wrap-xs { padding-inline: 20px; }
  .nav-inner { padding: 14px 20px; flex-wrap: wrap; gap: 12px 18px; }
  .nav-links { order: 3; width: 100%; gap: 22px; font-size: 14px; overflow-x: auto; }
  .btn-store-sm { padding: 9px 14px; font-size: 13px; }
  .glow-hero { left: -40%; width: 100%; height: 380px; }
  .stats { gap: 20px; }
  .stat-sep { display: none; }
  .footer-cols { gap: 32px; }
  .badge-float { right: 0; bottom: -14px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .stats { flex-direction: column; gap: 14px; }
}
