/* ==========================================================================
   SubMate Landing & Compliance Stylesheet
   Design System: Obsidian Dark + Emerald Watchdog + Glassmorphism
   ========================================================================== */

:root {
  --bg-main: #060911;
  --bg-secondary: #0c1220;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-elevated: #162035;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(16, 185, 129, 0.35);
  --border-coral: rgba(244, 63, 94, 0.35);

  --primary: #10B981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.22);
  --primary-gradient: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --coral-gradient: linear-gradient(135deg, #F43F5E 0%, #FB7185 100%);
  --violet-gradient: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);

  --coral: #F43F5E;
  --amber: #F59E0B;
  --cyan: #06B6D4;
  --violet: #8B5CF6;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #020617;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.25);
  --shadow-coral: 0 0 35px rgba(244, 63, 94, 0.2);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 10% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
              var(--bg-main);
  min-height: 100vh;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
  max-height: 64px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
}

.brand-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
  display: inline-block;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-coral {
  background: var(--coral-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--shadow-coral);
}

.btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-coral {
  background: rgba(244, 63, 94, 0.12);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22D3EE;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-coral {
  background: var(--coral-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Interactive Interactive Preview Card */
.preview-wrapper {
  margin: 3.5rem auto 0;
  max-width: 960px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), 0 0 60px rgba(16, 185, 129, 0.12);
  overflow: hidden;
  text-align: left;
  position: relative;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.preview-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.sub-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.sub-card.alert-card {
  border-color: var(--border-coral);
  background: rgba(244, 63, 94, 0.06);
}

.sub-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sub-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.avatar-netflix { background: #E50914; }
.avatar-adobe { background: #ED2224; }
.avatar-chatgpt { background: #10A37F; }
.avatar-spotify { background: #1DB954; }

.sub-details h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sub-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sub-pricing {
  text-align: right;
}

.sub-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sub-tag {
  font-size: 0.72rem;
  font-weight: 600;
}

/* Radar Insight Box */
.radar-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.insight-hike {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(244, 63, 94, 0.03) 100%);
  border-color: var(--border-coral);
}

.insight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.insight-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #FB7185;
}

.insight-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.btn-cancel-demo {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

/* Stat bar */
.savings-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #34D399;
}

/* Features Grid */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  padding: 2.25rem 1.75rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  background: var(--primary-gradient);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #34D399; }
.icon-coral { background: rgba(244, 63, 94, 0.12); color: #FB7185; }
.icon-cyan { background: rgba(6, 182, 212, 0.12); color: #22D3EE; }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #FBBF24; }
.icon-violet { background: rgba(139, 92, 246, 0.12); color: #A78BFA; }

.feature-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Calculator Section */
.calc-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.6) 100%);
}

.calc-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.calc-control {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.calc-val-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #34D399;
}

input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
}

.calc-results {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.results-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.results-number {
  font-size: 3rem;
  font-weight: 800;
  color: #34D399;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.results-caption {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

/* Compliance Section */
.compliance-section {
  padding: 5rem 0;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.compliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.compliance-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.compliance-top h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.compliance-top p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.compliance-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.compliance-link:hover {
  color: #34D399;
  transform: translateX(4px);
}

/* Legal Documents Template Styling (Privacy, Terms, Data Deletion) */
.legal-page {
  padding: 4rem 0 6rem;
}

.legal-header {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
}

.legal-sidebar {
  position: sticky;
  top: 6rem;
  height: fit-content;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.legal-sidebar h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  transition: var(--transition);
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.legal-nav a:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

.legal-content {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-content h2 {
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
}

.legal-content h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul, .legal-content ol {
  margin: 1rem 0 1.5rem 1.75rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-box h4 {
  color: #34D399;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.callout-danger {
  background: rgba(244, 63, 94, 0.06);
  border-color: var(--border-coral);
}

.callout-danger h4 {
  color: #FB7185;
}

/* Footer */
.footer {
  background: rgba(6, 9, 17, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links 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-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-body { grid-template-columns: 1fr; }
  .calc-box { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}
