/* ============================================================
   724egitim.com — style.css  v4
   ============================================================ */

/* ------------------------------------------------------------------ */
/* TOKENS                                                               */
/* ------------------------------------------------------------------ */
:root {
  --black:    #04060d;
  --ink:      #0b0f1c;
  --surface:  #111827;
  --rim:      rgba(255,255,255,.07);
  --rim-hi:   rgba(255,255,255,.13);
  --cyan:     #3ff6c8;
  --cyan-dim: rgba(63,246,200,.12);
  --gold:     #f5c842;
  --gold-dim: rgba(245,200,66,.10);
  --muted:    #6b7280;
  --sub:      #9ca3af;
  --body:     #d1d5db;
  --white:    #f9fafb;
  --font:     'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Courier New', monospace;
  --ease:     cubic-bezier(.16,1,.3,1);
  --t3:       .3s var(--ease);
}

/* ------------------------------------------------------------------ */
/* RESET + BASE                                                         */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* prevent any child from widening the page */
  word-break: break-word;
  overflow-wrap: break-word;
  background-image: radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 28px 28px;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
textarea { resize: vertical; }
ul { list-style: none; }

/* Global overflow guard — nothing escapes the viewport */
* { min-width: 0; }

/* ------------------------------------------------------------------ */
/* SHARED INNER WRAPPER                                                 */
/* ------------------------------------------------------------------ */
.inner {
  width: 100%;            /* explicit width so it never exceeds parent */
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3.5rem);
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* TYPOGRAPHY ATOMS                                                     */
/* ------------------------------------------------------------------ */
.eyebrow {
  font-size: .72rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
  display: block;  /* ensure block so it doesn't stretch parent */
}
.title {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 100%; /* never wider than container */
}
.body-text {
  font-size: .95rem;
  color: var(--sub);
  line-height: 1.7;
  /* removed max-width:54ch — it can exceed container on mobile */
}

/* ------------------------------------------------------------------ */
/* NAV                                                                  */
/* ------------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(4,6,13,.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--rim);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  overflow: hidden; /* prevent nav from causing overflow */
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.025em;
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo-mark { color: var(--cyan); display: flex; align-items: center; }
.nav-logo-text em { font-style: normal; color: var(--cyan); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .73rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  user-select: none;
}
.lang-opt        { color: var(--muted); transition: color var(--t3); }
.lang-opt:hover  { color: var(--sub); }
.lang-opt.active { color: var(--white); }
.lang-sep        { color: var(--rim-hi); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1rem;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--black);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all var(--t3);
}
.nav-cta:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(63,246,200,.3);
}

/* ------------------------------------------------------------------ */
/* HERO                                                                 */
/* ------------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem clamp(.75rem, 4vw, 3.5rem) 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%,   rgba(63,246,200,.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%,   rgba(99,102,241,.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
}

/* Kicker */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.hero-kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { box-shadow: 0 0 0 0 rgba(63,246,200,.6); }
  50%      { box-shadow: 0 0 0 7px rgba(63,246,200,0); }
}

/* Main title */
.hero-title {
  /* vw-only scaling = always fits viewport width */
  font-size: min(13vw, 7.5rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
  /* emergency clamp for very wide screens */
  max-width: 100%;
}
.hero-domain {
  display: block;
  background: linear-gradient(130deg, #ffffff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tld { -webkit-text-fill-color: var(--cyan); font-weight: 300; }

.hero-sub {
  max-width: 560px;
  margin-inline: auto;
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: var(--sub);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: dropLine 2s infinite;
}
@keyframes dropLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ------------------------------------------------------------------ */
/* BUTTONS                                                              */
/* ------------------------------------------------------------------ */
.btn-primary, .btn-ghost, .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.6rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t3);
  border: none;
}
.btn-primary { background: var(--cyan); color: var(--black); }
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(63,246,200,.3);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--rim-hi);
  color: var(--sub);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}
