/* Stratux Signal — static site (matches app palette, flat UI) */

:root {
  --bg: #121214;
  --bg-elevated: #1a1a1e;
  --grid: #2a2a2e;
  --signal-red: #ff453a;
  --signal-blue: #0a84ff;
  --accent: #ffd60a;
  --node: #e5e5ea;
  --text: #ffffff;
  --muted: #6e6e73;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--signal-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* —— Layout —— */
.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grid);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 15px;
}
.brand:hover {
  text-decoration: none;
  color: var(--node);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--grid);
}

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

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav a.is-active {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--signal-red);
  color: #fff;
}
.btn-secondary {
  background: var(--grid);
  color: var(--text);
  border: 1px solid var(--grid);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  inset: 48px 8% auto;
  max-width: 420px;
  margin: auto;
  height: min(42vw, 280px);
  border: 1px solid rgba(255, 214, 10, 0.2);
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0.5;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}

.hero .tagline {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-badge {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--grid);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* —— Sections —— */
section {
  padding: 64px 0;
  border-top: 1px solid var(--grid);
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* —— Feature grid —— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.08);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 650;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* —— Steps —— */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps span {
  color: var(--muted);
  font-size: 15px;
}

/* —— Screenshot carousel (SS assets) —— */
.section-screenshots {
  padding-top: 56px;
  padding-bottom: 72px;
}

.carousel {
  outline: none;
}

.carousel:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--signal-blue);
  border-radius: var(--radius);
}

.carousel-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
}

.carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius);
  border: 1px solid var(--grid);
  background: var(--bg-elevated);
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-viewport {
    scroll-behavior: auto;
  }
}

.carousel-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 200px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 28px;
  box-sizing: border-box;
}

.carousel-frame {
  margin: 0;
  max-width: min(340px, 88vw);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  background: #0a0a0c;
}

.carousel-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-nav {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--grid);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.carousel-nav:hover:not(:disabled) {
  background: var(--grid);
  border-color: rgba(10, 132, 255, 0.45);
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--grid);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dots button[aria-current="true"] {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.carousel-thumbs button {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.carousel-thumbs button:hover {
  border-color: rgba(10, 132, 255, 0.4);
}

.carousel-thumbs button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 214, 10, 0.25);
}

.carousel-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-shot {
  width: calc(100% + 48px);
  max-width: none;
  margin: -24px -24px 16px -24px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--grid);
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
  object-position: top center;
}

.site-preview {
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--grid);
}

.site-preview h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.site-preview p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
}

.site-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
}

.site-preview-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--grid);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-preview-grid a:hover {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-preview-grid img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 640px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .site-preview-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

/* —— CTA strip —— */
.cta {
  text-align: center;
  padding: 56px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}
.cta h2 {
  margin-bottom: 12px;
}
.cta p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* —— Legal / inner pages —— */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--grid);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 8px;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
}

.legal {
  padding: 40px 0 80px;
  max-width: 720px;
}
.legal h2 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal p,
.legal li {
  color: var(--node);
  font-size: 16px;
}
.legal ul {
  padding-left: 1.2em;
}

/* —— Footer —— */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--grid);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer strong {
  color: var(--text);
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

.copy {
  padding-top: 24px;
  border-top: 1px solid var(--grid);
  font-size: 13px;
}

@media (max-width: 720px) {
  .nav {
    width: 100%;
    justify-content: flex-end;
  }
  .site-header .inner {
    flex-wrap: wrap;
  }
}
