/* ══════════════════════════════════════════════════════════════
   RVS Solutions — Corporate Design System
   Resonant Vision Systems · A Palod Group Company
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ── */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #EEF2FF;
  --primary-subtle: #E0E7FF;
  --accent: #06B6D4;
  --accent-light: #ECFEFF;

  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-muted: #F3F4F6;
  --surface: #FFFFFF;

  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --text: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;

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

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }

.display { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.headline { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; }
.title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.subtitle { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; }
.body-lg { font-size: 1.0625rem; line-height: 1.7; color: var(--text-secondary); }
.body { font-size: 0.9375rem; line-height: 1.6; }
.caption { font-size: 0.8125rem; color: var(--text-muted); }
.overline { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.mono { font-family: 'JetBrains Mono', monospace; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: inherit; font-weight: 600; text-decoration: none;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); font-size: 0.875rem;
  padding: 0.625rem 1.25rem; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(79,70,229,0.35); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-muted); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-alt); border-color: #D1D5DB; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg-alt); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 0.9375rem; border-radius: var(--radius); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }
.btn svg { width: 18px; height: 18px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-brand img { width: 30px; height: 30px; border-radius: 6px; }
.nav-brand-text { font-size: 1rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.nav-brand-text .accent { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-divider { width: 1px; height: 24px; background: var(--border); margin: 0 0.5rem; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: all var(--transition); }

/* ── Sections ── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--text); color: var(--text-inverse); }

.section-header { text-align: center; margin-bottom: 3.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-header .overline { margin-bottom: 0.75rem; display: block; }
.section-header .headline { margin-bottom: 0.75rem; }
.section-header .subtitle { margin-bottom: 0; }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all var(--transition);
}
.card:hover { border-color: #D1D5DB; box-shadow: var(--shadow-md); }
.card-featured {
  border-color: rgba(79,70,229,0.25);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
}
.card-featured:hover { border-color: rgba(79,70,229,0.4); box-shadow: 0 8px 24px rgba(79,70,229,0.1); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-live { background: #D1FAE5; color: #065F46; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #10B981; }
.badge-soon { background: var(--primary-light); color: var(--primary); }
.badge-dev { background: #FEF3C7; color: #92400E; }
.badge-tool { background: var(--accent-light); color: #0E7490; }

/* ── Product Cards ── */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all var(--transition-slow); position: relative; overflow: hidden;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.product-card.live { border-color: rgba(79,70,229,0.25); }
.product-card.live:hover { border-color: rgba(79,70,229,0.4); }

.product-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.5rem;
}
.product-icon.indigo { background: var(--primary-light); color: var(--primary); }
.product-icon.cyan { background: var(--accent-light); color: var(--accent); }
.product-icon.amber { background: #FEF3C7; color: #D97706; }
.product-icon.emerald { background: #D1FAE5; color: #059669; }

.product-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-card .product-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.25rem; }
.product-features { margin-bottom: 1.5rem; }
.product-features li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.8125rem; color: var(--text-secondary); padding: 0.3rem 0;
}
.product-features li svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.product-card .product-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ── Stats Grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card { text-align: center; padding: 1.5rem; }
.stat-value { font-size: 2.5rem; font-weight: 900; color: var(--primary); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.375rem; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-item { padding: 1.5rem; }
.feature-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-item-icon svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.375rem; }
.feature-item p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Quote Block ── */
.quote-block {
  position: relative; padding: 3rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFF 60%);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius-lg);
}
.quote-block::before {
  content: '"'; position: absolute; top: 1rem; left: 1.5rem;
  font-size: 5rem; line-height: 1; color: rgba(79,70,229,0.15);
  font-family: Georgia, serif;
}
.quote-block p {
  font-size: 1.125rem; line-height: 1.8; color: var(--text);
  font-style: italic; position: relative; z-index: 1;
}
.quote-block .quote-author {
  margin-top: 1.25rem; font-style: normal; font-size: 0.875rem;
  font-weight: 600; color: var(--primary);
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary-light); border: 3px solid var(--primary);
}
.timeline-item h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.125rem; }
.timeline-item .timeline-date { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.375rem; display: block; }
.timeline-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Founder Card ── */
.founder-card {
  display: flex; gap: 2.5rem; align-items: center;
  padding: 2.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.founder-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; font-weight: 900; color: white;
  flex-shrink: 0;
}
.founder-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.founder-info .founder-title { font-size: 0.9375rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; }
.founder-info p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Values Grid ── */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.value-card { padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.value-card .value-number { font-size: 2rem; font-weight: 900; color: var(--primary-light); margin-bottom: 0.5rem; line-height: 1; }
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; }
.value-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Contact Form ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.375rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9375rem;
  font-family: inherit; color: var(--text); background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

.contact-info-card {
  padding: 2rem; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.contact-info-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: var(--text-secondary); padding: 0.5rem 0;
}
.contact-info-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-info-item a { color: var(--primary); font-weight: 500; }
.contact-info-item a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta-section { padding: 6rem 0; }
.cta-card {
  position: relative; text-align: center; padding: 5rem 2rem;
  background: var(--text); border-radius: var(--radius-xl); color: var(--text-inverse);
  overflow: hidden;
}
.cta-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: var(--primary); filter: blur(120px); opacity: 0.15;
}
.cta-glow-1 { top: -200px; right: -100px; }
.cta-glow-2 { bottom: -200px; left: -100px; }
.cta-card h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; position: relative; }
.cta-card p { font-size: 1.0625rem; opacity: 0.7; max-width: 500px; margin: 0 auto 2rem; position: relative; }
.cta-actions { position: relative; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-card .btn-primary { background: var(--primary); }
.cta-card .btn-primary:hover { background: var(--primary-dark); }
.cta-card .btn-secondary { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: white; }
.cta-card .btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* ── Footer ── */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 0.875rem; color: var(--text-secondary);
  padding: 0.3rem 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--primary); }

/* ── Page Header ── */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
  text-align: center;
}
.page-header .overline { margin-bottom: 0.75rem; display: block; }
.page-header .display { margin-bottom: 1rem; }
.page-header .subtitle { max-width: 600px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; flex-direction: column; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-actions { display: none; }
  .nav-inner { padding: 0 1rem; }
  .nav-divider { display: none; }

  .container, .container-sm, .container-lg { padding: 0 1rem; }

  .section { padding: 4rem 0; }
  .page-header { padding: 6rem 0 3rem; }

  .display { font-size: 2rem; }
  .headline { font-size: 1.5rem; }

  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .founder-card { flex-direction: column; text-align: center; gap: 1.5rem; }
  .founder-avatar { width: 100px; height: 100px; font-size: 2.5rem; }

  .quote-block { padding: 2rem 1.5rem; }
  .quote-block p { font-size: 1rem; }

  .stat-value { font-size: 2rem; }

  .cta-card { padding: 3rem 1.5rem; }
  .cta-card h2 { font-size: 1.5rem; }

  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .display { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .product-card { padding: 1.5rem; }
  .card { padding: 1.25rem; }
}
