:root {
  --orange: #ff7a1a;
  --orange-2: #f26b0c;
  --bg: #160c07;
  --text: #ffffff;
  --text-2: #d9cfc8;
  --text-3: #a99d95;
  --card-bg: rgba(22, 13, 9, 0.78);
  --card-border: rgba(255, 140, 70, 0.22);
  --input-bg: rgba(44, 36, 32, 0.88);
  --input-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; height: 100%; }

/* Sayfa her zaman tek ekran: içerik ortalanır, js/main.js ekrana sığacak şekilde ölçekler */
body {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body.can-scroll { overflow-y: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Arka plan ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg) url("../assets/bg.png") center 38% / cover no-repeat;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 50% at 50% 45%, rgba(14, 8, 5, 0.72) 0%, rgba(14, 8, 5, 0.3) 60%, transparent 100%),
    linear-gradient(180deg, rgba(10, 5, 3, 0.6) 0%, rgba(10, 5, 3, 0.08) 28%, rgba(22, 12, 7, 0) 52%, rgba(22, 12, 7, 0.82) 72%, rgba(22, 12, 7, 0.96) 84%, var(--bg) 100%);
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: auto;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Logo ---------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-speed {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-right: 10px;
  margin-top: 4px;
}
.logo-speed i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--orange);
}
.logo-speed i:nth-child(1) { width: 28px; }
.logo-speed i:nth-child(2) { width: 40px; }
.logo-speed i:nth-child(3) { width: 22px; }
.logo-text {
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  font-size: 66px;
  letter-spacing: -1px;
  color: #fff;
}
.logo-cart {
  height: 88px;
  width: auto;
  margin-left: 2px;
  margin-top: 7px;
}
.logo-sub {
  margin-top: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.62em;
  padding-left: 0.62em;
  color: #b9b0aa;
}

/* ---------- Başlık ---------- */
.hero {
  text-align: center;
  margin-top: 14px;
}
.hero h1 {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.accent { color: var(--orange); }
.hero p {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Kart ---------- */
.card {
  width: 100%;
  max-width: 440px;
  margin-top: 16px;
  padding: 22px 28px 22px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card h2 {
  font-size: 21px;
  font-weight: 600;
}
.card-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}

.form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
}
.field-icon {
  position: absolute;
  left: 15px;
  width: 21px;
  height: 21px;
  color: #bdb4ae;
  pointer-events: none;
}
.field input {
  width: 100%;
  height: 46px;
  padding: 0 48px 0 50px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #c4bbb5; }
.field input:focus {
  border-color: rgba(255, 122, 26, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
  background: rgba(50, 40, 35, 0.92);
}
.field input.invalid { border-color: #e5484d; }
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px #2c2420 inset;
  caret-color: var(--text);
}

.toggle-pass {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 6px;
  color: #d7cfc9;
}
.toggle-pass:hover { color: #fff; }
.toggle-pass svg { width: 21px; height: 21px; }
.toggle-pass .eye-closed { display: none; }
.toggle-pass[aria-pressed="true"] .eye-open { display: none; }
.toggle-pass[aria-pressed="true"] .eye-closed { display: block; }

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 2px;
  font-size: 14px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #fff;
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s;
}
.check input:checked + .check-box {
  background: var(--orange);
  border-color: var(--orange);
}
.check input:checked + .check-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.check input:focus-visible + .check-box { box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.35); }

.link { color: var(--orange); transition: color .2s; }
.link:hover { color: #ffa25c; text-decoration: underline; }

.form-error {
  font-size: 13px;
  color: #ff8b8b;
  text-align: left;
}

/* ---------- Butonlar ---------- */
.btn {
  position: relative;
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s, background .2s, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #ffb27a; outline-offset: 2px; }

.btn-primary {
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #ff8a2e 0%, var(--orange-2) 100%);
  box-shadow: 0 8px 24px rgba(255, 110, 20, 0.28);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 10px 30px rgba(255, 110, 20, 0.4); }
.btn-arrow { width: 20px; height: 20px; }
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.loading { pointer-events: none; filter: saturate(.85); }
.btn.loading .btn-arrow { display: none; }
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-2);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.btn-google {
  color: #fff;
  background: rgba(30, 24, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-google:hover { background: rgba(44, 36, 32, 0.95); border-color: rgba(255, 255, 255, 0.2); }
.btn-google svg { width: 23px; height: 23px; }

.signup {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Özellikler ---------- */
.features {
  width: 100%;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  text-align: center;
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.18), rgba(255, 122, 26, 0.08));
  border: 1px solid rgba(255, 122, 26, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.feature-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 14.5px;
  font-weight: 700;
}
.feature p {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ---------- Alt bilgi ---------- */
.footer {
  width: 100%;
  max-width: 480px;
  margin-top: 22px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 23px;
  font-weight: 600;
  color: #b9b0aa;
  letter-spacing: 0.3px;
}
.footer-brand::before,
.footer-brand::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 70, 0.35), transparent);
}
.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-3);
}
.footer-links a:hover { color: #fff; }
.copyright {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 18px 16px; max-width: 720px; }
}

@media (max-width: 640px) {
  .page-bg { background-position: 50% 40%; }
  .page-bg::after {
    background:
      linear-gradient(180deg, rgba(10, 5, 3, 0.72) 0%, rgba(14, 8, 5, 0.55) 45%, rgba(22, 12, 7, 0.9) 75%, var(--bg) 100%);
  }
  .page { padding: 18px 16px 14px; }
  .logo-text { font-size: 46px; }
  .logo-cart { height: 62px; margin-top: 5px; }
  .logo-speed { gap: 4px; margin-right: 7px; }
  .logo-speed i { height: 4px; }
  .logo-speed i:nth-child(1) { width: 18px; }
  .logo-speed i:nth-child(2) { width: 27px; }
  .logo-speed i:nth-child(3) { width: 14px; }
  .logo-sub { font-size: 11px; letter-spacing: 0.5em; padding-left: 0.5em; }
  .hero { margin-top: 10px; }
  .hero h1 { font-size: 23px; }
  .hero p { font-size: 14px; margin-top: 6px; }
  .br-desktop { display: none; }
  .card { margin-top: 14px; padding: 18px 16px; }
  .form { margin-top: 16px; gap: 9px; }
  .field input { height: 44px; }
  .btn { height: 46px; }
  .form-row { font-size: 13px; }
  .features { margin-top: 18px; gap: 14px 8px; }
  .feature-icon { width: 42px; height: 42px; margin-bottom: 6px; }
  .feature-icon svg { width: 22px; height: 22px; }
  .feature h3 { font-size: 12px; }
  .feature p { display: none; }
  .footer { margin-top: 16px; }
  .footer-brand { font-size: 19px; }
  .footer-links { gap: 10px; font-size: 12px; }
  .copyright { font-size: 12px; }
}

@media (max-width: 640px) and (max-height: 720px) {
  .hero p,
  .footer-links { display: none; }
  .features { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0s !important; }
}
