/* =========================================================
   PENTA — Anasayfa (home) stilleri
   Ortak tokenlar: style.css
   ========================================================= */

/* ---------- Ortak bölüm başlıkları ---------- */
.section-head { display: grid; gap: 22px; max-width: 860px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--row { max-width: none; }
.section-head .lead { margin: 0; }
.h1 em, .h2 em, .display-hero em { font-style: italic; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(20px, 3vw, 36px);
  /* WebGL yoksa da şık görünen sıcak/soğuk gradient zemin */
  background:
    radial-gradient(ellipse 55% 65% at 70% 42%, rgba(201, 214, 220, 0.55), transparent 70%),
    radial-gradient(ellipse 45% 45% at 12% 95%, rgba(184, 155, 110, 0.12), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-fallback {
  position: absolute; top: 50%; right: -4vw; width: min(64vw, 820px); aspect-ratio: 1;
  transform: translateY(-52%); opacity: 0.5; transition: opacity 1.4s var(--ease-out);
}
.hero-fallback svg { width: 100%; height: 100%; overflow: visible; }
.hero-fallback path { stroke: var(--teal); stroke-width: 0.22; stroke-linecap: round; }
.hero-fallback circle { stroke: var(--teal); stroke-width: 0.08; opacity: 0.5; }
.hero.is-webgl .hero-fallback { opacity: 0; }
.hero-canvas { opacity: 0; transition: opacity 1.8s var(--ease-out); }
.hero.is-webgl .hero-canvas { opacity: 1; }

.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: clamp(18px, 2.5vw, 28px); }
.hero-title {
  /* yüksekliğe de duyarlı: kısa ekranlarda taşmasın */
  font-size: clamp(2.7rem, min(8.4vw, 13.2vh), 8rem);
  max-width: 11.5ch; margin-bottom: clamp(28px, 4vw, 52px);
}
.hero-title .italic { padding-right: 0.06em; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.hero-lead { margin: 0; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn:not(.btn-primary) { background: rgba(245, 241, 234, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.hero-meta {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(32px, 5vh, 64px); padding-top: 18px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.hero-meta::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; padding-block: 6px; }
.scroll-cue-line { position: relative; width: 1px; height: 36px; background: var(--line-strong); overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; inset: 0; background: var(--teal);
  transform: translateY(-100%); animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.hero-note { margin: 0; display: flex; align-items: center; gap: 12px; }
.hero-note .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sand); }
.hero-note .phi { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.08em; text-transform: none; font-style: italic; color: var(--teal); }

/* =========================================================
   2. MARQUEE
   ========================================================= */
.marquee {
  position: relative; z-index: 2; overflow: hidden; background: var(--cream);
  border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 30px);
}
.marquee-row { display: flex; overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; flex: none; will-change: transform; }
.marquee-group { display: flex; flex: none; align-items: center; }
.marquee-row--big .marquee-group span {
  font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 400; line-height: 1.2; color: var(--ink);
  padding-inline: clamp(18px, 2.4vw, 36px);
}
.marquee-row--big em { font-style: italic; color: var(--teal); }
.m-sep {
  flex: none; width: clamp(22px, 2.6vw, 34px); height: clamp(22px, 2.6vw, 34px);
  background: url("../img/mark.svg") center / contain no-repeat; opacity: 0.8;
}
.marquee-row--small { margin-top: 10px; }
.marquee-row--small .marquee-group span {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: var(--teal-soft);
  padding-inline: 28px; position: relative;
}
.marquee-row--small .marquee-group span::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 1px; background: var(--sand);
}

/* =========================================================
   3. FELSEFE
   ========================================================= */
.philosophy { z-index: 2; background: var(--cream); }
.philo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(32px, 5vw, 64px); }
.philo-index { font-size: 0.72rem; letter-spacing: 0.3em; color: var(--muted); }
.philo-text {
  font-family: var(--font-display); font-weight: 400; color: var(--ink);
  font-size: clamp(1.75rem, 3.7vw, 3.5rem); line-height: 1.16; letter-spacing: -0.01em;
  max-width: min(100%, 21em); margin: 0;
  text-indent: clamp(40px, 12vw, 220px);
}
.philo-text em { font-style: italic; color: var(--teal); }
.philo-text .w { display: inline; }

.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(64px, 9vw, 128px); padding-top: 36px; border-top: 1px solid var(--line);
}
.principle-num { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--sand); margin-bottom: 18px; }
.principle .h3 { margin-bottom: 12px; }
.principle p { color: var(--muted); max-width: 36ch; margin: 0; }

/* =========================================================
   4. HİZMETLER
   ========================================================= */
