/* ═══ Tieddr Pro Edges — proedges.tieddr.com ═══ */

:root {
  --bg: #0a0b0e;
  --bg-alt: #0e1014;
  --panel: #12141a;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .12);
  --fg: #e9ebef;
  --muted: #8f96a3;
  --faint: #5c6371;
  --accent: #c22736;
  --accent-hover: #d63040;
  --radius: 10px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
code {
  font-family: Consolas, "Cascadia Code", ui-monospace, monospace;
  background: rgba(255, 255, 255, .06);
  padding: .12em .45em;
  border-radius: 5px;
  font-size: .9em;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

h1, h2, h3 { letter-spacing: -.015em; line-height: 1.15; font-weight: 650; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 17px; font-weight: 600; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 14, .82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--fg); text-decoration: none;
  font-weight: 400; font-size: 14.5px; white-space: nowrap;
}
.brand b { font-weight: 700; }
.brand.small { font-size: 13px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color .15s;
}
.links a:hover { color: var(--fg); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 13px 22px;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  color: var(--fg);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .03); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }

/* ── hero ── */
.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center;
}
.pill {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 5px 12px; border-radius: 5px; margin-bottom: 24px;
}
h1 {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 700;
}
.lead { margin: 20px 0 30px; font-size: 17px; color: var(--muted); max-width: 55ch; }
.lead b, .lead strong { color: var(--fg); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-meta {
  margin-top: 24px; color: var(--faint); font-size: 13px; letter-spacing: .01em;
}

/* app mockup */
.hero-app { position: relative; margin: 0; }
.app-window {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  font-size: 12px;
}
.app-titlebar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.app-title { font-weight: 600; font-size: 12px; }
.app-file { color: var(--faint); font-size: 11.5px; }
.app-badge {
  margin-left: auto;
  color: var(--fg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 5px;
  font-size: 10.5px; font-weight: 500;
}
.app-body { display: grid; grid-template-columns: 1fr 172px; }
.app-canvas { position: relative; background: #000; min-height: 250px; }
.app-canvas img { width: 100%; height: 100%; object-fit: cover; }
.app-zoom {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, .6);
  padding: 3px 9px; border-radius: 5px;
  font-size: 10.5px; color: #cfd3da;
}
.app-panel {
  border-left: 1px solid var(--line);
  padding: 13px; display: flex; flex-direction: column; gap: 8px;
}
.app-label {
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-top: 2px;
}
.app-tabs { display: flex; gap: 3px; }
.app-tabs span {
  flex: 1; text-align: center; padding: 5px 0; border-radius: 5px;
  background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 10.5px;
}
.app-tabs .on { background: var(--accent); color: #fff; font-weight: 600; }
.app-models { display: flex; flex-direction: column; gap: 3px; }
.app-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 5px;
  background: rgba(255, 255, 255, .03); color: #c9cedb; font-size: 10.5px;
}
.app-row em { margin-left: auto; font-style: normal; font-size: 9px; color: var(--faint); }
.app-row.sel { outline: 1px solid rgba(194, 39, 54, .6); background: rgba(194, 39, 54, .08); }
.app-row.sel em { color: var(--accent); font-weight: 600; }
.app-row.dim { opacity: .4; }
.app-scales { display: flex; gap: 3px; }
.app-scales span {
  flex: 1; text-align: center; padding: 5px 0; border-radius: 5px;
  background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 10.5px;
}
.app-scales .on { background: #e9ebef; color: #111; font-weight: 700; }
.app-run {
  margin-top: auto; border: 0; border-radius: 6px; padding: 9px 0;
  background: var(--accent);
  color: #fff; font-weight: 600; font-size: 11.5px; cursor: default;
}
.app-footer {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 10.5px;
}
.app-progress {
  flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.app-progress i {
  display: block; height: 100%; width: 97%;
  background: var(--accent);
}
.hero-app figcaption {
  text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 16px;
}

/* stats */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  text-align: center; padding: 26px 10px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, .01);
}
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }

/* ── sections ── */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker {
  color: var(--accent);
  font-weight: 600; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.sub { color: var(--muted); margin-top: 16px; max-width: 66ch; font-size: 16px; }
.sub.small { font-size: 13.5px; margin-top: 20px; color: var(--faint); }

/* ── compare slider ── */
.compare-wrap { margin-top: 48px; }
.compare {
  position: relative; max-width: 880px; margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  user-select: none; touch-action: none;
  cursor: ew-resize;
}
.compare img { width: 100%; pointer-events: none; }
.compare-after {
  position: absolute; inset: 0; width: 50%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .9);
}
.compare-after img {
  width: auto; height: 100%; max-width: none;
  position: absolute; left: 0; top: 0;
  transition: opacity .18s ease;
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: rgba(255, 255, 255, .9);
  pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff;
  background-image:
    linear-gradient(90deg, transparent 46%, #111 46%, #111 54%, transparent 54%),
    linear-gradient(#111, #111);
  background-size: 14px 1px, 1px 14px;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
}
.tag {
  position: absolute; top: 14px; font-size: 11px; font-weight: 600;
  letter-spacing: .05em; padding: 4px 11px; border-radius: 5px;
  background: rgba(10, 11, 14, .75);
  border: 1px solid var(--line-strong);
  color: #cfd3da;
}
.tag-l { left: 14px; } .tag-r { right: 14px; }
.compare-switch {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap;
}
.cs-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted); padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.cs-btn:hover { color: var(--fg); border-color: rgba(255, 255, 255, .25); }
.cs-btn.on {
  background: var(--fg); border-color: var(--fg); color: #0a0b0e;
}

/* ── feature cards ── */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px;
}
.card {
  background: rgba(255, 255, 255, .015);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s, background .18s;
}
.card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .025); }
.card-icon {
  width: 24px; height: 24px; color: var(--muted); margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── adaptive section ── */
.adaptive-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start;
}
.adaptive-copy p:not(.kicker) { color: var(--muted); font-size: 15.5px; }
.check-list { list-style: none; margin: 26px 0 32px; display: grid; gap: 11px; }
.check-list li {
  padding-left: 24px; position: relative; color: var(--muted); font-size: 14.5px;
}
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--accent);
}
.check-list b { color: var(--fg); font-weight: 600; }
.tier-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tier {
  padding: 13px 10px; border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.tier b { display: block; font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.tier span { font-size: 11.5px; color: var(--faint); }

.adaptive-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #0d0f13; overflow: hidden;
}
.ac-head {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, .02);
}
.ac-code {
  padding: 20px 18px; margin: 0;
  font-family: Consolas, "Cascadia Code", ui-monospace, monospace;
  font-size: 12.5px; line-height: 1.8; color: #b9c0cc; overflow-x: auto;
}
.ac-note {
  padding: 11px 18px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 12px; background: rgba(255, 255, 255, .015);
}

