/* =========================================================================
   AYKOMSAN KALIP — Tasarım sistemi
   (Tailwind utility'leri markup'ta; bileşen estetiği burada — saf CSS)
   Marka rengi: #ffc900
   ========================================================================= */

:root {
  --bg: #06070a;
  --brand: #ffc900;
  --brand-soft: #ffda47;
  --brand-deep: #e0ad00;
  --ink-900: #0a0b10;
  --ink-800: #10121a;
  --ink-700: #171a24;
  --text: #e8eaf0;
}

* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Dekoratif glow orb'lar / bölüm içerikleri yatay taşmayı tetiklemesin.
   (overflow-x: clip — sticky'i bozmaz, kaydırma kabı oluşturmaz.)
   Bu, mobilde fixed header'ın viewport genişliğinde kalmasını ve
   hamburger butonunun ekranda görünmesini garanti eder. */
section { overflow-x: clip; }

::selection { background: rgba(255, 201, 0, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #06070a; }
::-webkit-scrollbar-thumb { background: #20242f; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---- Layout ---- */
.container-x { margin-inline: auto; width: 100%; max-width: 80rem; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container-x { padding-inline: 2rem; } }

/* ---- Glassmorphism ---- */
.glass {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}
.glass-strong {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 24px 60px -20px rgba(0,0,0,0.7);
}

/* ---- Chip / badge ---- */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.02em; color: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.875rem 1.75rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.21,0.47,0.32,0.98);
  text-decoration: none; white-space: nowrap;
}
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.85rem; }
.btn-primary {
  position: relative; overflow: hidden; color: #0a0b10;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--brand) 60%, var(--brand-deep) 100%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px -6px rgba(255,201,0,0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); }
.btn-whatsapp {
  color: #6ee7b7; border: 1px solid rgba(52,211,153,0.3);
  background: rgba(16,185,129,0.10); backdrop-filter: blur(20px);
}
.btn-whatsapp:hover { transform: translateY(-2px); background: rgba(16,185,129,0.2); }

/* ---- Typography helpers ---- */
.section-title {
  font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; color: #fff; line-height: 1.1; text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(100deg, #fff3c4, var(--brand) 50%, var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem;
  font-weight: 700; color: var(--brand);
}

/* ---- Cards ---- */
.card-hover { transition: all 0.35s cubic-bezier(0.21,0.47,0.32,0.98); }
.card-hover:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); }

/* ---- Glow orbs ---- */
.glow-orb { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; z-index: 0; }

/* ---- Grid background ---- */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-grid-mask {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---- Animated conic ring (premium card) ---- */
.ring-conic { position: relative; }
.ring-conic::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from 180deg, transparent 0deg, rgba(255,201,0,0.9) 90deg, transparent 200deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite; pointer-events: none;
}

/* ---- Reveal on scroll ----
   Gizli başlangıç durumu YALNIZCA JS aktifken uygulanır (html.js).
   JS kapalıysa veya IntersectionObserver çalışmazsa içerik görünür kalır. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.21,0.47,0.32,0.98); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Keyframe animations ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatSlow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes pulseGlow { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes ping2 { 75%,100% { transform: scale(2.2); opacity: 0; } }

.anim-float { animation: float 6s ease-in-out infinite; }
.anim-float-slow { animation: floatSlow 9s ease-in-out infinite; }
.anim-pulse-glow { animation: pulseGlow 4s ease-in-out infinite; }

/* ---- Marquee (logos) ---- */
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }

/* ---- FAQ accordion ---- */
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item[open-state="true"] .faq-panel { max-height: 720px; }
.faq-item[open-state="true"] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* ---- Native <select> açılır menü okunabilirliği (dark/light) ----
   Tarayıcının açtığı seçenek listesinde arka plan ve yazı renginin
   aynı kalıp metnin görünmez olması sorununu çözer. */
