:root {
  --bg: #070a12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --max: 1160px;
}

html[data-theme="light"] {
  --bg: #f6f7fb;
  --panel: rgba(0, 0, 0, 0.04);
  --panel2: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.12);
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.62);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(120,120,255,.22), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(0,200,255,.16), transparent 55%),
    radial-gradient(900px 600px at 50% 95%, rgba(80,255,170,.10), transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.active-link {
  color: var(--text) !important;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: rgba(120,120,255,.22);
}
.btn-ghost {
  background: var(--panel2);
}
.btn:disabled {
  cursor: not-allowed;
  transform: none;
}

/* Success state for button */
.btn-success {
  background: rgba(80, 255, 170, 0.25) !important;
  border-color: rgba(80, 255, 170, 0.4) !important;
}

.announce {
  padding: 14px 0 0;
}
.announce p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--border);
  margin-right: 10px;
  color: var(--text);
}

.hero {
  padding: 46px 0 40px;
}
.hero-inner { text-align: center; }

.hero-icon {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
}
.hero p {
  margin: 12px auto 0;
  max-width: 740px;
  line-height: 1.55;
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.subline {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
}
.dot { opacity: .65; }

/* Hero Screenshot Composition */
.shot-wrap {
  margin: 30px auto 0;
  max-width: 980px;
  padding: 10px;
}

.shot-stack {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
}

.shot-layer {
  grid-area: 1 / 1 / -1 / -1;
  width: 100%;
  height: auto;
  display: block;
}

.layer-base {
  z-index: 1;
}

.layer-front {
  z-index: 2;
  width: 85%;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  will-change: transform;
}

/* Glowing Blob Animation */
.shot-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.glow-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(120,120,255,0.8), transparent 70%);
  animation: glow-float 8s ease-in-out infinite alternate;
}

.glow-2 {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(0,200,255,0.8), transparent 70%);
  animation: glow-float 10s ease-in-out infinite alternate-reverse;
}

@keyframes glow-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

/* Philosophy / Centric Section */
.philosophy {
  padding: 20px 0 60px;
  text-align: center;
}
.philosophy h2 {
  font-size: 32px;
  margin-bottom: 16px;
}
.strike {
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.6;
  margin-right: 10px;
}
.philosophy-text {
  max-width: 680px;
  margin: 0 auto;
}
.philosophy-text p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* New Philosophy Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
  text-align: left;
}
.philosophy-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, background 0.2s;
}
.philosophy-card:hover {
  background: var(--panel);
  transform: translateY(-2px);
}
.philosophy-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--text);
}
.philosophy-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.philosophy-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #7878ff;
  background: rgba(120, 120, 255, 0.1);
  padding: 10px;
  border-radius: 12px;
}

.features {
  padding: 40px 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid .card {
  padding: 18px;
}
.grid h3 {
  margin: 0;
  font-size: 16px;
}
.grid p {
  margin: 8px 0 0;
  line-height: 1.55;
}
.span-full {
  grid-column: 1 / -1;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.pricing {
  padding: 40px 0 40px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.price-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}
.price-header h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}
.period {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.price-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.price-features li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 8px;
}
.price-features li::before {
  content: "•";
  color: var(--text);
}
.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Contact Section Styles */
.contact {
  padding: 20px 0 60px;
}
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
}
.form-row {
  display: flex;
  gap: 14px;
}
.half {
  flex: 1;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.form-input {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.form-input:focus {
  border-color: rgba(120,120,255,0.4);
  box-shadow: 0 0 0 4px rgba(120,120,255,0.1);
  background: var(--panel);
}
.form-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
.contact-form .btn {
  width: 100%;
  margin-top: 8px;
  font-weight: 500;
  font-size: 15px;
  height: 44px;
}

.cta {
  padding: 22px 0 60px;
}
.cta-inner {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cta h2 {
  margin: 0;
  font-size: 18px;
}
.cta p {
  margin: 8px 0 0;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel2);
}
.toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
}
.toggle.is-active { color: var(--text); background: var(--panel); }

/* --- Documentation Styles --- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-header {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}

.docs-link {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  border-left: 2px solid transparent;
  padding-left: 14px;
  margin-left: 2px;
  transition: color 0.15s;
}
.docs-link:hover {
  color: var(--text);
  text-decoration: none;
}

.docs-content h1 {
  margin: 0 0 16px;
  font-size: 36px;
}
.docs-content .lead {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.docs-content hr {
  border: 0;
  border-bottom: 1px solid var(--border);
  margin: 30px 0;
}

.docs-content h2 {
  margin: 40px 0 16px;
  font-size: 24px;
  color: var(--text);
}

.docs-content h3 {
  margin: 30px 0 12px;
  font-size: 18px;
  color: var(--text);
}

.docs-content p, .docs-content ul {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 16px;
}

.docs-content strong {
  color: var(--text);
}

.docs-content pre {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.docs-content code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: var(--text);
}

.docs-content p code, .docs-content li code {
  background: rgba(255,255,255,0.1);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.9em;
}
html[data-theme="light"] .docs-content p code,
html[data-theme="light"] .docs-content li code {
  background: rgba(0,0,0,0.06);
}

/* Docs Table Styles */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.docs-table th, .docs-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.docs-table th {
  color: var(--text);
  font-weight: 600;
}
.docs-table td {
  color: var(--muted);
}
.kbd {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 12px;
  color: var(--text);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  /* Collapse philosophy grid on tablet/mobile */
  .philosophy-grid { grid-template-columns: 1fr; }
  
  .cta-inner { flex-direction: column; align-items: flex-start; }
  
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .docs-sidebar {
    position: static;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}