/* === Ağabeyoğlu AI - Tech Dark Redesign === */
:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --bg-3: #17171b;
  --line: #232329;
  --line-2: #2d2d35;
  --text: #f5f5f7;
  --text-2: #b5b5bd;
  --text-3: #6e6e78;
  --text-4: #44444c;
  --primary: #e01425;
  --primary-light: #ff2d3f;
  --primary-dark: #b81020;
  --green: #00c758;
  --amber: #ffb020;
  --radius: 14px;
  --radius-lg: 22px;
  --font-sans: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--primary); color: #fff; }

/* ---- Typography utilities ---- */
.font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.font-mono { font-family: var(--font-mono); }
.mono-caps { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 500; }

/* ---- Grid background ---- */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.noise::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0.6;
}

/* ---- Sections ---- */
.section { padding: 120px 0; position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  transition: backdrop-filter .3s, background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1480px; margin: 0 auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: 8px; transition: all .15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }

.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-mark { width: 32px; height: 32px; flex: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--line-2); }
.btn-bare { color: var(--text-2); }
.btn-bare:hover { color: var(--text); }
.btn-lg { padding: 14px 22px; font-size: 14px; border-radius: 12px; }

/* ---- Cards ---- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); }

.card-hover:hover { transform: translateY(-2px); }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3); font-weight: 500;
}
.eyebrow-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }

/* ---- Hero specific ---- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-sub { color: var(--text-2); font-size: 18px; line-height: 1.55; max-width: 540px; }

/* aurora glow */
.aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(224, 20, 37, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(255, 45, 63, 0.06), transparent 60%);
}

/* ---- Section headings ---- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
}
.section-title em { font-style: italic; color: var(--primary); }
.section-lede { color: var(--text-2); font-size: 17px; max-width: 560px; margin-top: 18px; line-height: 1.55; }

/* ---- Marquee ---- */
.marquee {
  display: flex; gap: 80px; align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-wrap { overflow: hidden; mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-brand { font-size: 28px; font-weight: 700; color: var(--text-3); letter-spacing: -0.02em; opacity: .7; transition: opacity .2s, color .2s; white-space: nowrap; }
.marquee:hover { animation-play-state: paused; }
.marquee-brand:hover { color: var(--text); opacity: 1; }

/* ---- Animated infinity logo ---- */
.brand-mark path { transition: opacity .3s; }
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(224, 20, 37, 0)); }
  50% { filter: drop-shadow(0 0 12px rgba(224, 20, 37, 0.6)); }
}
.glow { animation: pulse-glow 3s ease-in-out infinite; }

