/* LyraSoft Lab — stil. Renk ve ölçü ayarları :root içinde. */

/* Dark is the default. Add data-theme="light" to <html> for the light palette. */
:root {
  --bg: #0a0e22;
  --surface: #111737;
  --ink: #eef1ff;
  --ink-2: #a6aecf;
  --line: #232b52;
  --accent: #8191ff;
  --accent-ink: #0a0e22;
  --night: #0b1030;
  --night-2: #18205a;
  --star: #ffe8a3;
  --radius: 14px;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}
:root[data-theme="light"] {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #0f1633;
  --ink-2: #4a5373;
  --line: #dde2ee;
  --accent: #3547f5;
  --accent-ink: #ffffff;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Üst çubuk ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.brand span { font-weight: 500; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.btn { margin-left: 8px; background: var(--accent); color: var(--accent-ink); }
.nav a.btn:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); box-shadow: none; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- Kahraman ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; max-width: 14ch; }
.hero p.lead { margin-top: 20px; max-width: 46ch; color: var(--ink-2); font-size: 1.15rem; }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.sky {
  position: relative; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 10%, var(--night-2) 0%, var(--night) 62%);
  box-shadow: 0 30px 60px -30px rgba(11, 16, 48, .55);
  aspect-ratio: 9 / 10;
}
.sky svg { width: 100%; height: 100%; }
.sky .bg-star { fill: #fff; }
.sky .ln { stroke: rgba(191, 207, 255, .55); stroke-width: 1.2; fill: none; }
.sky text { font-family: var(--font-body); fill: #e8ecff; font-size: 14px; font-weight: 600; }
.sky text.n { fill: var(--star); font-weight: 500; font-size: 12px; }
.sky a { cursor: pointer; }
.sky .halo { fill: var(--c); opacity: .18; transition: opacity .2s, r .2s; }
.sky .core { fill: var(--star); }
.sky .ring { fill: none; stroke: var(--c); stroke-width: 1.5; opacity: 0; transition: opacity .2s; }
.sky a:hover .halo, .sky a:focus-visible .halo { opacity: .42; }
.sky a.on .ring { opacity: 1; }
.sky a.on .halo { opacity: .4; }
.sky a:focus-visible { outline: none; }
.sky a:focus-visible .ring { opacity: 1; stroke-width: 2.5; }
.sky .hint {
  position: absolute; left: 20px; bottom: 16px; right: 20px;
  color: #aab4e6; font-size: .85rem;
}

/* Tek seferlik açılış: çizgiler çizilir, yıldızlar yanar */
@media (prefers-reduced-motion: no-preference) {
  .sky .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease forwards; animation-delay: var(--d, 0s); }
  .sky .node { opacity: 0; animation: lit .6s ease forwards; animation-delay: var(--d, 0s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes lit { to { opacity: 1; } }
}

/* ---------- Bölüm başlıkları ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section .sub { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }

/* ---------- Katalog ---------- */
.tools { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-2)); }
.chip small { color: var(--ink-2); font-size: .85rem; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .75; }

.search {
  flex: 1 1 220px; max-width: 320px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
.search::placeholder { color: var(--ink-2); }

.list { margin-top: 24px; display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center;
  padding: 16px 20px 16px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.row:hover { border-color: var(--c); transform: translateX(3px); }
.row h3 { font-size: 1.2rem; }
.row p { color: var(--ink-2); font-size: .98rem; margin-top: 2px; }
.meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.status { font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.status.live { background: #12382a; color: #7be0a7; }
.status.beta { background: #3a2c0c; color: #ffd37a; }
.status.soon { background: #1d2447; color: #a6aecf; }
:root[data-theme="light"] .status.live { background: #dff6e8; color: #0b6b35; }
:root[data-theme="light"] .status.beta { background: #fff0cf; color: #8a5a00; }
:root[data-theme="light"] .status.soon { background: #e7eaf5; color: #4a5373; }

.ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  overflow: hidden;
}
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.big { width: 88px; height: 88px; border-radius: 24px; font-size: 1.8rem; }

.empty { margin-top: 24px; padding: 36px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 6px; }
.empty a { color: var(--accent); font-weight: 600; }

/* ---------- Category overview (no products yet) ---------- */
.tools[hidden] { display: none; }
.cats { display: flex; flex-wrap: wrap; gap: 12px; }
.cat {
  flex: 1 1 300px;
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-items: start;
  padding: 20px; border-radius: var(--radius); background: var(--surface);
  border: 1.5px solid var(--line); border-left: 5px solid var(--c);
}
.cat h3 { font-size: 1.2rem; }
.cat p { color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.cat .status { grid-column: 2; justify-self: start; margin-top: 8px; }

/* ---------- About / FAQ / Contact ---------- */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.about p { color: var(--ink-2); max-width: 52ch; }
.about p + p { margin-top: 14px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.principles li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.principles svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--ink); stroke: var(--bg); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.principles b { font-family: var(--font-head); font-size: 1.1rem; display: block; margin-bottom: 2px; }
.principles span { color: var(--ink-2); }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--ink-2); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 36px 20px 0; max-width: 56ch; }
.faq a { color: var(--accent); font-weight: 600; }

.cta {
  display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between;
  padding: clamp(28px, 5vw, 48px); border-radius: 28px; color: #eef1ff;
  background: radial-gradient(120% 140% at 85% 0%, var(--night-2) 0%, var(--night) 65%);
}
.cta h2 { color: #fff; }
.cta p { margin-top: 8px; color: #b8c2ee; max-width: 44ch; }
.cta .contact-list { margin-top: 0; }
.cta-side { display: grid; gap: 18px; justify-items: start; }
.follow { display: flex; align-items: center; gap: 14px; color: #b8c2ee; font-size: .95rem; }

/* Social icons */
.social { display: flex; gap: 8px; }
.social a, .social span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social .off { color: var(--ink-2); opacity: .8; cursor: default; }

.socials { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.scard {
  flex: 1 1 180px; display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
a.scard:hover { border-color: var(--accent); transform: translateY(-2px); }
.scard .si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex: none; }
.scard svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scard svg.solid { fill: currentColor; stroke: none; }
.scard .sn { display: grid; line-height: 1.3; }
.scard .sn b { font-family: var(--font-head); font-size: 1.05rem; }
.scard .sn small { color: var(--ink-2); font-size: .85rem; }
.scard.off { cursor: default; }
.scard.off .si { background: var(--line); color: var(--ink-2); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social svg.solid { fill: currentColor; stroke: none; }
.cta .social a, .cta .social span { border-color: #3a4580; color: #eef1ff; }
.cta .social a:hover { border-color: var(--star); color: var(--star); }
.cta .social .off { color: #8f9ad0; }

/* Panels sit on a dark page now: give them an edge */
.sky, .cta { border: 1px solid #28316b; }
.cta .btn { background: var(--star); color: #1a1a33; }
.cta .btn.ghost { background: transparent; color: #eef1ff; border-color: #3a4580; }

.contact-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Ürün sayfası ---------- */
.crumb { padding-top: 28px; }
.crumb a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.crumb a:hover { color: var(--ink); }
.pd-head { display: flex; gap: 24px; align-items: center; padding: 28px 0 8px; flex-wrap: wrap; }
.pd-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.pd-head p { color: var(--ink-2); margin-top: 6px; max-width: 52ch; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pd-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 32px 0 56px; }
.pd-body h2 { font-size: 1.4rem; margin-bottom: 12px; }
.pd-body .desc { color: var(--ink-2); max-width: 60ch; }
.feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.feats li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: .85rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Product page extras */
.pd-banner { width: 100%; max-width: 640px; height: auto; border-radius: 20px; margin-top: 24px; border: 1px solid var(--line); }
.gallery { margin-top: 36px; }
.gallery h2 { font-size: 1.4rem; margin-bottom: 14px; }
.shots {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.shots figure { margin: 0; flex: 0 0 auto; width: min(240px, 62vw); scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.shots figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.gh { font-family: var(--font-head); font-size: 1.15rem; margin: 34px 0 10px; }
.gi { margin-bottom: 12px; }
.pd-body .desc + .desc { margin-top: 14px; }
.plink { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; }

/* Legal pages */
.legal { padding: 36px 0 64px; max-width: 70ch; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal .date { color: var(--ink-2); margin-top: 8px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent); font-weight: 600; }

/* ---------- Alt bilgi ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.nf { padding: 96px 0; text-align: center; }
.nf h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.nf p { margin: 14px auto 28px; color: var(--ink-2); max-width: 40ch; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .hero .wrap, .about .wrap, .pd-body, .faq-wrap { grid-template-columns: 1fr; }
  .sky { max-width: 460px; width: 100%; margin-inline: auto; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 48px 1fr; gap: 14px; }
  .row .ico { width: 48px; height: 48px; border-radius: 14px; }
  .row .status { grid-column: 2; justify-self: start; }
}
