/* ============================================================
   Kadim İşaret – Main Stylesheet
   Calm / spiritual · modern SaaS · mobile-first
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0e14;
  --bg-card:     #13141d;
  --bg-hover:    #1a1c27;
  --border:      #232535;
  --border-soft: #1d1f2e;

  --text:        #e8e9f0;
  --text-muted:  #7c7f96;
  --text-dim:    #4a4d62;

  --gold:        #c9a96e;
  --gold-light:  #e2c48a;
  --gold-dim:    #6e5b3a;

  --accent:      #7b68ee;
  --accent-soft: #5a4fc0;

  --danger:      #e05c5c;
  --success:     #5cb88a;

  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --transition:  0.18s ease;

  --font-sans:   'Inter', system-ui, sans-serif;
  --font-serif:  'Noto Serif', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--text-muted); }
a  { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 58px;
  background: rgba(13,14,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.navbar__glyph  { font-size: 1.4rem; color: var(--gold); }
.navbar__name   { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: 0.03em; }
.navbar__credits {
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(201,169,110,0.1);
  border: 1px solid var(--gold-dim);
  padding: 3px 10px;
  border-radius: 99px;
}
.navbar__links  { display: flex; align-items: center; gap: 0.75rem; }

.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  padding: 0.3rem 0.5rem;
}
.nav-link:hover        { color: var(--text); }
.nav-link--cta         { background: var(--gold); color: #0d0e14 !important; border-radius: 6px; padding: 0.35rem 0.85rem; font-weight: 600; }
.nav-link--cta:hover   { background: var(--gold-light); }
.nav-link--muted       { opacity: 0.55; }
.nav-link--muted:hover { opacity: 1; }

/* ---------- Main & Footer ---------- */
.main   { flex: 1; }
.footer { text-align: center; padding: 2rem 1rem; font-size: 0.78rem; color: var(--text-dim); border-top: 1px solid var(--border-soft); }