/* ── models table ── */
.table-wrap {
  margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; background: rgba(255, 255, 255, .01);
}
.models-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.models-table th {
  text-align: left; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015); font-weight: 600;
}
.models-table td { padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .045); font-size: 14px; }
.models-table td:nth-child(n+4) { color: var(--muted); font-variant-numeric: tabular-nums; }
.models-table tr:last-child td { border-bottom: 0; }
.models-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 52px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.step-n {
  font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .1em;
}
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ── CTA / download ── */
.section-cta {
  background: var(--bg-alt);
  border-block: 1px solid var(--line); text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-icon { border-radius: 16px; }
.install-notes {
  list-style: none; counter-reset: n; margin-top: 22px;
  display: flex; flex-direction: column; gap: 9px;
  text-align: left; max-width: 560px;
  color: var(--muted); font-size: 14px;
}
.install-notes li { counter-increment: n; display: flex; gap: 12px; align-items: baseline; }
.install-notes li::before {
  content: counter(n, decimal-leading-zero);
  font-weight: 600; color: var(--accent); font-size: 12px;
}
.cta-fineprint { color: var(--faint); font-size: 12.5px; margin-top: 8px; }

/* ── FAQ ── */
details {
  border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 255, 255, .015); margin-top: 10px;
}
summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px;
  list-style: none; position: relative; padding-right: 48px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer a:hover { color: var(--fg); }
.footer p { width: 100%; color: var(--faint); font-size: 12px; margin-top: 4px; }

/* ── reveal on scroll (subtle) ── */
.revealable { opacity: 0; }
.revealed { opacity: 1; transition: opacity .5s ease; }

/* ── responsive ── */
@media (max-width: 1020px) {
  .hero-grid, .adaptive-grid { grid-template-columns: 1fr; gap: 48px; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
}
@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .tier-strip { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 1fr; }
  .app-panel { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
}