.btn-primary:active, .btn-ghost:active { transform: scale(.98); }

/* ------------------------------------------------------------------ */
/* STATS BAR                                                            */
/* ------------------------------------------------------------------ */
.stats-bar {
  border-top: 1px solid var(--rim);
  border-bottom: 1px solid var(--rim);
  background: var(--surface);
}
.stats-bar .inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding-block: 2rem;
}
.stat-item {
  flex: 1 1 140px;
  text-align: center;
  padding: .75rem 1rem;
  min-width: 120px;
}
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .3rem;
}
/* Text-only counters (Temiz / ✓ Aktif) */
.stat-num[data-counter="spam"],
.stat-num[data-counter="sandbox"] {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cyan);
  letter-spacing: 0;
}
.stat-label {
  font-size: .7rem;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--rim);
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* SECTION WRAPPER                                                      */
/* ------------------------------------------------------------------ */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--rim);
  border-bottom: 1px solid var(--rim);
}

/* ------------------------------------------------------------------ */
/* HISTORY SECTION                                                      */
/* ------------------------------------------------------------------ */
.history-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
/* prevent grid children from creating implicit min-width */
.history-text,
.history-visual { min-width: 0; overflow: hidden; }
.history-list { display: flex; flex-direction: column; gap: .65rem; padding: 0; }
.history-list li {
  font-size: .875rem;
  color: var(--sub);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
  word-break: break-word;    /* long Turkish words wrap */
  overflow-wrap: break-word;
}
.history-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .58em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.history-list li strong { color: var(--white); font-weight: 700; }

/* Archive card */
.archive-card {
  border-radius: 12px;
  border: 1px solid var(--rim-hi);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.archive-card-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--rim);
  background: var(--surface);
}
.archive-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.archive-dot.red    { background: #ff5f57; }
.archive-dot.yellow { background: #febc2e; }
.archive-dot.green  { background: #28c840; }
.archive-url {
  margin-left: .4rem;
  font-size: .68rem;
  font-family: var(--mono);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;  /* flex child must be constrained */
  flex: 1;       /* take remaining space, don't push past container */
}
.archive-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.history-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .7rem;
  border-radius: 4px;
  border: 1px solid var(--rim-hi);
  font-size: .69rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--sub);
}
.badge-gold {
  border-color: rgba(245,200,66,.3);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ------------------------------------------------------------------ */
/* ROI CALCULATOR                                                       */
/* ------------------------------------------------------------------ */
.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}
.roi-controls { display: flex; flex-direction: column; gap: 1.5rem; }

.slider-field { display: flex; flex-direction: column; gap: .5rem; }
.slider-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.slider-field label  { font-size: .82rem; font-weight: 600; color: var(--sub); }
.slider-field output {
  font-size: .82rem;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--rim-hi);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 1px var(--cyan);
  cursor: pointer;
  transition: transform var(--t3), box-shadow var(--t3);
}
.slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 14px rgba(63,246,200,.5);
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--black);
  cursor: pointer;
}

.roi-chart-bar {
  border-radius: 8px;
  border: 1px solid var(--rim);
  background: var(--black);
  padding: .5rem;
  overflow: hidden;
}
#roi-chart { width: 100%; height: 60px; display: block; }

/* Result cards */
.roi-results { display: flex; flex-direction: column; gap: 1rem; }
.result-card {
  border-radius: 12px;
  border: 1px solid var(--rim);
  padding: 1.5rem 1.75rem;
  background: var(--black);
}
.result-label {
  font-size: .72rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.result-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -.04em;
  line-height: 1;
}
.result-yearly {
  border-color: rgba(63,246,200,.2);
  background: linear-gradient(135deg, rgba(63,246,200,.05), var(--black));
}
.result-big { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); }
.result-note { font-size: .76rem; color: var(--muted); margin-top: .6rem; }

