/* =========================
   NETALYA - Theme System
   Dark: deep navy (real dark)
   Light: clean white
========================= */

/* ------------- THEME TOKENS ------------- */
/* DARK DEFAULT */
:root{
  /* Base surfaces */
  --bg: #060a18;          /* deep navy */
  --bg2:#040713;
  --surface:#0b1433;
  --surface2:#08102a;

  /* Text */
  --text:#eef2ff;
  --muted:#a7b3d4;

  /* Lines & shadows */
  --line: rgba(255,255,255,.10);
  --shadow: 0 24px 70px rgba(0,0,0,.60);

  /* Brand */
  --accent:#ff2d55;   /* red */
  --accent2:#3aa0ff;  /* blue */

  /* UI */
  --radius: 18px;
  --radius2: 14px;

  /* Button */
  --btn-bg: rgba(255,255,255,.05);
  --btn-bd: rgba(255,255,255,.12);

  /* Inputs */
  --input-bg: rgba(255,255,255,.04);
  --input-bd: rgba(255,255,255,.14);

  /* Topbar/Nav glass */
  --glass: rgba(6,10,24,.78);

  /* Hero glows */
  --glow-blue: rgba(58,160,255,.20);
  --glow-red: rgba(255,45,85,.16);
}

/* LIGHT OVERRIDE */
html[data-theme="light"]{
  --bg:#ffffff;
  --bg2:#f3f7ff;
  --surface:#ffffff;
  --surface2:#f6f8ff;

  --text:#0a1022;
  --muted:#556483;

  --line: rgba(10,16,34,.12);
  --shadow: 0 18px 55px rgba(10,16,34,.14);

  --btn-bg: rgba(10,16,34,.03);
  --btn-bd: rgba(10,16,34,.12);

  --input-bg: #ffffff;
  --input-bd: rgba(10,16,34,.14);

  --glass: rgba(255,255,255,.78);

  --glow-blue: rgba(58,160,255,.14);
  --glow-red: rgba(255,45,85,.10);
}

/* ------------- GLOBAL ------------- */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);

  background:
    radial-gradient(1100px 650px at 15% 12%, var(--glow-blue), transparent 58%),
    radial-gradient(900px 520px at 80% 20%, var(--glow-red), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1120px, 92%); margin-inline:auto; }
.row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }

.muted{ color: var(--muted); }
.accent{ color: var(--accent); }

/* Smooth transitions (premium) */
*{
  transition: background-color .20s ease, color .20s ease, border-color .20s ease, box-shadow .20s ease;
}

/* ------------- TOPBAR ------------- */
.topbar{
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
}
.topbar .top-left, .topbar .top-right{
  display:flex; gap:14px; flex-wrap:wrap; padding:10px 0;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  background: rgba(255,255,255,.03);
}
html[data-theme="light"] .badge{
  background: rgba(10,16,34,.03);
}

/* ------------- NAV ------------- */
.nav{
  position: sticky;
  top:0;
  z-index:50;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}
.logo{
  width:42px;height:42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255,45,85,.95), rgba(58,160,255,.95));
  box-shadow: var(--shadow);
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-text small{ font-size:12px; color:var(--muted); }

.menu{
  display:flex;
  align-items:center;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
}
.menu a{
  font-size:14px;
  font-weight:700;
  color: var(--muted);
}
.menu a:hover{ color: var(--text); }
.menu a.cta{
  white-space: nowrap;          /* satır kırma kapansın */
  display: inline-flex;         /* metin düzgün ortalansın */
  align-items: center;
  justify-content: center;
  background: rgba --glow-red;
  color: --glow-red;
}

/* Theme toggle */
.theme-toggle{
  width:44px;height:44px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: var(--btn-bg);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.theme-toggle:hover{
  border-color: rgba(58,160,255,.35);
}
.theme-toggle .ico{ font-size:18px; line-height:1; }

.burger{
  display:none;
  width:44px;height:44px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: var(--btn-bg);
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;height:2px;
  background: var(--text);
  border-radius:999px;
  margin:4px auto;
}

/* ------------- HERO ------------- */
.hero{
  position:relative;
  padding: 44px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .85fr;
  gap: 22px;
  align-items: stretch;
}
.kicker{
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .2px;
}
h1{
  margin: 10px 0 12px;
  font-size: 44px;
  line-height: 1.08;
}
.sub{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 14px 0 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--text);
  cursor:pointer;
  font-weight: 900;
}
.btn:hover{ border-color: rgba(58,160,255,.30); }
.btn.primary{
  background: linear-gradient(135deg, rgba(255,45,85,.95), rgba(255,45,85,.70));
  border-color: rgba(255,45,85,.45);
}
.btn.small{
  padding:8px 10px;
  border-radius: 12px;
  font-size: 13px;
}
.btn.full{ width:100%; }

