/* DynoNode AdStudio — Strict Brand ID: White (#ffffff/#f5f5f7) · Black (#0a0a0c) · Emerald (#10b981/#059669) */
:root {
  --bg: #0a0a0c;
  --bg-elev: #111317;
  --bg-card: #15181e;
  --bg-muted: #1b1f27;
  --text: #ffffff;
  --text-soft: #f5f5f7;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --border-emerald: rgba(16, 185, 129, 0.42);
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement Bar */
.announce-bar {
  background: #0f1412;
  border-bottom: 1px solid var(--border-emerald);
  color: var(--text-soft);
  font-size: 0.82rem;
  padding: 8px 16px;
  text-align: center;
}
.announce-bar strong {
  color: var(--emerald);
}

/* Header & Mobile Drawer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-logo span.badge-sub {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--border-emerald);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.desktop-nav a:hover {
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  background: var(--bg-card);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.hamburger-btn {
  display: none;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.76);
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-drawer-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--emerald);
  color: #04130d;
}
.btn-primary:hover:not(:disabled) {
  background: #14cc8f;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-emerald);
}
.btn-sm {
  padding: 7px 13px;
  font-size: 0.82rem;
}

/* Hero & Scanner */
.hero {
  padding: 64px 0 48px;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.14), transparent 58%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--border-emerald);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 880px;
}
.hero p.lead {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 0 28px;
}

.scanner-shell {
  background: var(--bg-elev);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.scanner-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.input {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--emerald);
}
.preset-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Sections & Grids */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.section-header p {
  color: var(--text-muted);
  margin: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card.featured {
  border-color: var(--emerald);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.09), var(--bg-card) 42%);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}
.price-big {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.cap-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.cap-list li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 800;
}

/* Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 700;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* 4-Column Footer */
.site-footer {
  background: #07080a;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 0.92rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--emerald);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-pill {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Modal (Bottom sheet on mobile) */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 680px;
  margin: 0 auto;
  z-index: 80;
  background: var(--bg-elev);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

/* Studio App Layout */
.studio-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100dvh - 68px);
}
.studio-sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-tab {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-tab.active {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: var(--border-emerald);
}
.studio-main {
  padding: 24px;
  max-width: 1080px;
  width: 100%;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid var(--border-emerald);
}
.code-box {
  background: #08090c;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  color: #d4d4d8;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .desktop-nav, .hide-mobile {
    display: none !important;
  }
  .container {
    padding: 0 14px;
  }
  .hamburger-btn {
    display: inline-flex;
  }
  .grid-3, .grid-4, .grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .studio-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 14px;
  }
  .nav-tab {
    width: auto;
    white-space: nowrap;
  }
  .studio-main {
    padding: 16px;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}
