/* ==========================================================================
   DOMISPACKS TECHNICAL
   1. Design tokens
   2. Reset and base
   3. Shared layout
   4. Header and background
   5. Hero and terminal
   6. Pricing
   7. Comparison table
   8. Footer
   9. Responsive and accessibility
   ========================================================================== */

/* 1. DESIGN TOKENS */
:root { color-scheme: dark;
  --color-background: #060606;
  --color-surface: #0e0e0e;
  --color-surface-raised: #141414;
  --color-border: #1e1e1e;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --color-text-subtle: #666666;
  --color-accent: #00ff88;
  --color-accent-secondary: #00ccff;
  --color-danger: #ff5f5f;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --container-width: 1160px;
  --page-gutter: clamp(1.25rem, 6vw, 4.5rem);
  --radius-small: 0.5rem;
  --radius-medium: 0.75rem;
  --radius-large: 1rem;
  --radius-card: 1.5rem;
  --radius-pill: 999px;
  --shadow-accent: 0 0 2.5rem rgb(0 255 136 / 18%);
  --transition-fast: 180ms ease;
}

/* 2. RESET AND BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a { font: inherit; }

button:focus-visible,
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

code { font-family: var(--font-mono); }

p, h1, h2, h3 { margin-top: 0; }

/* 3. SHARED LAYOUT */
.container {
  width: min(100% - (var(--page-gutter) * 2), var(--container-width));
  margin-inline: auto;
}

.section-shell {
  position: relative;
  z-index: 2;
}

/* 4. HEADER AND BACKGROUND */
.site-header {
  position: relative;
  min-height: 80px;
  border-bottom: 2px solid rgb(0 255 136 / 35%);
  background: #010101;
  z-index: 10;
}

.nav {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: inherit;
  text-decoration: none;
}

.brand__image {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand__name {
  font-size: 1.625rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand__name span {
  color: var(--color-accent);
}

.site-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.background-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(0 255 136 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 255 136 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
}

.scanner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.scanner__line {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent), 0 0 15px var(--color-accent), 0 0 30px rgb(0 255 136 / 90%);
  opacity: 0.8;
  animation: scanFull 20s linear infinite;
  will-change: transform;
}

/* 5. HERO AND TERMINAL */
.hero {
  padding-block: 3.75rem 2.5rem;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.875rem;
  border: 2px solid rgb(0 255 136 / 30%);
  border-radius: var(--radius-pill);
  background: rgb(0 255 136 / 12%);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.status-badge__indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0.625rem rgb(0 255 136 / 65%);
}

.hero__title {
  max-width: 900px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.text-gradient {
  display: block;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  max-width: 680px;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__description code,
.hero__command-intro code,
.section-heading code {
  padding: 0.125rem 0.375rem;
  border: 2px solid #222222;
  border-radius: 4px;
  background: #111111;
  color: #aaaaaa;
  font-size: 0.85em;
}

.hero__command-intro {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.hero__command-intro strong {
  color: var(--color-text);
}

.terminal {
  width: min(100%, 760px);
  padding: 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface);
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  text-align: left;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 20%);
}

.terminal__toolbar {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.terminal__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.terminal__dot--red {
  background: #ff5f57;
}

.terminal__dot--yellow {
  background: #ffbd2e;
}

.terminal__dot--green {
  background: #28ca42;
}

.terminal__command {
  display: flex;
  gap: 0.625rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 700;
}

.terminal__prompt,
.terminal__line--success {
  color: var(--color-accent);
}

.terminal__output {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 1rem;
}

.terminal__line {
  margin: 0;
  overflow-wrap: anywhere;
}

.terminal__line--muted {
  color: #999999;
  font-weight: 700;
}

.terminal__line--pro {
  color: var(--color-accent-secondary);
  font-weight: 700;
}

.terminal__result {
  padding-top: 0.5rem;
}

/* 6. PRICING */
.pricing {
  padding-block: 2rem 3rem;
}

.section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--color-text-subtle);
  font-size: 0.875rem;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: 1.25rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--color-surface-raised), #0a0a0a);
  text-align: left;
}

.price-card--pro {
  border-color: rgb(0 255 136 / 60%);
  box-shadow: var(--shadow-accent);
}

.plan-label {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.375rem 0.75rem;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
}

