/* ============================================
   MAXUS.DEV — Premium Light Landing
   ============================================ */

/* --- Design Tokens --- */
:root {
  --brand-cyan: #00A2FF;
  --brand-violet: #8B5CF6;
  --brand-gradient: linear-gradient(135deg, var(--brand-cyan), var(--brand-violet));
  --brand-gradient-h: linear-gradient(90deg, var(--brand-cyan), var(--brand-violet));

  --bg: #FBFBFD;
  --bg-elev-1: #FFFFFF;
  --bg-elev-2: #F4F5F7;
  --bg-elev-3: #EBEDF0;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);

  --text: #1A1A2E;
  --text-muted: #5A5E6B;
  --text-faint: #9196A1;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1120px;
  --section-gap: 120px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::selection {
  background: rgba(0, 162, 255, 0.2);
  color: #1A1A2E;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient-h);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 162, 255, 0.25);
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-md {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 4px 16px rgba(0, 162, 255, 0.25);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 162, 255, 0.35);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-elev-2);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #EEF4FF 0%, var(--bg) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(800px circle at 20% 30%, rgba(0, 162, 255, 0.08), transparent 55%),
    radial-gradient(600px circle at 80% 20%, rgba(139, 92, 246, 0.06), transparent 55%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 65%);
}

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

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--brand-cyan);
  background: rgba(0, 162, 255, 0.08);
  border: 1px solid rgba(0, 162, 255, 0.15);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-title .gradient-text {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* --- Products Section --- */
.products {
  padding: var(--section-gap) 0;
}

.products-header {
  text-align: center;
  margin-bottom: 64px;
}

.products-header .section-desc {
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  padding: 40px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient-h);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.product-icon.cyan {
  background: rgba(0, 162, 255, 0.10);
  color: var(--brand-cyan);
}

.product-icon.violet {
  background: rgba(139, 92, 246, 0.10);
  color: var(--brand-violet);
}

.product-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.product-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.product-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-cyan);
  flex-shrink: 0;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-cyan);
  transition: gap var(--transition);
}

.product-link:hover { gap: 10px; }

.product-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.product-link:hover svg { transform: translateX(2px); }

/* --- Services Section --- */
.services {
  padding: var(--section-gap) 0;
  background: var(--bg-elev-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-desc {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 162, 255, 0.08);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Process Section --- */
.process {
  padding: var(--section-gap) 0;
}

.process-header {
  text-align: center;
  margin-bottom: 64px;
}

.process-header .section-desc {
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: var(--bg-elev-3);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: var(--brand-gradient);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 162, 255, 0.20);
  transition: transform var(--transition), box-shadow var(--transition);
}

.process-step:hover .step-number {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 162, 255, 0.30);
}

.process-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta {
  padding: var(--section-gap) 0;
}

.cta-box {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px circle at 30% 50%, rgba(0, 162, 255, 0.06), transparent),
    radial-gradient(500px circle at 70% 50%, rgba(139, 92, 246, 0.05), transparent);
  pointer-events: none;
}

.cta-box .section-title {
  position: relative;
  z-index: 1;
}

.cta-box .section-desc {
  position: relative;
  z-index: 1;
  margin: 0 auto 32px;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li + li {
  margin-top: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--brand-cyan); }

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root { --section-gap: 80px; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { height: 60px; }

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-title { letter-spacing: -1px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 24px; }

  .cta-box { padding: 48px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }
}

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 80px;
  background: var(--bg);
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-page .legal-date {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 16px;
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.legal-page p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-page ul { list-style: disc; }
.legal-page ol { list-style: decimal; }
.legal-page li { margin-bottom: 6px; }

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  color: var(--text-muted);
}

.legal-page th {
  background: var(--bg-elev-2);
  font-weight: 600;
  color: var(--text);
}

.legal-page .requisites {
  background: var(--bg-elev-2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 24px 0;
}

.legal-page .requisites p {
  margin-bottom: 4px;
  font-size: 15px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.legal-page .back-link:hover { color: var(--brand-cyan); }

.legal-page a {
  color: var(--brand-cyan);
  transition: opacity var(--transition-fast);
}

.legal-page a:hover { opacity: 0.8; }

.payment-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}

.payment-logos .logo-box {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