select option { background-color: #10121a; color: #ffffff; }
select optgroup { background-color: #10121a; color: #ffffff; }
html[data-theme="light"] select option,
html[data-theme="light"] select optgroup { background-color: #ffffff; color: #14171f; }

/* ---- Yasal / prose içerik ---- */
.legal { color: rgba(232,234,240,0.72); line-height: 1.75; font-size: 0.975rem; }
.legal h2 { color: #fff; font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.legal h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal p { margin: 0.75rem 0; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal ul, .legal ol { margin: 0.75rem 0 0.75rem 1.25rem; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin: 0.4rem 0; padding-left: 0.25rem; }
.legal strong { color: rgba(255,255,255,0.92); }
/* .legal içindeki butonlar prose link stilini almasın (sarı-üstü-sarı görünmezliği önle) */
.legal .btn { text-decoration: none; }
.legal .btn-primary { color: #0a0b10 !important; }
.legal .btn-ghost { color: rgba(255,255,255,0.92) !important; }
.legal .btn-whatsapp { color: #6ee7b7 !important; }
.legal .btn:hover { text-decoration: none; }
html[data-theme="light"] .legal .btn-ghost { color: #14171f !important; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.legal th, .legal td { border: 1px solid rgba(255,255,255,0.12); padding: 0.6rem 0.85rem; text-align: left; }
.legal th { background: rgba(255,255,255,0.04); color: #fff; font-weight: 600; }

/* ---- Floating WhatsApp ---- */
.fab-whatsapp {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,0.6);
  transition: transform 0.25s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp::after {
  content: ''; position: absolute; inset: 0; border-radius: 9999px;
  background: #25D366; z-index: -1; animation: ping2 2.4s cubic-bezier(0,0,0.2,1) infinite;
}

/* =========================================================================
   LIGHT MODE  ( html[data-theme="light"] )
   Dark utility'leri açık temaya yeniden eşler. Marka sarısı korunur.
   ========================================================================= */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

html[data-theme="light"] {
  --bg: #f6f7fb;
  --text: #14171f;
}
html[data-theme="light"] body { background: #f6f7fb; color: #14171f; }
html[data-theme="light"] ::selection { background: rgba(255,201,0,0.35); color: #14171f; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #e9ecf3; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c3c9d6; }

/* Yüzeyler */
html[data-theme="light"] .glass {
  border-color: rgba(15,18,25,0.10);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
html[data-theme="light"] .glass-strong {
  border-color: rgba(15,18,25,0.10);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 30px -12px rgba(16,24,40,0.18);
}
html[data-theme="light"] .chip {
  border-color: rgba(15,18,25,0.10);
  background: rgba(15,18,25,0.04);
  color: #3a4150;
}
html[data-theme="light"] .btn-ghost { color: #14171f; border-color: rgba(15,18,25,0.18); background: rgba(15,18,25,0.03); }
html[data-theme="light"] .btn-ghost:hover { background: rgba(15,18,25,0.07); border-color: rgba(15,18,25,0.3); }
html[data-theme="light"] .section-title { color: #0f1218; }

/* Arka plan grid çizgileri & footer */
html[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(15,18,25,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,18,25,0.05) 1px, transparent 1px);
}
html[data-theme="light"] footer { background: #eef1f7 !important; border-color: rgba(15,18,25,0.08) !important; }
html[data-theme="light"] .legal { color: #3a4150; }
html[data-theme="light"] .legal h2, html[data-theme="light"] .legal h3, html[data-theme="light"] .legal strong { color: #0f1218; }
html[data-theme="light"] .legal th { background: rgba(15,18,25,0.04); color: #0f1218; }
html[data-theme="light"] .legal th, html[data-theme="light"] .legal td { border-color: rgba(15,18,25,0.12); }

/* Metin (beyaz) utility'leri -> koyu/gri tonlar */
html[data-theme="light"] .text-white,
html[data-theme="light"] .text-white\/90,
html[data-theme="light"] .text-white\/85,
html[data-theme="light"] .text-white\/80 { color: #0f1218 !important; }
html[data-theme="light"] .text-white\/75,
html[data-theme="light"] .text-white\/72,
html[data-theme="light"] .text-white\/70,
html[data-theme="light"] .text-white\/65 { color: #2a313d !important; }
html[data-theme="light"] .text-white\/60,
html[data-theme="light"] .text-white\/55,
html[data-theme="light"] .text-white\/50 { color: #515967 !important; }
html[data-theme="light"] .text-white\/45,
html[data-theme="light"] .text-white\/40,
html[data-theme="light"] .text-white\/35 { color: #818897 !important; }

/* Kenarlıklar (beyaz) -> koyu-ince */
html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/15,
html[data-theme="light"] .border-white\/20 { border-color: rgba(15,18,25,0.12) !important; }

/* Beyaz dolgular -> hafif koyu tint (kartların görünürlüğü) */
html[data-theme="light"] .bg-white\/5,
html[data-theme="light"] .bg-white\/\[0\.03\],
html[data-theme="light"] .bg-white\/\[0\.04\],
html[data-theme="light"] .bg-white\/\[0\.06\] { background-color: rgba(15,18,25,0.035) !important; }

/* Koyu zemin utility'leri -> açık */
html[data-theme="light"] .bg-ink-950 { background-color: #f6f7fb !important; }
html[data-theme="light"] .bg-ink-900\/60, html[data-theme="light"] .bg-ink-900\/40 { background-color: #eef1f7 !important; }

/* Header scroll kabuğu açık temada */
html[data-theme="light"] #nav-shell.glass-strong { background: rgba(255,255,255,0.9); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