.services { z-index: 2; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.service-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px;
  padding: clamp(26px, 2.6vw, 38px); border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--cream) 0%, var(--paper) 100%);
  transform-style: preserve-3d; transition: border-color 0.5s var(--ease-out), box-shadow 0.6s var(--ease-out);
  overflow: hidden;
}
/* imleci izleyen yumuşak ışık */
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 95, 120, 0.09), transparent 60%);
}
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.service-card:hover::before { opacity: 1; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 36px; }
.service-num { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; color: var(--muted); }
.service-icon { width: 64px; height: 64px; stroke: var(--teal); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.9s var(--ease-out); transform: translateZ(30px); }
.service-icon .faint { opacity: 0.35; }
.service-icon .knob { fill: var(--cream); transition: transform 0.8s var(--ease-out); transform-box: fill-box; }
.service-card:hover .service-icon { transform: translateZ(30px) rotate(-6deg) scale(1.06); }
.service-card:hover .knob:nth-of-type(1) { transform: translateY(-8px); }
.service-card:hover .knob:nth-of-type(2) { transform: translateY(10px); }
.service-card:hover .knob:nth-of-type(3) { transform: translateY(-4px); }
.service-card .h3 { transform: translateZ(20px); }
.service-card .h3 span { display: block; margin-top: 4px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal-soft); }
.service-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* =========================================================
   5. OTICON / BRAINHEARING
   ========================================================= */
.oticon { z-index: 2; overflow: hidden; }
.oticon::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(63, 118, 144, 0.22), transparent 70%);
}
.oticon-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.oticon-copy .eyebrow { margin-bottom: 22px; }
.oticon-copy .h1 { margin-bottom: 28px; }
.oticon-copy .h1 .italic { color: var(--mist); }
.oticon-copy .lead { margin-bottom: 40px; }
.oticon-points { list-style: none; margin: 0 0 44px; padding: 0; display: grid; }
.oticon-points li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding-block: 20px; border-top: 1px solid rgba(201, 214, 220, 0.14); }
.oticon-points li:last-child { border-bottom: 1px solid rgba(201, 214, 220, 0.14); }
.pt-num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--sand); padding-top: 2px; }
.oticon-points h3 { font-size: 1.45rem; margin-bottom: 6px; }
.oticon-points p { margin: 0; font-size: 0.95rem; color: var(--mist); opacity: 0.85; }

.clarity { margin: 0; }
.clarity-panel {
  position: relative; aspect-ratio: 5 / 6; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(201, 214, 220, 0.14);
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(63, 118, 144, 0.28), transparent 70%),
    linear-gradient(180deg, #17303f 0%, #132834 100%);
  touch-action: pan-y;
}
.clarity-fallback { position: absolute; inset: 22% 0; width: 100%; height: 56%; stroke: var(--mist); stroke-width: 1; transition: opacity 1s; }
.clarity.is-webgl .clarity-fallback { opacity: 0; }
.clarity-canvas { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.clarity.is-webgl .clarity-canvas { opacity: 1; }
.clarity-ui {
  position: absolute; inset: 0; padding: clamp(20px, 2.4vw, 32px); pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.clarity-state { position: relative; display: grid; font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; color: var(--cream); }
.clarity-state span { grid-area: 1 / 1; transition: opacity 0.4s; }
.clarity-state [data-state="clear"] { opacity: 0; }
.clarity-state em { font-style: italic; color: var(--mist); }
.clarity-hint { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal-soft); padding-top: 8px; }
.clarity-meter {
  position: absolute; left: clamp(20px, 2.4vw, 32px); right: clamp(20px, 2.4vw, 32px); bottom: clamp(20px, 2.4vw, 32px);
  display: flex; align-items: center; gap: 14px; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--teal-soft);
}
.clarity-bar { position: relative; flex: 1; height: 1px; background: rgba(201, 214, 220, 0.2); }
.clarity-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--clarity, 1) * 100%); background: var(--mist);
}
.clarity-bar i::after {
  content: ""; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--sand);
}
.clarity figcaption { margin-top: 16px; font-size: 0.82rem; color: var(--teal-soft); }

/* =========================================================
   6. SÜREÇ
   ========================================================= */