.price-card__header {
  padding-top: 0.25rem;
}

.plan-name {
  margin-bottom: 0.375rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.price-card--pro .plan-name {
  color: var(--color-accent);
}

.plan-description {
  margin-bottom: 1rem;
  color: var(--color-text-subtle);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 2.625rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.plan-price__period {
  color: var(--color-text-subtle);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-price__status {
  padding: 0.25rem 0.4rem;
  border: 2px solid rgb(0 255 136 / 35%);
  border-radius: 4px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
}

.feature-heading {
  margin-block: 1.5rem 0.625rem;
  color: #777777;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.feature-heading--pro {
  color: var(--color-accent);
}

.feature-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  color: #aaaaaa;
  font-size: 0.8125rem;
  line-height: 1.65;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-accent);
  content: "✓";
  font-weight: 700;
}

.feature-list strong {
  color: var(--color-text);
}

.feature-list code,
.not-included code,
.comparison__notes code {
  overflow-wrap: anywhere;
  font-size: 0.9em;
}

.not-included {
  margin-block: 1.25rem 0;
  padding: 0.75rem;
  border: 2px dashed rgb(255 59 59 / 40%);
  border-radius: var(--radius-small);
  background: rgb(255 59 59 / 8%);
  color: var(--color-danger);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-medium);
  font-size: 0.875rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.button--secondary {
  margin-top: 15px;
  border-color: rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 6%);
  color: #aaaaaa;
  font-family: var(--font-mono);
}

.button--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.button--primary {
  background: var(--color-accent);
  color: #000000;
  box-shadow: 0 0 2.5rem rgb(0 255 136 / 30%);
}

.button--primary:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.availability-note {
  margin: 0.625rem 0 0;
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-align: center;
}

/* 7. COMPARISON TABLE */
.comparison {
  max-width: 820px;
  margin: 3.125rem auto 0;
  padding: 1.5rem;
  border: 2px solid #1a1a1a;
  border-radius: var(--radius-large);
  background: #010101;
  box-shadow: var(--shadow-accent);
}

.comparison__title,
.comparison__notes h3 {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.comparison__scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #151515;
  vertical-align: top;
}

.comparison-table thead th {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  color: var(--color-text-subtle);
  font-weight: 400;
}

.comparison-table td {
  color: var(--color-text-subtle);
}

.comparison-table__pro {
  color: var(--color-accent) !important;
  font-weight: 700;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison__notes {
  margin-top: 1.5rem;
}

.comparison__notes h3 {
  margin-bottom: 0.75rem;
  text-align: left;
}

.comparison__notes p {
  margin-bottom: 0.5rem;
  color: #777777;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.comparison__notes code {
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  background: #111111;
}

/* 8. FOOTER */
.site-footer {
  position: relative;
  border-top: 2px solid rgb(0 255 136 / 35%);
  background: #010101;
  z-index: 2;
}

.footer-nav {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.footer-nav p,
.footer-nav a {
  margin: 0;
  color: #666666;
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

/* 9. RESPONSIVE AND ACCESSIBILITY */
@keyframes scanFull {
  0% { top: 0; }
  4% { top: 0; }
  48% { top: 100%; }
  52% { top: 100%; }
  96% { top: 0; }
  100% { top: 0; }
}

@media (max-width: 850px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 2rem; }
  .price-card--pro { margin-top: 0.25rem; }
}

@media (max-width: 600px) {
  :root { --page-gutter: 1.125rem; }
  .site-header, .nav { min-height: 68px; }
  .brand__image { width: 58px; height: 58px; }
  .brand__name { font-size: 1.375rem; }
  .hero { padding-block: 2.75rem 2rem; }
  .hero__title { font-size: clamp(2.125rem, 10vw, 3.25rem); letter-spacing: -0.06em; }
  .hero__description { font-size: 0.9rem; }
  .terminal { padding: 1rem; font-size: 0.7rem; }
  .pricing { padding-top: 1.5rem; }
  .section-heading { margin-bottom: 2rem; }
  .price-card { padding: 1.5rem 1.25rem; }
  .comparison { padding: 1rem; }
  .comparison-table { min-width: 540px; }
  .footer-nav { flex-direction: column; justify-content: center; text-align: center; }
}
