/* =========================================================================
   landing.css — Premium academic landing (Instrument-Elevated)
   Loaded AFTER styles.css. All landing-specific styling lives here, scoped
   under .lp / body.lp. Uses ONLY the canonical tokens from styles.css :root.
   One jade accent · Newsreader verdict · Inter UI · IBM Plex Mono record.
   ========================================================================= */

body.lp {
  /* Local rhythm tokens (spacing scale) — kept local so styles.css untouched */
  --lp-sp: 22px;
  --lp-r: 14px;            /* card radius */
  --lp-r-sm: 10px;
  --lp-shadow: 0 1px 2px color-mix(in srgb, var(--text) 5%, transparent),
               0 8px 28px color-mix(in srgb, var(--text) 4%, transparent);
  --lp-maxw: 1120px;
}

/* widen the shared wrap a touch for the landing only */
body.lp .wrap { max-width: var(--lp-maxw); padding: 0 28px; }

body.lp .hairline { background: var(--border); opacity: .9; }

/* tabular numbers everywhere data lives */
body.lp .num,
body.lp .lp-flow-meta,
body.lp .mono { font-variant-numeric: tabular-nums; }

/* ============ TOP NAV ============ */
.lp-top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-top-in { display: flex; align-items: center; gap: 18px; height: 66px; }

.lp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; flex: none;
}
.lp-brand:hover { text-decoration: none; }
.lp-logomark {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
}
.lp-wordmark {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600; font-size: 21px; letter-spacing: -0.01em;
  color: var(--text);
}

.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lp-nav > a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.lp-nav > a:hover { color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--text) 5%, transparent); }
.lp-nav-quiet { color: var(--text); }
.lp-nav-sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }

.lp-lang {
  display: inline-flex; align-items: center; gap: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 11px; font: 500 12.5px/1 "IBM Plex Mono", monospace;
  color: var(--text-muted); cursor: pointer; letter-spacing: .03em;
  transition: border-color .15s ease, color .15s ease;
}
.lp-lang:hover { border-color: var(--accent); color: var(--text); }
.lp-lang .dot { margin: 0 5px; color: var(--border); }
.lp-lang .on { color: var(--text); }
.lp-lang.alt .on { color: var(--text-muted); }
.lp-lang.alt span:last-child { color: var(--text); }

.lp-theme {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-muted); font-size: 17px; cursor: pointer; line-height: 1;
  transition: border-color .15s ease, color .15s ease;
}
.lp-theme:hover { border-color: var(--accent); color: var(--text); }
.lp-cta { margin-left: 4px; height: 40px; }

/* shared focus ring (matches styles.css intent, ensure visible on all controls) */
body.lp .lp-lang:focus-visible,
body.lp .lp-theme:focus-visible,
body.lp .lp-brand:focus-visible,
body.lp .lp-nav > a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px;
}

/* ============ SHARED TYPE ============ */
.lp-eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
}
.lp-h1 {
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: clamp(42px, 6.4vw, 78px); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--text);
  margin: 18px 0 0; max-width: 16ch;
}
.lp-h2 {
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--text); margin: 12px 0 0;
  max-width: 22ch;
}
.lp-lead {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6;
  color: var(--text-muted); max-width: 60ch; margin: 22px 0 0;
}
.lp-lead b { color: var(--text); font-weight: 600; }
.lp-sec-lead { font-size: 16.5px; color: var(--text-muted); max-width: 58ch; margin: 14px 0 0; }

.lp-sec { padding: 88px 0; }
.lp-sec-tight { padding-top: 0; }

/* ============ HERO ============ */
.lp-hero { padding: 96px 0 40px; }
.lp-hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-hero-in .lp-lead { margin-left: auto; margin-right: auto; }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }

body.lp .btn { height: 44px; padding: 0 20px; border-radius: 9px; font-weight: 500; }
.lp-btn-ghost { background: transparent; }
.lp-btn-ghost:hover { border-color: var(--accent); }

