:root {
  /* Colors */
  --bg-main: #0b0e14;
  --bg-surface: #151a23;
  --bg-hover: #1f2937;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: #818cf8;

  --text-head: #f9fafb;
  --text-body: #a1a1aa;
  --text-muted: #6b7280;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-head);
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

.text-center {
  text-align: center;
}

.glass-panel {
  background: rgba(21, 26, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-head);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 1001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: var(--header-height);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-head);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 0.95rem;
  color: var(--text-body);
}

nav a:hover {
  color: var(--text-head);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(11, 14, 20, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Dashboard Preview */
.dashboard-preview {
  margin-top: 4rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* App Store Buttons */
.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background-color: var(--bg-surface);
  color: var(--text-head);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  font-size: 0.95rem;
  gap: 0.75rem;
  min-width: 180px;
  transition: all 0.3s ease;
}

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

.btn-store svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Feature Lists */
.feature-card ul {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-card li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

/* Mobile Showcase In Why Section */
.mobile-showcase {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-showcase img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* Features Section */
.features {
  padding: 5rem 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card .feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-head);
  font-family: var(--font-heading);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-body);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Why Arthavi */
.why-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom, var(--bg-main), var(--bg-surface));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-item strong {
  display: block;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--text-head);
  margin-bottom: 0.25rem;
}

.check-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Trust & Privacy */
.trust-section {
  padding: 5rem 0;
  text-align: center;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 200px;
}

.trust-badge strong {
  color: var(--text-head);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.lock-icon {
  font-size: 2rem;
  color: var(--primary);
}

/* FAQ */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-surface);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-head);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-body);
  display: none;
  line-height: 1.6;
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease; /* Simple fade for expanded answer */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.icon-plus {
  transition: transform 0.3s ease;
}

.faq-item.active .icon-plus {
  transform: rotate(45deg);
}

/* Final CTA */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(11, 14, 20, 0) 70%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-brand strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer-links strong {
  display: block;
  color: var(--text-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Comparison Section */
.comparison-section {
  padding: 6rem 0;
  position: relative;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.05) 0%,
    transparent 60%
  );
}

.comparison-container {
  max-width: 900px;
  margin: 3rem auto 4rem;
  overflow: hidden; /* For rounded corners on the table */
}

.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure readability on mobile */
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  color: var(--text-body);
  font-size: 1rem;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
  background: rgba(99, 102, 241, 0.08); /* Highlight Arthavi column */
  border-bottom-color: rgba(99, 102, 241, 0.1);
  color: var(--text-head);
  font-weight: 500;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.comp-item strong {
  display: block;
  color: var(--text-head);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(
    180deg,
    var(--bg-body) 0%,
    rgba(99, 102, 241, 0.05) 50%,
    var(--bg-body) 100%
  );
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-image: linear-gradient(
    to right,
    var(--primary) 50%,
    transparent 50%
  );
  background-size: 20px 1px;
  background-repeat: repeat-x;
  opacity: 0.3;
  z-index: 0;
}

@media (max-width: 768px) {
  .steps-grid::before {
    display: none;
  }
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.step-card h3 {
  margin-bottom: 1rem;
  color: var(--text-head);
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  header .container {
    padding: 0 1rem;
  }

  nav {
    display: none;
  }
}

/* Text Page Layouts (Privacy, Terms, About, etc) */
.page-header {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 2rem;
  text-align: center;
}

.prose {
  max-width: 800px;
  margin: 0 auto 4rem;
  color: var(--text-body);
}

.prose h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-head);
}

.prose h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-head);
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-head);
}

.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--text-muted);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Contact Page Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  text-align: center;
  padding: 2rem;
}

.step-card strong {
  display: block;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--text-head);
  margin-bottom: 1rem;
}
