/* Astronorm — Editorial Warm + Tactile Premium (uygulamayla aynı dil) */

:root {
  /* Warm cream stack */
  --bg: #fbf6ee;
  --surface: #fffdf8;
  --paper-muted: #f2e9db;
  --paper-border: #e7dcc9;
  /* Ink */
  --ink: #2a2520;
  --ink-soft: #5c5349;
  --ink-muted: #8a7e6e;
  /* Accents */
  --mauve: #9a88a6;
  --mauve-deep: #7d6c8a;
  --clay: #c68e78;
  --gold: #c9a961;
  --gold-soft: #e2cd97;
  --sage: #8fa68e;
  /* Shadows (3-stack) */
  --shadow-sm: 0 1px 2px rgba(42, 37, 32, 0.05);
  --shadow:
    0 1px 2px rgba(42, 37, 32, 0.05), 0 8px 22px rgba(42, 37, 32, 0.07),
    0 22px 44px rgba(42, 37, 32, 0.05);
  --shadow-lg:
    0 2px 4px rgba(42, 37, 32, 0.06), 0 14px 34px rgba(42, 37, 32, 0.09),
    0 32px 64px rgba(42, 37, 32, 0.07);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  /* Soft warm wash + paper grain */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 169, 97, 0.10), transparent 60%),
    radial-gradient(1000px 700px at -10% 10%, rgba(154, 136, 166, 0.10), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--mauve-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.4em; }
h3 { font-size: 1.3rem; }
.serif-italic { font-family: var(--serif); font-style: italic; }
.overline {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  font-weight: 700; color: var(--mauve-deep);
}
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.muted { color: var(--ink-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: #fdf8ef; box-shadow: var(--shadow); }
.btn-ink:hover { color: #fff; background: #1f1b16; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--paper-border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { box-shadow: var(--shadow); }

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(251, 246, 238, 0.82);
  border-bottom: 1px solid var(--paper-border);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.brand .star { color: var(--gold); }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav.main a.navlink { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
nav.main a.navlink:hover { color: var(--ink); }
.lang { display: flex; gap: 4px; background: var(--paper-muted); border: 1px solid var(--paper-border); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 0.8rem; color: var(--ink-muted); padding: 5px 11px; border-radius: 999px; }
.lang button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--paper-border); border-radius: 12px; width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem; }

/* ── Hero ── */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 14px 0 0; }
.hero h1 em { font-style: italic; color: var(--mauve-deep); }
.hero .lead { margin: 22px 0 30px; max-width: 30em; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-muted); }

/* Cosmic orb visual */
.orb-stage { display: flex; justify-content: center; align-items: center; min-height: 360px; }
.orb {
  width: 300px; height: 300px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--gold-soft), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--mauve), transparent 60%),
    radial-gradient(circle at 50% 50%, var(--clay), var(--mauve-deep));
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(255, 255, 255, 0.25);
  position: relative; animation: float 7s ease-in-out infinite;
}
.orb::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px dashed rgba(125, 108, 138, 0.4);
  animation: spin 60s linear infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orb, .orb::after { animation: none; } html { scroll-behavior: auto; } }

/* ── Sections ── */
section { padding: 64px 0; }
.section-head { max-width: 36em; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin-top: 12px; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--paper-border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--paper-muted); border: 1px solid var(--paper-border); margin-bottom: 14px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step .num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--clay); line-height: 1; }
.step h3 { margin: 10px 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }

/* Trust / privacy band */
.band { background: linear-gradient(180deg, rgba(143, 166, 142, 0.10), rgba(154, 136, 166, 0.08)); border-top: 1px solid var(--paper-border); border-bottom: 1px solid var(--paper-border); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--paper-border); border-radius: var(--radius); padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mauve-deep); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* CTA band */
.cta-final { text-align: center; }
.cta-final .card { max-width: 720px; margin: 0 auto; padding: 48px 36px; background: var(--ink); color: #fdf8ef; border: 0; }
.cta-final .card h2, .cta-final .card .lead { color: #fdf8ef; }
.cta-final .card .lead { opacity: 0.82; }

/* ── Footer ── */
footer.site { border-top: 1px solid var(--paper-border); padding: 48px 0 60px; margin-top: 24px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer.site h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin: 0 0 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--paper-border); padding-top: 22px; font-size: 0.85rem; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.disclaimer { font-size: 0.82rem; color: var(--ink-muted); max-width: 52em; }

/* ── Legal / doc pages ── */
.doc { padding: 56px 0 40px; }
.doc-wrap { max-width: 800px; margin: 0 auto; }
.doc .updated { color: var(--ink-muted); font-size: 0.9rem; margin-top: 6px; }
.doc h2 { font-size: 1.5rem; margin: 38px 0 10px; padding-top: 8px; }
.doc h3 { font-size: 1.12rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.doc .toc { background: var(--surface); border: 1px solid var(--paper-border); border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow-sm); margin: 24px 0; }
.doc .toc a { display: block; padding: 3px 0; color: var(--ink-soft); font-size: 0.95rem; }
.doc .callout { background: var(--paper-muted); border-left: 3px solid var(--clay); border-radius: 10px; padding: 14px 18px; margin: 18px 0; font-size: 0.96rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.94rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper-border); vertical-align: top; }
.doc th { color: var(--ink); font-family: var(--sans); }

/* i18n visibility — html[data-lang] <head> betiğiyle paint öncesi set edilir
   (FOUC/çift-dil flash yok). Geçerli dilde olmayan çeviri öğeleri gizlenir. */
html[data-lang="tr"] [data-lang="en"] { display: none !important; }
html[data-lang="en"] [data-lang="tr"] { display: none !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .orb-stage { order: -1; min-height: 260px; }
  .orb { width: 220px; height: 220px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--paper-border); padding: 14px 24px; box-shadow: var(--shadow); }
  nav.main.open { display: flex; }
  nav.main .lang { margin-top: 8px; }
  .nav-toggle { display: block; }
}
