/* ============================================
   NUVEX MEDIA — Stylesheet
   Modern SaaS · White + Slate + Indigo
   ============================================ */

:root {
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --accent: #4F46E5;
  --accent-deep: #4338CA;
  --accent-soft: #EEF2FF;
  --accent-glow: rgba(79, 70, 229, 0.12);
  --success: #10B981;
  --dark: #0F172A;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --radius: 12px;
  --radius-sm: 6px;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--accent); color: white; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 500; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }
h5 { font-size: 0.85rem; font-weight: 500; }

p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-soft);
  border-radius: 999px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
}

section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-head h2 { margin-top: 1.25rem; margin-bottom: 1rem; }
.section-head .lead { margin: 0 auto; }

/* ============================================
   NAV
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}
.brand .mark { width: 28px; height: 28px; }

.nav-links {
  display: none;
  gap: 2.25rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}
@media (min-width: 780px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
}
@media (min-width: 780px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.85rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 780px) { .mobile-nav { display: none !important; } }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(2px); }

.btn-ghost {
  background: white;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  margin: 1.5rem auto 1.5rem;
  max-width: 20ch;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin: 0 auto 2.5rem;
  max-width: 55ch;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-stat {
  padding: 0 0.5rem;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  display: block;
  font-weight: 500;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-item svg { width: 18px; height: 18px; color: var(--success); }

/* ============================================
   PRINCIPLES / WHAT WE DO
   ============================================ */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); } }

.principle {
  padding: 2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.principle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.principle-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.principle-icon svg { width: 22px; height: 22px; }
.principle h3 { margin-bottom: 0.6rem; }
.principle p { font-size: 0.95rem; }

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } }

.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, white 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-lg);
}
.product.featured .product-tag {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.product-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
  color: var(--ink);
}

.product-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  min-height: 3em;
  line-height: 1.55;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
}
.product-price .amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.product-price .currency {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.product-price .suffix {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.product ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.product ul li {
  font-size: 0.88rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--ink-soft);
  line-height: 1.5;
}
.product ul li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent);
}

.product-delivery {
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  margin-bottom: 1rem;
}

.product .btn { width: 100%; justify-content: center; }

/* Suite (full-width bundle) */
.suite {
  margin-top: 2.5rem;
  padding: 2.5rem;
  background: var(--dark);
  color: white;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .suite { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.suite::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.35), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.suite > * { position: relative; z-index: 1; }
.suite h3 { color: white; font-size: 1.75rem; margin-bottom: 0.5rem; }
.suite p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin-bottom: 1.25rem; }
.suite .product-code { color: #A5B4FC; }
.suite ul { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin-top: 1rem; }
@media (min-width: 640px) { .suite ul { grid-template-columns: 1fr 1fr; } }
.suite ul li { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); display: flex; gap: 0.5rem; }
.suite ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.15rem; color: #A5B4FC; }

.suite-cta {
  background: white;
  color: var(--dark);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}
.suite-cta .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.suite-cta .currency { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; display: block; }
.suite-cta .suffix { font-size: 0.85rem; color: var(--muted); display: block; margin-bottom: 1.25rem; }
.suite-cta .btn { width: 100%; justify-content: center; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  padding: 2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: var(--accent-soft);
  border-radius: 6px;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { font-size: 0.92rem; }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
  gap: 1rem;
}
.faq-q h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  letter-spacing: -0.005em;
}
.faq-toggle {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s;
  color: var(--muted);
  font-weight: 600;
}
.faq-toggle::before { content: '+'; font-size: 1.15rem; line-height: 1; }
.faq-item.open .faq-toggle { background: var(--accent); color: white; }
.faq-item.open .faq-toggle::before { content: '−'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-top 0.35s ease;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 65ch;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 1rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--surface);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-block {
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact-block .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.contact-block .value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.contact-block .value a { transition: color 0.2s; }
.contact-block .value a:hover { color: var(--accent); }
.contact-block .sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

form {
  background: white;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.legal h1 { margin-bottom: 1rem; }
.legal .last-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  margin: 2.25rem 0 1rem;
  color: var(--ink);
}
.legal h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}
.legal p, .legal li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.legal ul, .legal ol { margin: 0.5rem 0 1.25rem 1.4rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 600; }

.page-head {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-brand .brand { color: white; margin-bottom: 1rem; font-size: 1.4rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; max-width: 34ch; line-height: 1.55; }

.footer-col h5 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.footer-col a:hover { color: white; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 760px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.payment-icons { display: flex; gap: 0.4rem; align-items: center; }
.payment-icons span { font-size: 0.78rem; }
.payment-icons .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
}

/* ============================================
   REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