/* ---- brand laurel logomark ---- */
.lp-logomark-laurel .lp-laurel-l,
.lp-logomark-laurel .lp-laurel-r { stroke: var(--accent); }
.lp-logomark-laurel .lp-seal-s { stroke: var(--accent-ink); stroke-width: 2; }

/* =========================================================================
   HERO CENTERPIECE — luminous transformation stage
   LEFT card · CENTER flowing energy stream + laurel "S" seal · RIGHT card · SSCI panel
   ========================================================================= */
.lp-stage {
  margin: 60px 0 0; width: 100%; max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px, 300px) minmax(0,1fr) auto;
  align-items: center; gap: 0;
  text-align: left;
}

/* cards */
.lp-flow-card {
  position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--lp-r); padding: 22px 22px 20px;
  box-shadow: var(--lp-shadow);
  opacity: 0; transform: translateY(10px) scale(.99);
  animation: lp-card-in .7s cubic-bezier(.22,.61,.36,1) forwards;
}
.lp-flow-src { animation-delay: .05s; }
.lp-flow-out {
  animation-delay: .95s; border-left: 3px solid var(--accent);
  box-shadow: var(--lp-shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
              0 10px 40px color-mix(in srgb, var(--accent) 14%, transparent);
}
.lp-flow-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
}
.lp-flow-title {
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: 17.5px; line-height: 1.38; color: var(--text);
  margin: 12px 0 16px;
}
.lp-flow-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lp-flow-meta .num {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 8px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.lp-lock { margin-left: auto; color: var(--accent-ink); display: inline-flex; }
.lp-lock svg { width: 16px; height: 16px; }

/* ---- CENTER: flowing energy stream ---- */
.lp-stream {
  position: relative; z-index: 1;
  align-self: stretch; min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  /* let cards overlap into the stream edges so the light "enters" them */
  margin: 0 -18px;
}
.lp-stream-glow {
  position: absolute; inset: 18% 4%; border-radius: 50%;
  background: radial-gradient(ellipse at center,
    color-mix(in srgb, var(--accent) 26%, transparent) 0%,
    color-mix(in srgb, var(--accent) 9%, transparent) 38%,
    transparent 70%);
  filter: blur(14px);
  opacity: 0; animation: lp-glow-in 1.1s ease .5s forwards;
}
.lp-stream-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.lp-band {
  stroke: color-mix(in srgb, var(--accent) 34%, transparent);
  stroke-width: 1.2; fill: none;
  stroke-dasharray: 2 7; opacity: .55;
  animation: lp-band-drift 3.2s linear infinite;
}
.lp-core {
  stroke-width: 3.2; fill: none;
  stroke-linecap: round;
  stroke-dasharray: 26 320; stroke-dashoffset: 346;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 60%, transparent));
  animation: lp-core-flow 2.4s linear infinite;
}
.lp-spark { opacity: .95; }

/* the laurel "S" seal sits at the optical center of the stream */
.lp-seal {
  position: relative; z-index: 3; flex: none;
  width: 84px; height: 84px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--accent);
  background: radial-gradient(circle at 50% 42%,
    color-mix(in srgb, var(--accent) 14%, var(--surface)) 0%, var(--surface) 70%);
  color: var(--accent-ink);
  box-shadow: var(--lp-shadow),
    0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent),
    0 0 26px color-mix(in srgb, var(--accent) 26%, transparent);
  animation: lp-seal-breathe 3.4s ease-in-out infinite;
}
.lp-seal svg { width: 46px; height: 46px; }
.lp-seal .lp-laurel-l, .lp-seal .lp-laurel-r { stroke: var(--accent); }
.lp-seal .lp-seal-s { stroke: var(--accent-ink); stroke-width: 2; }
.lp-seal-halo {
  position: absolute; inset: -3px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 68%);
  filter: blur(6px); opacity: .7;
  animation: lp-seal-glow 3.4s ease-in-out infinite;
}
.lp-seal-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0;
  animation: lp-pulse 2.8s ease-out infinite;
}

