/* ==========================================================================
   Kelime Macerası — swdevugur.com
   Design tokens
   ========================================================================== */

:root {
  /* Color: "field journal" adventure palette — grounded in the game's own
     feedback colors (green = doğru, kırmızı = yanlış, sarı = etiket/kart) */
  --paper:        #EEF3E8;   /* soft sage-tinted paper background */
  --paper-deep:   #E3EBDA;   /* slightly deeper paper, for alt sections */
  --ink:          #20301F;  /* deep forest ink for body text */
  --ink-soft:     #4B5A45;   /* muted ink for secondary text */
  --navy:         #1D2A22;  /* darkest, for footer/dark panels */

  --green:        #3E8F5B;  /* "doğru" — correct match */
  --green-deep:   #2C6E42;
  --coral:        #E4572E;  /* "yanlış" — wrong match / life lost */
  --gold:         #E7A33D;  /* word tag / card color */
  --gold-deep:    #C97F1F;
  --cream-tag:    #FBF6E9;  /* tag paper color, warmer than bg */

  --line:         rgba(32, 48, 31, 0.14);
  --shadow-soft:  0 10px 24px rgba(29, 42, 34, 0.10);
  --shadow-tag:   0 14px 28px rgba(29, 42, 34, 0.16);

  /* Type */
  --font-display: 'Baloo 2', 'Nunito', sans-serif;
  --font-body:    'Nunito Sans', 'Nunito', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .eyebrow-word {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 243, 232, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green);
  position: relative;
  flex: none;
  box-shadow: var(--shadow-soft);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed var(--cream-tag);
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--green-deep); }

.nav-cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { width: 100%; text-align: center; }
}

/* ---- Eyebrow / stamp label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(62, 143, 91, 0.12);
  border: 1px solid rgba(62, 143, 91, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: "●"; color: var(--coral); font-size: 0.6rem; }

/* ---- Hero ---- */
.hero {
  padding-top: 76px;
  padding-bottom: 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.hero-meta span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---- Signature: gameplay tag demo card ---- */
.demo-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  border: 1px solid var(--line);
}

.demo-scene {
  position: relative;
  background: linear-gradient(180deg, #DCEAD8 0%, #CFE3CB 100%);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* simple flat room illustration built from shapes */
.demo-scene .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: #B98A5A; }
.demo-scene .rug { position: absolute; left: 14%; right: 14%; bottom: 4%; height: 16%; background: #D9A441; border-radius: 50%; opacity: 0.85; }
.demo-scene .window { position: absolute; top: 10%; right: 10%; width: 26%; height: 30%; background: #EAF6EE; border: 6px solid #fff; border-radius: 6px; box-shadow: var(--shadow-soft); }
.demo-scene .chair {
  position: absolute; left: 18%; bottom: 20%; width: 34%; height: 40%;
}
.demo-scene .chair .back { position: absolute; bottom: 42%; left: 8%; width: 84%; height: 58%; background: var(--coral); border-radius: 14px 14px 6px 6px; }
.demo-scene .chair .seat { position: absolute; bottom: 22%; left: 0; width: 100%; height: 26%; background: #EC7A54; border-radius: 8px; }
.demo-scene .chair .leg { position: absolute; bottom: 0; width: 8%; height: 22%; background: #7A4A2C; }
.demo-scene .chair .leg.l { left: 8%; }
.demo-scene .chair .leg.r { right: 8%; }

.target-dot {
  position: absolute;
  left: 34%;
  bottom: 46%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(228, 87, 46, 0.35);
  border: 2px solid var(--coral);
}
.target-dot::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.word-tag {
  position: absolute;
  top: 12%;
  right: 8%;
  background: var(--cream-tag);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  box-shadow: var(--shadow-tag);
  transform: rotate(-4deg);
}
.word-tag::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold-deep);
}

.tag-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tag-path path {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.demo-caption .life {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--coral);
  font-weight: 700;
}

/* ---- How it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green-deep);
  background: rgba(62,143,91,0.12);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
}
.step h3 { margin-bottom: 10px; }

/* ---- Features (tag-card grid) ---- */
.section-alt { background: var(--paper-deep); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-tag {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-soft);
}
.feature-tag .hole {
  position: absolute;
  top: 18px; left: 20px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold-deep);
  background: var(--paper);
}
.feature-tag h3 { margin: 18px 0 8px 0; font-size: 1.1rem; }
.feature-tag p { margin: 0; font-size: 0.96rem; }
.feature-tag .stat {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- FAQ ---- */
.faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  margin: 0 auto;
  max-width: 1120px;
}
.cta-band h2, .cta-band p { color: var(--paper); }
.cta-band p { color: rgba(238,243,232,0.75); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-secondary { border-color: rgba(238,243,232,0.5); color: var(--paper); }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(238,243,232,0.7);
  padding: 50px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(238,243,232,0.14);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(238,243,232,0.75); font-weight: 600; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Legal / policy page ---- */
.legal {
  padding: 64px 0 100px;
}
.legal-header { margin-bottom: 40px; }
.legal-header .eyebrow { margin-bottom: 22px; }
.legal-updated { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }

.legal-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 860px;
}
@media (max-width: 620px) { .legal-body { padding: 30px 22px; } }

.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 42px;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 { font-size: 1.05rem; margin-top: 20px; margin-bottom: 8px; color: var(--green-deep); }
.legal-body ul { margin: 0 0 1em; padding-left: 22px; color: var(--ink-soft); }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--green-deep); font-weight: 600; }

.placeholder-note {
  background: rgba(228, 87, 46, 0.08);
  border: 1px dashed var(--coral);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  margin-bottom: 36px;
}
.placeholder-note strong { color: var(--coral); }
