/* ═══════════════════════════════════════════════════════════════════
   SafeCircle — Refined Editorial Design System
   Aesthetic: warm minimalism + editorial typography + asymmetric grids
   Inspired by: Linear, Arc Browser, The Browser Company, Vercel
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Palette — warm, premium, trustworthy */
  --canvas: #FAFAF7;
  --canvas-2: #F4F4F0;
  --ink: #18181B;
  --ink-2: #3F3F46;
  --ink-3: #71717A;
  --ink-4: #A1A1AA;
  --line: #E4E4E0;
  --line-soft: #EFEFEB;

  --accent: #DC2626;
  --accent-soft: #FEF2F2;
  --safe: #059669;
  --safe-soft: #ECFDF5;
  --warm: #F59E0B;
  --info: #2563EB;

  /* Typography */
  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'General Sans', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --container-narrow: 720px;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 160px;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 40px;

  /* Shadows — soft, layered */
  --shadow-1: 0 1px 2px rgba(24,24,27,0.04);
  --shadow-2: 0 4px 16px rgba(24,24,27,0.06), 0 1px 2px rgba(24,24,27,0.04);
  --shadow-3: 0 12px 40px rgba(24,24,27,0.08), 0 4px 12px rgba(24,24,27,0.05);
  --shadow-4: 0 24px 64px rgba(24,24,27,0.12), 0 8px 24px rgba(24,24,27,0.08);
  --shadow-device: 0 40px 80px -20px rgba(24,24,27,0.30), 0 20px 40px -12px rgba(24,24,27,0.15);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.04em;
  font-weight: 500;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 500;
}
h3 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 500; }
h4 { font-size: 18px; font-weight: 500; }

p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-3); }

a { color: inherit; text-decoration: none; transition: opacity 0.2s ease; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--ink-4);
}

/* ─── Container ─────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-6); }

/* ─── Header ─────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header.scrolled { border-bottom-color: var(--line-soft); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--canvas); font-weight: 600; font-size: 13px;
  letter-spacing: -0.01em;
}
.nav { display: flex; align-items: center; gap: var(--sp-7); }
.nav-link {
  font-size: 15px; color: var(--ink-2); font-weight: 400;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex; gap: 2px;
  background: var(--canvas-2);
  border-radius: 999px; padding: 3px;
  font-size: 12px; font-weight: 500;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 12px; border-radius: 999px;
  color: var(--ink-3); font: inherit; letter-spacing: 0.04em;
  transition: all 0.2s ease;
}
.lang-switch button.active,
html[lang="tr"] .lang-switch button[data-set-lang="tr"],
html[lang="en"] .lang-switch button[data-set-lang="en"] {
  background: var(--canvas); color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: 15px;
  padding: 14px 24px; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--ink); color: var(--canvas); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--canvas); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-icon { width: 18px; height: 18px; }

/* ─── Sections ─────────────────────────────────── */
section { padding: var(--sp-11) 0; position: relative; }
.section-tight { padding: var(--sp-9) 0; }

/* ─── Hero — editorial, asymmetric ─────────────────────────────────── */
.hero {
  padding: var(--sp-10) 0 var(--sp-9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 15% 20%, rgba(245,158,11,0.06), transparent 60%),
    radial-gradient(900px 500px at 90% 70%, rgba(220,38,38,0.05), transparent 60%);
  pointer-events: none; z-index: 0;
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-8); align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.hero-text h1 {
  margin-bottom: var(--sp-5);
}
.hero-text h1 .serif {
  display: block;
  margin: 4px 0;
  color: var(--ink-2);
}
.hero-text .lead {
  margin-bottom: var(--sp-7);
  max-width: 480px;
}
@media (max-width: 960px) {
  .hero-text .lead { margin-left: auto; margin-right: auto; }
}

.hero-actions {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
}
@media (max-width: 960px) { .hero-actions { justify-content: center; } }

.hero-meta {
  margin-top: var(--sp-6);
  display: flex; gap: var(--sp-5); flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--safe); }
@media (max-width: 960px) { .hero-meta { justify-content: center; } }