/* ---- floating mechanism chips (around the stream) ---- */
.lp-fchip {
  position: absolute; z-index: 4; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 11px 5px 9px;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--text) 6%, transparent);
  opacity: 0; transform: translateY(6px) scale(.96);
  animation: lp-chip-in .55s cubic-bezier(.22,.61,.36,1) forwards,
             lp-chip-float 5s ease-in-out infinite;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + .55s);
}
.lp-fchip .lp-tick { width: 13px; height: 13px; }
/* above */
.lp-fchip-up { top: 8%; }
.lp-fchip-a { left: 2%; }
.lp-fchip-b { left: 50%; margin-left: -64px; top: -2%; }   /* ~centered above seal */
.lp-fchip-c { right: 2%; }
/* below */
.lp-fchip-dn { bottom: 6%; }
.lp-fchip-d { left: 0%; }
.lp-fchip-e { left: 24%; }
.lp-fchip-f { left: 50%; margin-left: -58px; bottom: -3%; } /* ~centered below seal */
.lp-fchip-g { right: 22%; }
.lp-fchip-h { right: -2%; }

.lp-tick {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  background: var(--accent); position: relative; display: inline-block;
}
.lp-tick::after {
  content: ""; position: absolute; left: 4.2px; top: 2.2px;
  width: 3.4px; height: 6.2px; border: solid #06231F;
  border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
[data-mode="dark"] .lp-tick::after { border-color: #04211C; }

/* ---- FAR-RIGHT: SSCI / SCI compliance panel ---- */
.lp-ssci {
  position: relative; z-index: 2; margin-left: 14px; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--lp-r); padding: 18px 18px;
  box-shadow: var(--lp-shadow);
  opacity: 0; transform: translateY(10px);
  animation: lp-card-in .7s cubic-bezier(.22,.61,.36,1) 1.1s forwards;
}
.lp-ssci-tag {
  font-size: 10.5px; letter-spacing: .14em; color: var(--accent-ink);
  display: block; margin-bottom: 12px;
}
.lp-ssci-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.lp-ssci-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text); }
.lp-ck {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-ink);
}
.lp-ck svg { width: 11px; height: 11px; }

/* ---- keyframes ---- */
@keyframes lp-card-in { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes lp-glow-in { to { opacity: 1; } }
@keyframes lp-chip-in { to { opacity: 1; } }
@keyframes lp-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes lp-band-drift { to { stroke-dashoffset: -36; } }
@keyframes lp-core-flow { to { stroke-dashoffset: 0; } }
@keyframes lp-seal-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes lp-seal-glow {
  0%, 100% { opacity: .55; }
  50% { opacity: .9; }
}
@keyframes lp-pulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}

/* ============ FEATURES ============ */
.lp-features {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--lp-r); overflow: hidden;
}
.lpf {
  background: var(--surface); padding: 26px 22px;
  display: flex; flex-direction: column;
  transition: background .15s ease;
}
.lpf:hover { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.lpf-ic {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--accent-ink); margin-bottom: 16px;
}
.lpf-ic svg { width: 21px; height: 21px; }
.lpf h3 {
  font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 19px;
  color: var(--text); margin: 0 0 7px; letter-spacing: -0.01em;
}
.lpf p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.lpf-meta {
  margin-top: auto; padding-top: 16px;
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .02em;
  color: var(--accent-ink);
}

/* ============ TRUST BAND ============ */
.lp-trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--lp-r); overflow: hidden;
}
.lp-tb { background: var(--surface); padding: 24px 22px; display: flex; gap: 14px; align-items: flex-start; }
.lp-tb-ic {
  flex: none; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); border: 1px solid var(--border); border-radius: 9px;
}
.lp-tb-ic svg { width: 19px; height: 19px; }
.lp-tb b { font-size: 14.5px; font-weight: 600; color: var(--text); display: block; }
.lp-tb small { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; display: block; margin-top: 4px; }

/* ============ PROSE (Hakkımızda) ============ */
.lp-prose-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.lp-prose-body p { font-size: 16.5px; line-height: 1.7; color: var(--text-muted); margin: 0 0 14px; max-width: 56ch; }
.lp-prose-body p:last-child { margin-bottom: 0; }
.lp-prose-body b { color: var(--text); font-weight: 600; }
.lp-prose-body em { font-style: italic; color: var(--text); }

