/* PauSiber — Modern Brand Theme (blue · black · amber) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* Backgrounds (deep navy-black) */
  --bg-base: #060a14;
  --bg-surface: #0c1424;
  --bg-elevated: #142036;
  --bg-glass: rgba(8, 14, 26, 0.72);

  /* Borders */
  --border: #1a2740;
  --border-strong: #243352;
  --border-glow: rgba(56, 189, 248, 0.35);

  /* Brand blue (heritage #17baef refined) */
  --brand-blue: #38bdf8;        /* primary blue */
  --brand-blue-2: #0ea5e9;      /* hover / press */
  --brand-blue-deep: #074f66;   /* heritage deep teal */

  /* Brand amber (burnt, not bright yellow) */
  --brand-amber: #f59e0b;       /* primary amber */
  --brand-amber-2: #d97706;     /* hover / press */
  --brand-amber-soft: rgba(245, 158, 11, 0.16);

  /* Terminal accent colors */
  --term-green: #22c55e;
  --term-red: #ef4444;

  /* Text */
  --text-primary: #e8f0fb;
  --text-muted: #8ea3c0;
  --text-dim: #5a6f8e;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-glow: 0 0 0 1px var(--border-glow), 0 8px 32px -8px rgba(56, 189, 248, 0.28);
  --shadow-card: 0 4px 24px -8px rgba(0, 0, 0, 0.7);

  --container: 1200px;
  --header-h: 72px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-blue-2);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: top 0.3s ease;
  pointer-events: none;
}

.site-header > .container {
  pointer-events: auto;
  max-width: 100%;
  width: auto;
  margin: 0;
  padding: 6px 8px 6px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  top: 12px;
}

.site-header.scrolled > .container {
  border-color: var(--border-strong);
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.65);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-blue);
  background: rgba(56, 189, 248, 0.10);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-primary);
}

.nav-toggle:hover {
  background: rgba(56, 189, 248, 0.10);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 64px) 0 88px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 70% at 66% 20%, rgba(56, 189, 248, 0.18) 0%, rgba(7, 79, 102, 0.14) 38%, transparent 72%),
    radial-gradient(34% 44% at 16% 72%, rgba(245, 158, 11, 0.10) 0%, transparent 62%);
  z-index: -1;
}

.hex-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'><path d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z M28 50 L56 66 L56 100 L28 116 L0 100 L0 66 Z' fill='none' stroke='%2338bdf8' stroke-opacity='0.10' stroke-width='1'/></svg>");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 80%);
}

.hero-inner {
  text-align: center;
  max-width: 880px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  width: 100%;
  min-width: 0;
  position: relative;
}

.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 590px;
  min-width: 0;
  padding: 22px 0 18px 30px;
  text-align: left;
}

.hero-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--brand-blue), var(--brand-amber), transparent);
  opacity: 0.8;
}

.hero-text .hero-tagline {
  margin-left: 0;
  margin-right: 0;
}

.hero-text .hero-cta {
  justify-content: flex-start;
}

.hero-hint {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-hint b {
  color: var(--brand-amber);
  font-weight: 600;
}

.hero-hint::before {
  content: "↳";
  color: var(--brand-amber);
  font-weight: 600;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(4.35rem, 8.2vw, 6.85rem);
  margin: 0 0 22px;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.35));
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  color: #b8c7dc;
  max-width: 540px;
  margin: 0 auto 0;
  line-height: 1.72;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-2) 100%);
  color: #03101c;
  box-shadow: 0 8px 24px -8px var(--brand-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px var(--brand-blue);
  color: #03101c;
}

.btn-ghost {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.hero-stats {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.hero-stats span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 20, 36, 0.6);
}

.hero-stats span b {
  color: var(--brand-blue);
  font-weight: 500;
}

/* ===== Interactive Console (Hero) ===== */
.console {
  position: relative;
  min-width: 0;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6),
              inset 0 0 0 1px rgba(245, 158, 11, 0.05);
  isolation: isolate;
}

.console::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(60% 80% at 0% 0%, rgba(56, 189, 248, 0.06), transparent 60%);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0d172a 0%, #0a1322 100%);
  border-bottom: 1px solid var(--border);
}

.console-bar .dots {
  display: flex;
  gap: 7px;
}