/* Hero visual — phone mockup with parallax */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  perspective: 1200px;
}
.phone {
  position: relative;
  background: linear-gradient(180deg, #1F1F23 0%, #0A0A0B 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-device);
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone:hover { transform: rotate(0deg) scale(1.02); }
.phone-screen {
  display: block;
  border-radius: 36px; overflow: hidden;
  width: 280px; height: auto;
  background: white;
}
.phone img {
  display: block; width: 100%; height: auto;
  border-radius: 36px;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #0A0A0B;
  border-radius: 14px;
  z-index: 2;
}

/* Floating accent screenshots */
.hero-accent {
  position: absolute;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  background: white;
  padding: 6px;
  z-index: 2;
}
.hero-accent-1 {
  top: -40px; left: -60px;
  transform: rotate(-8deg);
}
.hero-accent-2 {
  bottom: -30px; right: -40px;
  transform: rotate(6deg);
}
.hero-accent img {
  display: block; width: 130px; height: auto;
  border-radius: var(--r-md);
}
@media (max-width: 960px) {
  .hero-accent { display: none; }
}

/* ─── Showcase strip ─────────────────────────────────── */
.showcase-strip {
  padding: var(--sp-9) 0;
  background: var(--ink);
  color: var(--canvas);
  overflow: hidden;
}
.showcase-strip h2 { color: var(--canvas); text-align: center; margin-bottom: var(--sp-3); }
.showcase-strip h2 .serif { color: rgba(255,255,255,0.55); }
.showcase-strip p { color: rgba(255,255,255,0.65); text-align: center; }

.screens-row {
  display: flex; gap: var(--sp-5);
  margin-top: var(--sp-8);
  overflow-x: auto;
  padding: var(--sp-5) var(--sp-6);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.screens-row::-webkit-scrollbar { display: none; }
.screen-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  border-radius: 32px;
  background: linear-gradient(180deg, #1F1F23 0%, #0A0A0B 100%);
  padding: 8px;
  box-shadow: var(--shadow-device);
  transition: transform 0.4s ease;
}
.screen-card:hover { transform: translateY(-8px); }
.screen-card img {
  display: block; width: 100%; height: auto;
  border-radius: 26px;
}

/* ─── Features — asymmetric ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.feature {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--canvas);
  border: 1px solid var(--line-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.feature:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}
.feature-tall { grid-column: span 5; padding: var(--sp-7); }
.feature-wide { grid-column: span 7; padding: var(--sp-7); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.feature-third { grid-column: span 4; }
@media (max-width: 960px) {
  .feature-tall, .feature-wide, .feature-third { grid-column: span 12; }
  .feature-wide { grid-template-columns: 1fr; }
}

.feature-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--canvas-2);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--ink); }
.feature.accent .feature-icon { background: var(--accent-soft); }
.feature.accent .feature-icon svg { color: var(--accent); }
.feature.safe .feature-icon { background: var(--safe-soft); }
.feature.safe .feature-icon svg { color: var(--safe); }

.feature h3 { margin-bottom: var(--sp-2); font-size: 22px; }
.feature p { font-size: 16px; color: var(--ink-2); }

/* Mini phone in feature */
.feature-screen {
  position: relative;
  margin-top: var(--sp-5);
  background: linear-gradient(180deg, #1F1F23 0%, #0A0A0B 100%);
  border-radius: 28px;
  padding: 6px;
  box-shadow: var(--shadow-3);
  max-width: 180px;
}
.feature-screen.right { margin-left: auto; }
.feature-screen img {
  display: block; width: 100%; height: auto;
  border-radius: 22px;
}

/* ─── Section heads ─────────────────────────────────── */
.section-head { max-width: 720px; margin: 0 auto var(--sp-6); text-align: center; }
.section-head .lead { margin-top: var(--sp-4); }

/* ─── Languages ─────────────────────────────────── */
.langs-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-9);
  align-items: center;
}
@media (max-width: 960px) { .langs-section { grid-template-columns: 1fr; } }
.langs-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.lang-item {
  padding: var(--sp-4) var(--sp-5);
  background: var(--canvas);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.2s ease;
}
.lang-item:hover { border-color: var(--line); }
.lang-item-name { font-weight: 500; font-size: 16px; }
.lang-item-code { font-size: 12px; color: var(--ink-3); font-family: var(--mono); letter-spacing: 0.05em; }

/* ─── Pricing ─────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1.05fr 0.95fr;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  align-items: stretch;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  padding: var(--sp-7);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--canvas);
  position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--ink); background: var(--ink); color: var(--canvas);
  transform: scale(1.02);
}
.price-card.featured h3, .price-card.featured .price-amount { color: var(--canvas); }
.price-card.featured p, .price-card.featured .price-period { color: rgba(255,255,255,0.7); }
.price-card.featured li { color: rgba(255,255,255,0.85); }
.price-card.featured li::before { color: var(--safe); }
.price-card.featured .btn { background: var(--canvas); color: var(--ink); }

.price-visual {
  padding: 0;
  background: linear-gradient(160deg, var(--canvas-2) 0%, var(--canvas) 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-xl);
  position: relative; overflow: hidden;
  min-height: 480px;
}
.price-visual .phone {
  transform: rotate(3deg);
}
.price-visual .phone-screen { width: 220px; }

.price-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--safe); color: white;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.price-amount {
  font-size: 64px; font-weight: 500; letter-spacing: -0.04em;
  margin: var(--sp-5) 0 var(--sp-2);
  font-family: var(--sans);
}
.price-amount .currency { font-size: 32px; vertical-align: super; opacity: 0.6; }
.price-period { font-size: 14px; color: var(--ink-3); margin-bottom: var(--sp-6); }
.price-features {
  list-style: none; flex: 1; margin: 0 0 var(--sp-6);
}
.price-features li {
  padding: 10px 0; display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.price-card.featured .price-features li { border-color: rgba(255,255,255,0.08); }
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: '✓'; color: var(--safe); font-weight: 700; flex-shrink: 0;
  font-size: 14px;
}

/* ─── Quote block ─────────────────────────────────── */
.quote-section {
  padding: var(--sp-10) 0;
  background: var(--canvas-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.quote {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25; color: var(--ink);
  letter-spacing: -0.02em;
}
.quote footer {
  margin-top: var(--sp-6);
  font-size: 14px; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase;
}

/* ─── CTA ─────────────────────────────────── */
.cta-section { text-align: center; padding: var(--sp-10) 0; }
.cta-section h2 { margin-bottom: var(--sp-4); }
.cta-section .lead { max-width: 540px; margin: 0 auto var(--sp-7); }
.app-badges { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: var(--ink); color: var(--canvas);
  border-radius: var(--r-md);
  font-size: 14px;
  transition: transform 0.15s ease;
}
.app-badge:hover { transform: translateY(-2px); }
.app-badge svg { width: 24px; height: 24px; }
.app-badge .label-sm { font-size: 11px; opacity: 0.7; display: block; letter-spacing: 0.04em; }
.app-badge .label-lg { font-size: 16px; font-weight: 500; display: block; }
.app-badge.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* ─── Footer ─────────────────────────────────── */
.footer {
  padding: var(--sp-9) 0 var(--sp-6);
  border-top: 1px solid var(--line-soft);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-7);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin-bottom: var(--sp-4); }
.footer ul { list-style: none; }
.footer li { padding: 4px 0; }
.footer li a { color: var(--ink-2); font-size: 15px; }
.footer li a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--ink-3);
  flex-wrap: wrap; gap: var(--sp-3);
}

/* ─── Legal pages ─────────────────────────────────── */
.page-header {
  padding: var(--sp-9) 0 var(--sp-6);
  border-bottom: 1px solid var(--line-soft);
}
.page-header h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 12px; }
.page-header p { color: var(--ink-3); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-content { padding: var(--sp-8) 0 var(--sp-10); }
.legal-content h2 { font-size: 26px; margin: var(--sp-8) 0 var(--sp-4); font-weight: 500; }
.legal-content h3 { font-size: 19px; margin: var(--sp-6) 0 var(--sp-2); font-weight: 500; }
.legal-content p { margin-bottom: var(--sp-4); line-height: 1.7; font-size: 16px; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: var(--sp-4); }
.legal-content li { margin-bottom: 8px; color: var(--ink-2); }
.legal-content a { color: var(--info); border-bottom: 1px solid currentColor; }

/* ─── Lang toggle behaviour ─────────────────────────────────── */
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-tr] { display: none; }
html[lang="en"] [data-lang-en] { display: block; }
html[lang="en"] span[data-lang-en],
html[lang="tr"] span[data-lang-tr] { display: inline; }
html[lang="en"] li[data-lang-en],
html[lang="tr"] li[data-lang-tr] { display: list-item; }

/* ─── Animations ─────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* ─── Mobile ─────────────────────────────────── */
@media (max-width: 720px) {
  .nav .nav-link { display: none; }
  section { padding: var(--sp-8) 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .phone-screen { width: 240px; }
}
