/* =========================================================
   Ustasından — Marketing site
   Premium · mobile-first · brand-led
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #faf8f6;
  --bg-elevated: #ffffff;
  --ink: #14181f;
  --ink-2: #3d4654;
  --ink-3: #6b7585;
  --ink-4: #9aa3b2;
  --line: rgba(20, 24, 31, 0.08);
  --line-strong: rgba(20, 24, 31, 0.12);
  --brand: #e8611a;
  --brand-2: #f07a38;
  --brand-deep: #b8470f;
  --brand-soft: #fff4ec;
  --brand-glow: rgba(232, 97, 26, 0.22);
  --dark: #0e1218;
  --dark-2: #171c25;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 24, 0.04);
  --shadow: 0 8px 30px rgba(15, 18, 24, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 18, 24, 0.1);
  --max: 1120px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: var(--safe-b);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 48px, var(--max));
  }
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* —— Nav —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-t);
  background: rgba(250, 248, 246, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.topnav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 246, 0.94);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
  padding-block: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logo img {
    width: 40px;
    height: 40px;
  }
}

.logo-word {
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: none;
}

.topnav.nav-open .nav-links {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 18px;
  background: rgba(250, 248, 246, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none !important;
  padding: 14px 14px;
  border-radius: 12px;
}

.nav-links a:hover,
.nav-links a:active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.nav-links .btn {
  margin-top: 8px;
  width: 100%;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-links,
  .topnav.nav-open .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links a {
    padding: 8px 4px;
    font-size: 0.92rem;
  }

  .nav-links a:hover {
    background: transparent;
  }

  .nav-links .btn {
    width: auto;
    margin: 0 0 0 8px;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff !important;
  box-shadow: 0 8px 24px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f2884a 0%, var(--brand-deep) 100%);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--ink) !important;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: rgba(232, 97, 26, 0.35);
  color: var(--brand-deep) !important;
}

.btn-dark {
  background: var(--dark);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(14, 18, 24, 0.25);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(232, 97, 26, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(23, 28, 37, 0.06), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 8vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--brand-deep);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 520px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-4);
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat {
  text-align: left;
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat span {
  font-size: 0.75rem;
  color: var(--ink-3);
  font-weight: 600;
}

/* Phone showcase */
.showcase {
  display: flex;
  justify-content: center;
}

.device {
  width: min(100%, 300px);
  background: linear-gradient(160deg, #1a1f28 0%, #0c1016 100%);
  border-radius: 40px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    var(--shadow-lg);
}

.device-notch {
  width: 108px;
  height: 24px;
  margin: 2px auto 10px;
  background: #0c1016;
  border-radius: 0 0 16px 16px;
}

.device-screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 420px;
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(232, 97, 26, 0.4), transparent 50%),
    linear-gradient(165deg, #243044 0%, #121821 48%, #0f141c 100%);
  color: #fff;
  padding: 20px 16px 18px;
}

.device-appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.device-appbar img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
}

.device-appbar strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.device-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(232, 97, 26, 0.28);
  color: #ffc49a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.device-screen h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.device-screen p {
  margin: 0 0 16px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.device-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.device-list .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(232, 97, 26, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.device-list strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.device-list span {
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.78);
  line-height: 1.35;
}

/* —— Sections —— */
.section {
  padding: 28px 0 8px;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--ink-3);
  font-size: 1.02rem;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .section {
    padding: 48px 0 16px;
  }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(232, 97, 26, 0.2);
  }
}

.feature-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Steps */
.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.step {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 22px 20px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Legal cards */
.legal-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .legal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.legal-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.legal-card:hover {
  border-color: rgba(232, 97, 26, 0.3);
  box-shadow: var(--shadow);
}

.legal-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 750;
}

.legal-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.45;
}

.legal-card .arrow {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}

/* CTA */
.cta {
  padding: 36px 0 48px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(232, 97, 26, 0.35), transparent 50%),
    linear-gradient(145deg, #12161e 0%, #1c2330 55%, #151a22 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .cta-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 40px 40px;
  }
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cta-panel p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.98rem;
  max-width: 36em;
}

.cta-panel .btn {
  justify-self: stretch;
}

@media (min-width: 720px) {
  .cta-panel .btn {
    justify-self: end;
    min-width: 160px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 40px 0 calc(28px + var(--safe-b));
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
  }
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 0.92rem;
  max-width: 28em;
  line-height: 1.5;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 10px;
}

.footer-col a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
}

.footer-col a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-4);
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--ink-3);
}

/* Legal standalone pages (shared class hooks if used later) */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* Mobile polish */
@media (max-width: 519px) {
  .hero-actions .btn {
    width: 100%;
  }

  .device {
    width: min(100%, 280px);
  }

  .device-screen {
    min-height: 390px;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat strong {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature-card {
    transition: none;
  }
}
