:root {
  /* Macondo DarkModern Theme (Aligned with Desktop Software) */
  --bg-page: #14141d;
  --bg-surface: #1e1e28;
  --bg-surface-elevated: #22222e;
  --bg-surface-hover: #292938;
  --bg-pill: rgba(255, 255, 255, 0.06);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(16, 185, 129, 0.5);

  --text-headline: #ececf0;
  --text-body: #a0a0b8;
  --text-secondary: #85859e;
  --text-muted: #707084;

  /* Macondo Emerald Accent */
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.15);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  --radius-pill: 980px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Minimal Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 20, 29, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-headline);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-light);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  transition: color 0.15s ease;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-headline);
  border-color: var(--border-medium);
}

.lang-btn .current {
  color: var(--text-headline);
  font-weight: 600;
}

/* Apple-style Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-headline);
  color: #000000;
}

.btn-primary:hover {
  background-color: #e5e5ea;
  transform: scale(1.02);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--accent-light);
  transform: scale(1.02);
}

.btn-secondary {
  background-color: var(--bg-pill);
  color: var(--text-headline);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--border-medium);
}

.btn-large {
  padding: 12px 26px;
  font-size: 0.95rem;
}

/* Hero Section (Insomnia / Apple Minimalism) */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-pill-badge {
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-headline);
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero-title .dimmed {
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Obsidian & Supabase Developer App Screenshot Showcase */
.showcase-window {
  margin-top: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), 0 0 50px -15px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-align: left;
}

/* Screenshot View */
.screenshot-holder {
  width: 100%;
  background: #181820;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* Nav Organization Link */
.nav-org {
  display: inline-flex;
  align-items: center;
}

/* Table View (Minimal Insomnia style data grid) */
.table-holder {
  padding: 20px;
  overflow-x: auto;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.clean-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.clean-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.clean-table tr:hover td {
  background: var(--bg-surface-elevated);
  color: var(--text-headline);
}

.risk-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}
.risk-tag.critical { background: rgba(255, 69, 58, 0.15); color: #ff453a; }
.risk-tag.high { background: rgba(255, 159, 10, 0.15); color: #ff9f0a; }
.risk-tag.medium { background: rgba(255, 214, 10, 0.15); color: #ffd60a; }
.risk-tag.low { background: rgba(48, 209, 88, 0.15); color: #30d158; }

/* Code Slice View */
.code-holder {
  padding: 24px;
}

.minimal-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-body);
  background: #14141d;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.minimal-code .accent { color: var(--accent-light); }
.minimal-code .purple { color: #bf5af2; }
.minimal-code .blue { color: #0a84ff; }
.minimal-code .dim { color: var(--text-muted); }

/* Feature Story Sections (Apple-style High Clarity Blocks) */
.feature-block {
  padding: 50px 0;
  border-top: 1px solid var(--border-subtle);
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.feature-heading {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-headline);
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.feature-point svg {
  width: 16px;
  height: 16px;
  color: var(--text-headline);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-card-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Minimalist 3-Column Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-minimal {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.2s ease;
}

.card-minimal:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-headline);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Download Section */
.download-section {
  padding: 52px 0 60px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.download-box {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #14141d 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  max-width: 820px;
  margin: 0 auto;
}

.download-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-headline);
  margin-bottom: 12px;
}

.download-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 30px;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 24px;
  flex-wrap: wrap;
}

.download-feedback {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.download-feedback a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.download-feedback a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-disclaimer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Legal & Documentation Pages */
.legal-page {
  padding: 60px 0 100px;
}

.legal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-nav-back {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--accent-light);
}

.legal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 30px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-headline);
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
}

.legal-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-headline);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.legal-section-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
}

.legal-section-desc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-surface-elevated);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-headline);
}

/* Responsiveness */
@media (max-width: 860px) {
  .hero-title { font-size: 2.6rem; }
  .feature-grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .legal-box { padding: 36px 24px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.1rem; }
  .nav { display: none; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .download-box { padding: 36px 20px; }
  .legal-title { font-size: 1.8rem; }
}
