/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #0b1121;
  --clr-surface: #111827;
  --clr-surface-alt: #1a2236;
  --clr-border: #1e293b;
  --clr-border-hover: #334155;
  --clr-primary: #0ea5e9;
  --clr-primary-dark: #0284c7;
  --clr-primary-glow: rgba(14, 165, 233, 0.15);
  --clr-accent: #06d6a0;
  --clr-accent-glow: rgba(6, 214, 160, 0.15);
  --clr-text: #e2e8f0;
  --clr-text-muted: #94a3b8;
  --clr-text-dim: #64748b;
  --clr-white: #f8fafc;
  --clr-danger: #ef4444;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-accent);
}

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

ul, ol {
  list-style: none;
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--clr-primary-glow);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--clr-primary);
  color: var(--clr-bg);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
  color: var(--clr-bg);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--clr-white);
}

.navbar-logo:hover {
  color: var(--clr-white);
}

.navbar-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.navbar-logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--clr-bg);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--clr-white);
  background: var(--clr-surface);
}

.navbar-links a.active {
  color: var(--clr-primary);
}

.navbar-cta {
  padding: 8px 20px !important;
  background: var(--clr-primary) !important;
  color: var(--clr-bg) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
}

.navbar-cta:hover {
  background: var(--clr-primary-dark) !important;
  color: var(--clr-bg) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 17, 33, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 20px;
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--clr-white);
  background: var(--clr-surface);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-links { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-bg-orb-1 {
  top: -200px;
  right: -100px;
  background: var(--clr-primary);
}

.hero-bg-orb-2 {
  bottom: -200px;
  left: -100px;
  background: var(--clr-accent);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: var(--clr-primary-glow);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: 20px;
  text-wrap: balance;
  animation: fadeInUp 0.6s ease 0.1s both;
}

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

.hero-description {
  font-size: 1.2rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

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

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-white);
  font-family: var(--font-mono);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  margin-top: 4px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero h1 { font-size: 2.25rem; }
  .hero-description { font-size: 1rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 1.5rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  color: var(--clr-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-outline:hover {
  color: var(--clr-white);
  border-color: var(--clr-border-hover);
  background: var(--clr-surface);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ===== CARDS ===== */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

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

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

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.card-icon-primary {
  background: var(--clr-primary-glow);
}

.card-icon-primary svg { stroke: var(--clr-primary); }

.card-icon-accent {
  background: var(--clr-accent-glow);
}

.card-icon-accent svg { stroke: var(--clr-accent); }

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== USE CASES ===== */
.use-case-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--clr-border-hover);
  color: var(--clr-white);
}

.tab-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-bg);
}

.use-case-panel {
  display: none;
}

.use-case-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  animation: fadeInUp 0.4s ease;
}

@media (max-width: 768px) {
  .use-case-panel.active {
    grid-template-columns: 1fr;
  }
}

.use-case-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 12px;
}

.use-case-info p {
  color: var(--clr-text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.use-case-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.use-case-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--clr-text);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--clr-accent-glow);
}

.check-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Code block */
.code-block {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--clr-surface-alt);
  border-bottom: 1px solid var(--clr-border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot-red { background: #ef4444; }
.code-dot-yellow { background: #eab308; }
.code-dot-green { background: #22c55e; }

.code-block-title {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  font-family: var(--font-mono);
  margin-left: auto;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
}

.code-block pre .keyword { color: #c084fc; }
.code-block pre .function { color: #60a5fa; }
.code-block pre .string { color: #4ade80; }
.code-block pre .comment { color: var(--clr-text-dim); font-style: italic; }
.code-block pre .number { color: #f59e0b; }

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 840px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 8px;
}

.legal-last-updated {
  font-size: 0.9rem;
  color: var(--clr-text-dim);
  margin-bottom: 40px;
}

.legal-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}

.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h3 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--clr-primary-glow);
  color: var(--clr-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.legal-section p,
.legal-section li {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.legal-section ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
}

.legal-section ul li {
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--clr-danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-text-dim);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--clr-surface);
  color: var(--clr-text);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--clr-primary-glow);
  border-radius: var(--radius-md);
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--clr-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--clr-text-dim);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.9rem;
  color: var(--clr-text);
  font-weight: 500;
}

.support-hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.support-hour-row .day {
  color: var(--clr-text);
  font-weight: 500;
}

.support-hour-row .time {
  color: var(--clr-text-muted);
}

/* Form toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-accent);
  border-radius: var(--radius-md);
  color: var(--clr-accent);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--clr-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--clr-border);
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--clr-text-dim);
}

.footer-bottom-links a:hover {
  color: var(--clr-text);
}

/* ===== 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 SECTION PADDING ===== */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 1.75rem; }
  .legal-content h2 { font-size: 1.75rem; }
  .legal-page { padding: 100px 0 60px; }
  .contact-form-card { padding: 24px; }
}
