/* Nexus Sites — turnkey websites landing */
:root {
  --bg: #071018;
  --bg-2: #0c1a24;
  --ink: #e8f1f4;
  --muted: #8aa0ad;
  --line: rgba(120, 190, 200, 0.16);
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.14);
  --sand: #e7c07a;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --nav-h: 72px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sites-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgba(231, 192, 122, 0.08), transparent 50%),
    linear-gradient(180deg, #071018 0%, #0a1520 50%, #071018 100%);
}

.sites-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(120, 190, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 200, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.sites-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.sites-glow-a {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -8%;
  background: rgba(45, 212, 191, 0.18);
  animation: drift 14s ease-in-out infinite alternate;
}

.sites-glow-b {
  width: 360px;
  height: 360px;
  top: 18%;
  right: -6%;
  background: rgba(231, 192, 122, 0.12);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, 18px); }
}

.sites-nav,
main,
.sites-footer {
  position: relative;
  z-index: 1;
}

/* Nav */
.sites-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--pad);
  background: rgba(7, 16, 24, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.sites-nav.scrolled {
  background: rgba(7, 16, 24, 0.92);
  border-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}

.product-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 26, 36, 0.7);
}

.product-switch-link {
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
}

.product-switch-link:hover { color: var(--ink); }

.product-switch-link.is-active {
  color: var(--ink);
  background: var(--teal-dim);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.28);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  padding: 10px 18px !important;
  border-radius: 999px;
  background: var(--teal);
  color: #042018 !important;
  font-weight: 600 !important;
}

.nav-cta:hover { filter: brightness(1.06); color: #042018 !important; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: calc(var(--nav-h) + 40px) var(--pad) 64px;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  letter-spacing: 0.28em;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(110deg, #e8f1f4 20%, #2dd4bf 55%, #e7c07a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brand-in 1s ease both;
}

@keyframes brand-in {
  from { opacity: 0; letter-spacing: 0.5em; transform: translateY(12px); }
  to { opacity: 1; letter-spacing: 0.28em; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-accent {
  color: var(--teal);
}

.hero-lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

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

.btn-primary,
.btn-ghost,
.btn-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 14px 24px;
  transition: transform 0.2s, filter 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--teal);
  color: #042018;
}

.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: rgba(45, 212, 191, 0.45); color: var(--teal); }

.hero-visual { display: flex; justify-content: center; }

.mock-browser {
  width: min(100%, 420px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 26, 36, 0.85);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: float-mock 6s ease-in-out infinite;
}

@keyframes float-mock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.7);
}

.mock-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(138, 160, 173, 0.35);
}

.mock-chrome span:nth-child(1) { background: #f87171; }
.mock-chrome span:nth-child(2) { background: #fbbf24; }
.mock-chrome span:nth-child(3) { background: #34d399; }

.mock-url {
  margin-left: 10px;
  flex: 1;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.8);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.mock-body { padding: 22px; }

.mock-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(138, 160, 173, 0.2);
  margin-bottom: 10px;
}

.mock-line-lg {
  height: 22px;
  width: 72%;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.45), rgba(231, 192, 122, 0.35));
  margin-bottom: 16px;
}

.mock-line-short { width: 48%; margin-bottom: 22px; }

.mock-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-block {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.18), rgba(12, 26, 36, 0.9));
  border: 1px solid var(--line);
}

.mock-block:nth-child(2) {
  background: linear-gradient(160deg, rgba(231, 192, 122, 0.2), rgba(12, 26, 36, 0.9));
}

/* Sections */
.section {
  padding: 88px var(--pad);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-item {
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}

.work-num {
  display: block;
  margin-bottom: 16px;
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.work-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.work-item p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Pricing */
.section-pricing {
  background: linear-gradient(180deg, transparent, rgba(12, 26, 36, 0.55), transparent);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 26, 36, 0.65);
  display: flex;
  flex-direction: column;
}

.price-card-hot {
  border-color: rgba(45, 212, 191, 0.4);
  background: linear-gradient(165deg, rgba(45, 212, 191, 0.1), rgba(12, 26, 36, 0.8));
  transform: translateY(-6px);
}

.price-hot {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal);
  color: #042018;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.price-was {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: line-through;
  opacity: 0.75;
}

.price-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 6px 0 8px;
}

.price-value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 22px;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--ink);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(120, 190, 200, 0.08);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.btn-price {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-price:hover {
  border-color: rgba(45, 212, 191, 0.5);
  color: var(--teal);
}

.btn-price-glow {
  background: var(--teal);
  color: #042018;
  border-color: transparent;
}

.btn-price-glow:hover {
  filter: brightness(1.06);
  color: #042018;
}

.price-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.price-note a { color: var(--teal); }

/* Process */
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-list li {
  padding: 22px 20px;
  border-left: 2px solid rgba(45, 212, 191, 0.35);
  background: rgba(12, 26, 36, 0.4);
}

.process-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-list span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Order */
.section-order {
  padding-top: 40px;
  padding-bottom: 100px;
}

.order-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 40px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(12, 26, 36, 0.7);
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.order-full { grid-column: 1 / -1; }

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.75);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: rgba(45, 212, 191, 0.5);
}

.order-form textarea { resize: vertical; min-height: 110px; }

.order-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}

.order-hint {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
}

.order-hint-ok { color: var(--teal); }
.order-hint-error { color: #f87171; }

.order-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Footer */
.sites-footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--pad) 48px;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.footer-brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--teal); }

.footer-copy {
  color: rgba(138, 160, 173, 0.7);
  font-size: 0.82rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-brand, .mock-browser, .sites-glow { animation: none; }
}

/* Mobile */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 28px);
  }

  .hero-visual { order: -1; }

  .mock-browser { width: min(100%, 360px); }

  .work-list,
  .price-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .price-card-hot { transform: none; }
}

@media (max-width: 768px) {
  .nav-burger { display: flex; }

  .product-switch { margin-right: auto; }

  .nav-right {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 24px;
    background: rgba(7, 16, 24, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }

  .order-form { grid-template-columns: 1fr; }

  .hero-brand {
    font-size: clamp(2rem, 11vw, 3rem);
    letter-spacing: 0.18em;
  }
}