.process { z-index: 2; background: var(--cream); }
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.process-aside { align-self: stretch; }
.process-sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; }
.process-spiral { position: relative; margin-top: clamp(20px, 3vw, 40px); width: min(100%, 420px); }
.process-spiral svg { width: 100%; height: auto; overflow: visible; }
.process-spiral .golden-frame { stroke: var(--line-strong); stroke-width: 0.12; }
.process-spiral .spiral-base { stroke: var(--line); stroke-width: 0.3; }
.process-spiral .spiral-draw { stroke: var(--teal); stroke-width: 0.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.process-counter {
  position: absolute; right: 0; bottom: -8px; font-family: var(--font-display); font-size: 1.25rem; color: var(--muted);
}
.process-counter [data-step-current] { color: var(--teal); font-style: italic; }

.process-steps { position: relative; padding-left: clamp(28px, 4vw, 56px); }
.process-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.process-progress span { position: absolute; inset: 0; background: var(--teal); transform-origin: top; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.step {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px;
  padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line);
}
.step:first-child { padding-top: 0; }
.step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(28px, 4vw, 56px) - 5px); top: clamp(40px, 6vw, 80px);
  width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--cream);
  transition: background-color 0.5s, border-color 0.5s, transform 0.6s var(--ease-out);
}
.step:first-child::before { top: 4px; }
.step.is-active::before { background: var(--teal); border-color: var(--teal); transform: scale(1.2); }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--sand); line-height: 1.2; }
.step .h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 16px; transition: color 0.5s; }
.step p { margin: 0; color: var(--muted); max-width: 46ch; }
.js .step:not(.is-active) .h2 { color: rgba(28, 52, 68, 0.45); }

/* =========================================================
   7. GÜVEN
   ========================================================= */
.trust { z-index: 2; }
.trust-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.stat { padding-top: 28px; border-top: 1px solid var(--ink); }
.stat-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 16px; margin: 0 0 20px; font-family: var(--font-display); color: var(--teal); line-height: 0.9; }
.stat-num { font-size: clamp(5.5rem, 13vw, 11rem); font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.stat-unit { font-size: clamp(1.8rem, 3.4vw, 3rem); font-style: italic; }
.stat-text { max-width: 44ch; color: var(--ink); font-size: 1.05rem; }
.stat-source { margin: 0; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.qualities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.quality { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line); }
.quality:nth-child(odd) { border-right: 1px solid var(--line); }
.quality:nth-child(even) { padding-left: 24px; padding-right: 0; }
.quality-word { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; color: var(--ink); margin-bottom: 12px; }
.quality-word em { font-style: italic; color: var(--teal); }
.quality p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* =========================================================
   8. SSS
   ========================================================= */
.faq { z-index: 2; background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq-aside { display: grid; gap: 22px; justify-items: start; }
.faq-aside p { margin: 0; max-width: 34ch; }
.faq-phone { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item h3 { font-family: var(--font-sans); font-size: inherit; font-weight: inherit; line-height: inherit; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left;
  padding: 26px 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.2; color: var(--ink);
  transition: color 0.4s;
}
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--teal); }
.faq-icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.5s, border-color 0.5s, transform 0.6s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.2px; margin: -0.6px 0 0 -6px; background: currentColor; transition: transform 0.6s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--teal); border-color: var(--teal); color: var(--cream); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
/* Akordeon: grid 0fr → 1fr ile yükseklik animasyonu; JS yoksa hepsi açık */
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 64px 28px 0; color: var(--muted); max-width: 64ch; }
.js .faq-a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.6s var(--ease-out), visibility 0s linear 0.6s; }
.js .faq-a.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.6s var(--ease-out), visibility 0s linear 0s; }

/* =========================================================
   9. FİNAL CTA
   ========================================================= */
.cta { z-index: 2; overflow: hidden; text-align: center; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.cta-mark {
  position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%);
  opacity: 0.12; pointer-events: none;
}
.cta-mark img { width: 100%; height: 100%; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.cta-title { font-size: clamp(2.6rem, 7.4vw, 7rem); max-width: 14ch; }
.cta-lead { margin: 0 auto; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 36px; margin-top: 12px; }
.cta-phone { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--teal); }
.cta-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 24px 0 0; font-size: 0.82rem; letter-spacing: 0.08em; color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oticon-grid, .trust-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .clarity-panel { aspect-ratio: 4 / 3; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-sticky { position: relative; top: 0; }
  .process-spiral { width: min(70%, 300px); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-fallback { right: -30vw; width: 110vw; top: 34%; opacity: 0.32; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; }
  .service-top { padding-bottom: 20px; }
  .clarity-panel { aspect-ratio: 4 / 5; }
  .hero-note { display: none; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .philo-text { text-indent: 0; }
  .philo-index { display: none; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .qualities { grid-template-columns: minmax(0, 1fr); }
  .quality, .quality:nth-child(even) { padding: 24px 0; border-right: 0; }
  .quality:nth-child(odd) { border-right: 0; }
  .faq-a p { padding-right: 0; }
  .faq-icon { width: 34px; height: 34px; }
  .clarity-hint { display: none; }
}

/* Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line::after { animation: none; transform: none; }
  .cta-mark img { animation: none; }
}