.trust-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 16px;
}
.trust{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding: 12px;
  background: rgba(255,255,255,.03);
}
html[data-theme="light"] .trust{
  background: rgba(10,16,34,.02);
}
.trust strong{ display:block; }
.trust small{ color: var(--muted); }

/* ------------- CARDS ------------- */
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;

  /* Dark: glass */
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
html[data-theme="light"] .card{
  background: rgba(255,255,255,.92);
}

.section{
  padding: 46px 0;
}
.section.alt{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
html[data-theme="light"] .section.alt{
  background: rgba(10,16,34,.02);
}

.section-head{ margin-bottom: 18px; }
.section-head h2{
  font-size: 30px;
  margin: 0 0 8px;
}
.section-head p{
  margin:0;
  color: var(--muted);
  line-height:1.6;
}

.grid{ display:grid; gap:14px; }
.grid.cards{ grid-template-columns: repeat(3, 1fr); }
.grid.two{ grid-template-columns: repeat(2, 1fr); }
.grid.three{ grid-template-columns: repeat(3, 1fr); }

.bullets{
  margin:10px 0 0;
  padding-left:18px;
  color: var(--muted);
  line-height:1.7;
}

/* ------------- CHIPS ------------- */
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0;
}
.chip{
  border:1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  cursor:pointer;
  font-weight: 900;
  font-size: 13px;
}
html[data-theme="light"] .chip{
  background: rgba(10,16,34,.02);
}
.chip.active{
  color: var(--text);
  border-color: rgba(58,160,255,.45);
  background: rgba(58,160,255,.12);
}

/* ------------- FORMS ------------- */
.mini-form, .form{
  display:grid;
  gap:10px;
}
.form .row{ display:flex; gap:10px; }
.form .row.two > *{ flex:1; }

input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid var(--input-bd);
  background: var(--input-bg);
  color: var(--text);
  outline:none;
}
textarea{ resize:vertical; }
input::placeholder, textarea::placeholder{ color: rgba(167,179,212,.70); }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{
  color: rgba(85,100,131,.65);
}
input:focus, textarea:focus{
  border-color: rgba(58,160,255,.45);
  box-shadow: 0 0 0 4px rgba(58,160,255,.15);
}

.form-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ------------- KB ------------- */
.kb-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.kb-list{ display:grid; gap:10px; }
.kb-item{
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.03);
}
html[data-theme="light"] .kb-item{
  background: rgba(10,16,34,.02);
}
.kb-item strong{ display:block; }
.kb-item small{ color: var(--muted); }

/* ------------- CHATBOT ------------- */
.chatbot .chat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.chatbot .chat-box{
  height:240px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255,255,255,.03);
}
html[data-theme="light"] .chatbot .chat-box{
  background: rgba(10,16,34,.02);
}
.chat-line{ margin:8px 0; display:flex; }
.chat-line.user{ justify-content:flex-end; }
.bubble{
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.chat-line.user .bubble{
  border-color: rgba(58,160,255,.40);
  background: rgba(58,160,255,.12);
}

.chat-input{ display:flex; gap:10px; margin-top:10px; }
.chat-input input{ flex:1; }

/* ------------- SOCIAL ------------- */
.social{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.social-btn{
  border:1px solid var(--line);
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--muted);
  font-weight: 900;
}
.social-btn:hover{ color: var(--text); border-color: rgba(58,160,255,.30); }
.social-btn.wa{ border-color: rgba(46,220,120,.35); color: var(--text); }

/* ------------- FOOTER ------------- */
.footer{
  padding: 20px 0;
  border-top: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
}
.footer small{ display:block; color: var(--muted); margin-top:4px; }
.footer-links{ display:flex; gap:14px; color: var(--muted); }
.footer-links a:hover{ color: var(--text); }

/* ------------- FLOAT CTA ------------- */
.float-cta{
  position:fixed;
  right:16px;
  bottom:16px;
  width:56px;
  height:56px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(58,160,255,.95), rgba(255,45,85,.85));
  border:1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  font-weight: 1000;
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 980px){
  h1{ font-size: 38px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .grid.cards{ grid-template-columns: 1fr 1fr; }
  .trust-row{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .grid.cards, .grid.two, .grid.three{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }

  .burger{ display:block; }

  .menu{
    position:absolute;
    left:0; right:0;
    top:64px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    padding: 12px 4%;
    background: var(--glass);
    border-bottom: 1px solid var(--line);
  }
  .menu.open{ display:flex; }
}