/* ------------------------------------------------------------------ */
/* USE CASES                                                            */
/* ------------------------------------------------------------------ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.case-card {
  border-radius: 12px;
  border: 1px solid var(--rim);
  padding: 1.5rem;
  background: var(--surface);
  transition: border-color var(--t3), transform var(--t3), box-shadow var(--t3);
  position: relative;
  overflow: hidden;
}
.case-card:hover {
  border-color: var(--rim-hi);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.case-featured {
  border-color: rgba(63,246,200,.22);
  background: linear-gradient(135deg, rgba(63,246,200,.06) 0%, var(--surface) 60%);
}
.case-featured::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--cyan);
}
.case-num {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .65rem;
}
.case-featured .case-num { color: var(--cyan); }
.case-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.case-desc  { font-size: .85rem; color: var(--sub); line-height: 1.6; }

/* ------------------------------------------------------------------ */
/* WHY STRIP                                                            */
/* ------------------------------------------------------------------ */
.why-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.why-item { display: flex; flex-direction: column; gap: .7rem; }
.why-item svg    { color: var(--cyan); flex-shrink: 0; }
.why-item p      { font-size: .875rem; color: var(--sub); line-height: 1.6; }
.why-item strong { color: var(--white); }

/* ------------------------------------------------------------------ */
/* CONTACT                                                              */
/* ------------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-meta { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.meta-row     { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--sub); }
.meta-row svg { color: var(--cyan); flex-shrink: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--sub);
}
.form-field input,
.form-field textarea {
  padding: .6rem .85rem;
  border-radius: 8px;
  border: 1px solid var(--rim-hi);
  background: var(--black);
  color: var(--white);
  font-size: .88rem;
  outline: none;
  transition: border-color var(--t3), box-shadow var(--t3);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(63,246,200,.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }

.btn-submit {
  width: 100%;
  background: var(--cyan);
  color: var(--black);
}
.btn-submit:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(63,246,200,.3);
}
.btn-submit:active  { transform: scale(.98); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ------------------------------------------------------------------ */
/* FOOTER                                                               */
/* ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--rim); padding-block: 1.5rem; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { font-size: .9rem; font-weight: 700; color: var(--white); letter-spacing: -.02em; }
.footer-logo em { font-style: normal; color: var(--cyan); }
.footer-note { font-size: .75rem; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* SCROLL REVEAL                                                        */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible     { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ------------------------------------------------------------------ */
/* RESPONSIVE — ≤ 860px (tablet)                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  /* Stats: 2×2 grid */
  .stats-bar .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: 0;
    border: 1px solid var(--rim);
    border-radius: 4px;
    overflow: hidden;
  }
  .stat-item {
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--rim);
    border-bottom: 1px solid var(--rim);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-divider { display: none; }

  /* Two-column → single column */
  .history-layout,
  .roi-layout,
  .contact-layout { grid-template-columns: 1fr; }

  .cases-grid { grid-template-columns: 1fr; }
  .why-items  { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row   { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE — ≤ 560px (mobile)                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 560px) {
  /* Hero title: enforce vw fit */
  .hero-title  { font-size: 12vw; letter-spacing: -.03em; }
  .hero-sub    { font-size: .88rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  /* Nav: hide logo text on very small, keep icon + CTA */
  .nav-logo-text { font-size: .88rem; }
  .nav-cta { padding: .38rem .75rem; font-size: .75rem; }
  .lang-toggle  { gap: .25rem; font-size: .68rem; }

  /* Stats: compact */
  .stat-num { font-size: 1.6rem; }
  .stat-num[data-counter="spam"],
  .stat-num[data-counter="sandbox"] { font-size: 1rem; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }

  /* Contact form */
  .contact-form { padding: 1.1rem; }

  /* Section spacing */
  .section { padding-block: 2.5rem; }
}

/* ------------------------------------------------------------------ */
/* REDUCED MOTION                                                       */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