/* ============ STEPS (pipeline) ============ */
.lp-steps {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--lp-r); overflow: hidden;
}
.lp-step {
  background: var(--surface); padding: 22px 24px;
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: baseline;
  transition: background .15s ease;
}
.lp-step:hover { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.lp-step-n { font-family: "IBM Plex Mono", monospace; font-size: 15px; color: var(--accent-ink); }
.lp-step h3 { font-size: 16.5px; font-weight: 600; color: var(--text); margin: 0; }
.lp-step p { font-size: 14.5px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 0; max-width: 70ch; }

/* ============ PRICE ============ */
.lp-price {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--lp-r); padding: 40px 40px; box-shadow: var(--lp-shadow);
}
.lp-price .lp-h2 { margin-top: 10px; }
.lp-price .lp-hero-cta { justify-content: flex-start; margin-top: 24px; }
.lp-price-seal { display: flex; justify-content: center; }
.lp-price-badge {
  display: inline-flex; align-items: center;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .18em;
  color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 999px; padding: 10px 18px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

/* ============ FOOTER ============ */
.lp-foot { border-top: 1px solid var(--border); padding: 34px 0; }
.lp-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.lp-brand-sm .lp-wordmark { font-size: 17px; }
.lp-foot-note { font-size: 12.5px; color: var(--text-muted); letter-spacing: .01em; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .lp-prose-wrap { grid-template-columns: 1fr; gap: 20px; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-price { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
  .lp-price-seal { justify-content: flex-start; }
}
/* ---- stage: stack the SSCI panel below at mid widths ---- */
@media (max-width: 1080px) {
  .lp-stage {
    grid-template-columns: minmax(0,1fr) minmax(180px,240px) minmax(0,1fr);
    grid-template-areas: "src stream out" "ssci ssci ssci";
    row-gap: 18px;
  }
  .lp-flow-src { grid-area: src; }
  .lp-stream { grid-area: stream; }
  .lp-flow-out { grid-area: out; }
  .lp-ssci { grid-area: ssci; margin-left: 0; }
  .lp-ssci-list { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
}

@media (max-width: 760px) {
  .lp-hero { padding: 64px 0 32px; }
  .lp-sec { padding: 64px 0; }
  .lp-nav > a[href="#hakkimizda"],
  .lp-nav > a[href="#prensip"],
  .lp-nav > a[href="#fiyat"],
  .lp-nav-sep { display: none; }            /* collapse section links on small screens */

  /* stage stacks vertically; the stream becomes a short vertical conduit */
  .lp-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "src" "stream" "out" "ssci";
    max-width: 480px; margin-left: auto; margin-right: auto; row-gap: 0;
  }
  .lp-stream { margin: -4px 0; min-height: 120px; }
  .lp-stream-svg { transform: rotate(90deg) scale(.9); }
  .lp-fchip { display: none; }              /* keep mobile stack uncluttered */
  .lp-flow-out { border-left: none; border-top: 3px solid var(--accent); }
  .lp-ssci { margin-top: 18px; }
  .lp-ssci-list { flex-direction: column; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-trust { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .lp-lang { display: none; }
}

/* ============ REDUCED MOTION — beautiful frozen composed state (glow kept, motion off) ============ */
@media (prefers-reduced-motion: reduce) {
  .lp-flow-card, .lp-ssci, .lp-fchip, .lp-stream-glow {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .lp-fchip-b { margin-left: -64px; }
  .lp-fchip-f { margin-left: -58px; }
  .lp-band { animation: none; opacity: .5; }
  .lp-core { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: .9; }
  .lp-spark { display: none; }              /* freeze: no moving particles */
  .lp-seal { animation: none; }
  .lp-seal-halo { animation: none; opacity: .7; }   /* glow stays, frozen */
  .lp-seal-ring { animation: none; opacity: .28; transform: scale(1.18); }
}
