@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fraunces:wght@600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  color-scheme: light;
  --bg: #f5f2ee;
  --surface: #ffffff;
  --surface-2: #111827;
  --text: #1f2933;
  --muted: #586373;
  --border: rgba(31, 41, 51, 0.12);
  --accent: #0ea5a1;
  --accent-2: #f59e0b;
  --shadow: 0 22px 50px rgba(31, 41, 51, 0.12);
  --shadow-soft: 0 12px 24px rgba(31, 41, 51, 0.08);
  --font-body: 'Space Grotesk', 'Sora', sans-serif;
  --font-display: 'Fraunces', 'Georgia', serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b1116;
  --surface: #121a24;
  --surface-2: #0f151d;
  --text: #f8fafc;
  --muted: #9aa7b6;
  --border: rgba(148, 163, 184, 0.2);
  --accent: #2dd4bf;
  --accent-2: #fbbf24;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 14px 28px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  width: 520px;
  height: 520px;
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, rgba(14, 165, 161, 0.2), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.page {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 32px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--shadow);
}

.brand small {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.03);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.icon-btn.small {
  width: 36px;
  height: 36px;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
}

.icon {
  display: inline-flex;
}

.icon svg {
  width: 18px;
  height: 18px;
}

.icon-btn .moon {
  display: none;
}

:root[data-theme='dark'] .icon-btn .sun {
  display: none;
}

:root[data-theme='dark'] .icon-btn .moon {
  display: inline-flex;
}

.pill-btn {
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--accent);
  color: #0b1116;
  font-weight: 600;
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 161, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  animation: rise 0.6s ease both;
  animation-delay: var(--delay, 0s);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 12px 0;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #0b1116;
  box-shadow: 0 12px 30px rgba(14, 165, 161, 0.28);
}

.button.primary:hover {
  transform: translateY(-1px);
}

.button.ghost {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}

.button.outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button.full {
  width: 100%;
  text-align: center;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.metric {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card.main {
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(14, 165, 161, 0.2);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.hero-mini {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-mini span {
  background: rgba(15, 23, 42, 0.06);
  padding: 6px 10px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

:root[data-theme='dark'] .hero-mini span {
  background: rgba(148, 163, 184, 0.12);
}

.hero-card.float {
  background: linear-gradient(140deg, rgba(14, 165, 161, 0.12), rgba(245, 158, 11, 0.08));
}

.hero-card.float strong {
  font-size: 1.4rem;
}

.hero-stat-list {
  display: grid;
  gap: 12px;
}

.hero-stat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.section {
  display: grid;
  gap: 20px;
  animation: rise 0.6s ease both;
  animation-delay: var(--delay, 0s);
}

.section-head h2 {
  font-family: var(--font-display);
  margin: 6px 0 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 680px;
}

.trust-bar {
  padding: 24px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.trust-content {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.feature-grid,
.use-case-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 161, 0.12);
  color: var(--accent);
  margin-bottom: 12px;
}

.icon-badge svg {
  width: 20px;
  height: 20px;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-index {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  display: inline-flex;
  background: rgba(14, 165, 161, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.install-section {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  margin-top: 20px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.install-section ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.pricing-section .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pricing-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card.featured {
  border-color: rgba(14, 165, 161, 0.5);
  box-shadow: 0 28px 60px rgba(14, 165, 161, 0.2);
}

.pricing-head h3,
.pricing-head h4 {
  margin: 4px 0;
  font-size: 1.4rem;
}

.pricing-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0;
}

.pricing-note {
  color: var(--muted);
  margin: 0;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
}

.price-value {
  font-size: 2.4rem;
  font-weight: 700;
}

.price-period {
  font-size: 1rem;
  color: var(--muted);
  margin-left: 6px;
}

.pricing-footnote {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.pricing-features li::before {
  content: '-';
  color: var(--accent);
  margin-right: 8px;
}

.pricing-actions {
  display: grid;
  gap: 10px;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-grid details {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-section {
  padding: 28px;
  border-radius: 26px;
  margin-top: 20px;
  background: linear-gradient(120deg, rgba(14, 165, 161, 0.15), rgba(245, 158, 11, 0.12));
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: rise 0.6s ease both;
  animation-delay: var(--delay, 0s);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99;
}

.modal-card {
  width: min(440px, 94vw);
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.dashboard-shell {
  display: grid;
  gap: 24px;
}

.panel {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

input {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.google-login {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.account-panel {
  display: grid;
  gap: 20px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stats strong {
  font-size: 1.4rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.token-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 16px 18px;
}

.token-value {
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

.token-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.token-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.icon-btn .eye-open {
  display: none;
}

.icon-btn.is-visible .eye-open {
  display: inline-flex;
}

.icon-btn.is-visible .eye-off {
  display: none;
}

.link-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
}

.link-card strong {
  display: block;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions-row .button {
  flex: 1;
}

.group-panel {
  display: grid;
  gap: 14px;
}

.group-create {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.group-create input {
  flex: 1;
  min-width: 220px;
}

.group-alert {
  font-size: 0.9rem;
}

.group-list {
  display: grid;
  gap: 12px;
}

.group-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 12px;
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.group-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.group-actions .button {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.group-add {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.group-add input {
  flex: 1;
  min-width: 220px;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
}

.contact-chip button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.billing-panel {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border);
}

.billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-label {
  font-weight: 600;
  color: var(--muted);
}

.toggle-label.active {
  color: var(--accent);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  transition: 0.3s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: var(--accent);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.log-panel {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.log-panel .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.log-list {
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 12px;
}

.log-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.04);
}

.log-item strong {
  display: block;
  margin-bottom: 4px;
}

.log-item small {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-links {
    width: 100%;
  }
  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-actions {
    justify-content: flex-start;
  }
  .cta-group {
    flex-direction: column;
    width: 100%;
  }
  .button {
    width: 100%;
    text-align: center;
  }
  .token-box,
  .link-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel {
    padding: 20px;
  }
}