/* ---- Bento ---- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento > * { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }

/* ---- WhatsApp demo ---- */
.chat-frame {
  background: linear-gradient(180deg, #0e1419 0%, #0a0e11 100%);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 16px;
  font-size: 14px;
  min-height: 460px;
  display: flex; flex-direction: column;
}
.chat-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.42;
  word-wrap: break-word;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.chat-bubble.user { background: #056060; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.bot { background: #1f2c33; color: #e9edef; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-typing { display: inline-flex; gap: 3px; align-items: center; padding: 4px 0; }
.chat-typing span {
  width: 6px; height: 6px; background: #8b96a0; border-radius: 50%;
  animation: dot 1.4s infinite ease-in-out both;
}
.chat-typing span:nth-child(2) { animation-delay: .16s; }
.chat-typing span:nth-child(3) { animation-delay: .32s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* ---- Terminal ---- */
.terminal {
  background: #08080a;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #d4d4d8;
  overflow: hidden;
}
.terminal-head { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-body { padding: 16px 18px; min-height: 220px; }
.t-prompt { color: var(--primary); }
.t-key { color: #8aa9ff; }
.t-str { color: #b5e87a; }
.t-num { color: #ffb86b; }
.t-comment { color: var(--text-4); }
.t-cursor { display: inline-block; width: 7px; height: 14px; background: var(--text); vertical-align: middle; animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Stat ---- */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--text);
}
.stat-num em { font-style: italic; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* ---- Solutions list ---- */
.sol-row {
  display: grid; grid-template-columns: 60px 1fr 1.2fr 100px;
  gap: 24px; align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  cursor: pointer; position: relative;
  transition: background .2s;
}
.sol-row:last-child { border-bottom: 1px solid var(--line); }
.sol-row:hover { background: linear-gradient(90deg, rgba(224,20,37,.04), transparent 60%); }
.sol-num { font-family: var(--font-mono); color: var(--text-4); font-size: 12px; }
.sol-name { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.sol-desc { color: var(--text-3); font-size: 14px; line-height: 1.5; }
.sol-arrow { justify-self: end; color: var(--text-3); transition: transform .2s, color .2s; }
.sol-row:hover .sol-arrow { color: var(--primary); transform: translateX(4px); }

/* ---- Pricing ---- */
.price-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
}
.price-card.featured { background: var(--bg-3); border-color: var(--primary); }
.price-amt { font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.price-amt small { font-size: 18px; font-family: var(--font-sans); color: var(--text-3); margin-left: 4px; font-weight: 500; }

/* ---- Tech grid ---- */
.tech-pill {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2);
  transition: all .15s;
}
.tech-pill:hover { border-color: var(--primary); color: var(--text); }
.tech-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .container, .container-wide { padding: 0 24px; }
  .section { padding: 96px 0; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .sol-row { grid-template-columns: 36px 1fr; }
  .sol-row .sol-desc, .sol-row .sol-arrow { display: none; }
  .hero { padding: 120px 0 60px; min-height: auto; }
}

/* ---- MOBIL FULL TURNDOWN (768px ve alti) ---- */
@media (max-width: 768px) {
  /* Tasma onleme */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; box-sizing: border-box; }
  img, svg, video { max-width: 100%; height: auto; }

  /* Container padding sikistir */
  .container, .container-wide { padding: 0 16px; }

  /* Section padding */
  .section { padding: 56px 0; }

  /* Nav */
  .nav { padding: 12px 16px; }

  /* Hero */
  .hero { padding: 100px 0 48px; min-height: auto; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px) !important; line-height: 1 !important; letter-spacing: -0.03em !important; }
  .hero-sub { font-size: 15px; line-height: 1.5; }

  /* Section title */
  .section-title { font-size: clamp(28px, 8vw, 44px) !important; line-height: 1.05; }
  .section-lede { font-size: 15px; }

  /* TUM inline grid'leri tek kolona dusur (React kebab-case style attribute) */
  div[style*="grid-template-columns"],
  ul[style*="grid-template-columns"],
  section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Bento 12-col -> 1-col mobilde */
  .bento { grid-template-columns: 1fr !important; gap: 12px; }
  .bento > * { padding: 20px; grid-column: 1 / -1 !important; }
  .bento > [style*="grid-column"] { grid-column: 1 / -1 !important; }

  /* Footer 4-col -> 1-col */
  footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Solutions list */
  .sol-row { grid-template-columns: 28px 1fr; padding: 20px 0; }
  .sol-name { font-size: 20px; }

  /* Pricing kart */
  .price-card { padding: 24px; }
  .price-amt { font-size: 38px !important; line-height: 1; letter-spacing: -0.025em; word-break: break-word; overflow-wrap: anywhere; }
  .price-amt small { font-size: 14px; }

  /* Stat numara */
  .stat-num { font-size: clamp(40px, 12vw, 60px); }

  /* Buton */
  .btn { padding: 10px 14px; font-size: 12px; }
  .btn-lg { padding: 12px 18px; font-size: 13px; }

  /* font-display inline-style buyukler kucult (.section-title, .price-amt, .stat-num ayri class -> etkilenmez) */
  .font-display {
    font-size: 28px !important;
    line-height: 1.05 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Tabular icerikler scroll */
  pre, code, .terminal { overflow-x: auto; max-width: 100%; }

  /* Marquee mobilde yavasla */
  .marquee { animation-duration: 30s; }
  .marquee-brand { font-size: 20px; }

  /* Footer */
  footer { padding-top: 56px !important; }
  footer .container > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ---- Cok kucuk (480px ve alti, iPhone SE/mini) ---- */
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 12px; }
  .nav { padding: 10px 12px; }
  .hero h1 { font-size: clamp(28px, 10vw, 40px) !important; }
  .section-title { font-size: clamp(22px, 8vw, 32px) !important; }
  .price-amt { font-size: 28px !important; }
  .font-display { font-size: 24px !important; }
  .stat-num { font-size: 36px !important; }
  .sol-name { font-size: 18px !important; }
  .bento { grid-template-columns: 1fr !important; }
  /* Btn'leri tam genislik yapan flex container'lar */
  .btn-lg { padding: 11px 16px; font-size: 12.5px; }
  /* Eyebrow ve mono-caps */
  .eyebrow { font-size: 10px; }
  .mono-caps { font-size: 10px; }
  /* Hero badge fazla genis olmasin */
  .hero [style*="border-radius: 999"] { flex-wrap: wrap; }
}

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Counter ---- */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 20s linear infinite; }

/* ---- Tooltip hover for the bento spotlight ---- */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(224,20,37,0.15), transparent 40%);
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.spotlight:hover::before { opacity: 1; }