/* ---------- Alerts ---------- */
.alert {
  max-width: 480px;
  margin: 1.5rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  border: 1px solid;
}
.alert--error { background: rgba(224,92,92,0.1); border-color: var(--danger); color: #f0a0a0; }
.alert--info  { background: rgba(92,184,138,0.1); border-color: var(--success); color: #9be0bc; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 960px; }

/* ---------- Page Hero ---------- */
.page-hero { text-align: center; padding: 3.5rem 1.25rem 2.5rem; }
.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-hero__title { margin-bottom: 0.75rem; }
.page-hero__sub   { font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.card--sm { padding: 1.5rem; }

/* ---------- Form Elements ---------- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; }

input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--gold-dim); }
textarea { resize: vertical; min-height: 100px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary   { background: var(--gold); color: #0d0e14; }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--outline   { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn--outline:hover { border-color: var(--gold-dim); color: var(--text); }
.btn--full { width: 100%; }
.btn--sm   { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ---------- Divider ---------- */
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0; color: var(--text-dim); font-size: 0.8rem; }
.divider::before, .divider::after { content:''; flex:1; height:1px; background: var(--border); }

/* ---------- LANDING PAGE ---------- */
.landing { overflow: hidden; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  position: relative;
}
.hero__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__symbol {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.65; }
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero__title span { color: var(--gold); }
.hero__sub  { font-size: clamp(0.95rem, 2.5vw, 1.1rem); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero__cta  { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero__note { margin-top: 2rem; font-size: 0.78rem; color: var(--text-dim); }

/* How it works */
.how { padding: 5rem 1.25rem; text-align: center; }
.how__title { margin-bottom: 3rem; }
.how__steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 720px; margin: 0 auto; }
@media (min-width: 600px) { .how__steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.step__num  { font-size: 1.75rem; color: var(--gold); margin-bottom: 0.75rem; }
.step__head { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.step__body { font-size: 0.85rem; color: var(--text-muted); }

/* Features */
.features { padding: 4rem 1.25rem 5rem; }
.features__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 720px; margin: 0 auto; }
@media (min-width: 600px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-card__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.feature-card__title { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text); }
.feature-card__body  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 1.25rem;
  background: linear-gradient(160deg, rgba(201,169,110,0.07) 0%, rgba(13,14,20,0) 60%);
  border-top: 1px solid var(--border-soft);
}
.cta-band__title { margin-bottom: 0.75rem; font-family: var(--font-serif); }
.cta-band__sub   { margin-bottom: 2rem; }

/* ---------- AUTH PAGES ---------- */
.auth-page { display: flex; align-items: flex-start; justify-content: center; padding: 3rem 1.25rem; }
.auth-box   { width: 100%; max-width: 420px; }
.auth-box__logo  { text-align: center; margin-bottom: 2rem; }
.auth-box__glyph { font-size: 2.2rem; color: var(--gold); display: block; margin-bottom: 0.4rem; }
.auth-box__name  { font-size: 1rem; color: var(--text-muted); }
.auth-box__title { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.3rem; }
.auth-box__sub   { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }

/* ---------- DASHBOARD ---------- */
.dashboard { padding: 2.5rem 1.25rem 4rem; max-width: 760px; margin: 0 auto; }
.dash-header { margin-bottom: 2.5rem; }
.dash-header h1 { margin-bottom: 0.25rem; }

.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 480px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.stat-card__value { font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1.1; }
.stat-card__label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

.dash-section-title { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }

/* History list */
.history-list { display: flex; flex-direction: column; gap: 0.75rem; }
.history-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.history-item:hover { border-color: var(--gold-dim); background: var(--bg-hover); }
.history-item__hex  { font-size: 1.6rem; color: var(--gold); flex-shrink: 0; min-width: 2.5rem; text-align: center; }
.history-item__body { flex: 1; min-width: 0; }
.history-item__q    { font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.2rem; }
.history-item__meta { font-size: 0.75rem; color: var(--text-muted); }
.history-item__arrow { color: var(--text-dim); font-size: 0.9rem; }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state__icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state__text { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- ASK PAGE ---------- */
.ask-page { padding: 3rem 1.25rem 5rem; max-width: 580px; margin: 0 auto; }
.ask-tips { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin: 1rem 0 0; }
.ask-tips li { font-size: 0.8rem; color: var(--text-muted); padding-left: 1.2em; position: relative; }
.ask-tips li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.6rem; top: 3px; }

.credit-warning {
  background: rgba(201,169,110,0.07);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- RESULT PAGE ---------- */
.result-page { padding: 3rem 1.25rem 5rem; max-width: 600px; margin: 0 auto; }

.hex-reveal {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.hex-reveal__glyph   { font-size: 5rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 0.5rem; }
.hex-reveal__num     { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.hex-reveal__name    { font-family: var(--font-serif); font-size: 1.9rem; color: var(--text); margin-bottom: 0.35rem; }
.hex-reveal__symbol  { font-size: 1.1rem; color: var(--text-dim); letter-spacing: 0.2em; }

.result-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.result-block__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.result-block__text  { font-size: 0.95rem; color: var(--text); line-height: 1.7; }
.result-block__text--serif { font-family: var(--font-serif); font-size: 1rem; font-style: italic; }
.result-block__question { color: var(--text-muted); font-size: 0.9rem; }

.result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- CREDITS PAGE ---------- */
.credits-page { padding: 2.5rem 1.25rem 5rem; max-width: 700px; margin: 0 auto; }
.credits-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2rem 0; }
@media (min-width: 520px) { .credits-grid { grid-template-columns: repeat(3, 1fr); } }

.credit-pack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition);
  cursor: default;
}
.credit-pack--featured { border-color: var(--gold); }
.credit-pack__badge { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.credit-pack__amount { font-size: 2.5rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 0.25rem; }
.credit-pack__label  { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.credit-pack__price  { font-size: 1.2rem; font-weight: 600; color: var(--gold); margin-bottom: 1.25rem; }

.coming-soon-banner {
  background: rgba(201,169,110,0.06);
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.coming-soon-banner__icon  { font-size: 2rem; margin-bottom: 0.75rem; }
.coming-soon-banner__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.coming-soon-banner__text  { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Utilities ---------- */
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-2  { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.text-sm     { font-size: 0.85rem; }