.console-bar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.console-bar .dots i:nth-child(1) { background: #ef4444; }
.console-bar .dots i:nth-child(2) { background: var(--brand-amber); }
.console-bar .dots i:nth-child(3) { background: var(--term-green); }

.console-bar .title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.console-bar .title b {
  color: var(--text-muted);
  font-weight: 500;
}

.console-bar .spacer {
  width: 54px;
  flex-shrink: 0;
}

.console-body {
  padding: 16px 18px;
}

.scrollback {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.scrollback::-webkit-scrollbar {
  width: 6px;
}

.scrollback::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.scrollback::-webkit-scrollbar-track {
  background: transparent;
}

.scrollback .ln {
  margin-bottom: 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.scrollback .ln.cmd {
  margin-bottom: 4px;
}

.scrollback .out-error {
  color: var(--term-red);
}

.scrollback a {
  color: var(--brand-amber);
  text-decoration: underline;
  text-decoration-color: rgba(245, 158, 11, 0.3);
  text-underline-offset: 2px;
}

.scrollback a:hover {
  color: var(--brand-amber-2);
  text-decoration-color: var(--brand-amber);
}

.inp-row {
  display: flex;
  align-items: center;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  gap: 8px;
}

.console input {
  background: transparent;
  border: 0;
  outline: none;
  flex: 1;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  caret-color: var(--brand-amber);
  padding: 0;
}

.console input::placeholder {
  color: var(--text-dim);
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chips button {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chips button:hover {
  color: var(--brand-amber);
  border-color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.06);
}

.prompt-frag .g { color: var(--term-green); }
.prompt-frag .d { color: var(--text-dim); }
.prompt-frag .b { color: var(--brand-blue); }
.prompt-frag .a { color: var(--brand-amber); }

.scrollback .row-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  color: var(--text-dim);
}

.scrollback .row-grid .k {
  color: var(--brand-blue);
}

.scrollback .ls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 12px;
}

.scrollback .ls-grid .dir { color: var(--brand-blue); }
.scrollback .ls-grid .exe { color: var(--term-green); }

.scrollback .prose {
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.6;
}

.scrollback .ok { color: var(--term-green); }
.scrollback .accent { color: var(--brand-amber); }
.scrollback .muted { color: var(--text-dim); }

/* ===== Section base ===== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brand-blue);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 16px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ===== Cards (Kimiz?) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 80% at 50% 0%, rgba(56, 189, 248, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.10);
  color: var(--brand-blue);
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.card:hover .card-icon {
  background: var(--brand-amber-soft);
  color: var(--brand-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Features (Neler Yapıyoruz) ===== */
.features {
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Numbered timeline */
.wwd-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 920px;
  counter-reset: wwd;
}

.wwd-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
  position: relative;
  transition: background 0.25s ease;
}

.wwd-item:last-child {
  border-bottom: 1px solid var(--border);
}

.wwd-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--brand-amber);
  transition: width 0.25s ease;
}

.wwd-item:hover::before {
  width: 3px;
}

.wwd-item:hover .wwd-num {
  color: var(--brand-blue);
}

.wwd-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 600;
  color: var(--brand-amber);
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  transition: color 0.25s ease;
}

.wwd-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wwd-head h3 {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.wwd-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.wwd-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.wwd-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.wwd-points li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-weight: 600;
}

.wwd-points li b {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 720px) {
  .wwd-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .wwd-num {
    font-size: 2.2rem;
  }
  .wwd-head h3 {
    font-size: 1.25rem;
  }
}

/* ===== Events ===== */
.events-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.events-frame::before {
  content: "";
  display: block;
  height: 36px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), transparent);
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(circle at 16px 18px, #ef4444 5px, transparent 5px),
    radial-gradient(circle at 36px 18px, var(--brand-amber) 5px, transparent 5px),
    radial-gradient(circle at 56px 18px, #22c55e 5px, transparent 5px);
  background-repeat: no-repeat;
}

.events-frame iframe {
  width: 100%;
  height: 540px;
  border: 0;
  display: block;
  background: var(--bg-base);
}

/* ===== Twitter ===== */
.social-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.social-card .twitter-timeline {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ===== Contact ===== */
.contact-section {
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.04) 100%);
}

.contact-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.contact-section p {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-icons a {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: var(--shadow-glow);
}

.social-icons svg {
  width: 22px;
  height: 22px;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-base);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand b {
  color: var(--brand-blue);
  font-weight: 500;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .site-header > .container {
    border-radius: 18px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 240px;
    max-width: calc(100vw - 32px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    margin: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section {
    padding: 72px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    min-width: 0;
  }

  .hero-text {
    text-align: center;
    align-items: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
  }

  .hero-text::before {
    display: none;
  }

  .hero-text .hero-cta {
    justify-content: center;
  }

  .hero-tagline {
    max-width: 620px;
  }

  .hero-hint {
    justify-content: center;
    max-width: 100%;
  }

  .console {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 64px;
  }

  .hero .container {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(3.25rem, 15.5vw, 4.15rem);
  }

  .hero-text {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero-eyebrow {
    display: block;
    justify-content: center;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.45;
    padding: 7px 12px;
    overflow-wrap: anywhere;
  }

  .hero-eyebrow::before {
    display: inline-block;
    margin-right: 8px;
    vertical-align: 1px;
  }

  .hero-tagline {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    font-size: 1rem;
  }

  .hero-hint {
    display: block;
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    font-size: 0.78rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .hero-hint::before {
    margin-right: 8px;
  }

  .hero-cta {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .console-body {
    padding: 14px;
  }

  .console {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .console-bar .title {
    font-size: 0.72rem;
  }

  .scrollback .row-grid,
  .scrollback .ls-grid {
    grid-template-columns: 1fr;
  }

  .events-frame iframe {
    height: 420px;
  }

  .card {
    padding: 22px;
  }

  .brand-logo {
    height: 38px;
  }

  .scrollback {
    max-height: 260px;
  }

  .scrollback .ls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scrollback .row-grid {
    grid-template-columns: 130px 1fr;
  }
}

/* ===== Selection / scrollbar ===== */
::selection {
  background: rgba(56, 189, 248, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue-2);
}
