/* ==========================================================================
   seeddata.dev — Styles
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --bg: #0a0e1a;
  --bg-surface: #0f1525;
  --bg-card: #141929;
  --bg-elevated: #1a2038;
  --border: #1e2744;
  --border-hover: #2a3558;

  --text: #e2e8f4;
  --text-secondary: #8892b0;
  --text-muted: #4a5578;

  --accent: #bef264;
  --accent-dim: rgba(190, 242, 100, 0.08);
  --accent-glow: rgba(190, 242, 100, 0.2);

  --cta: #f97316;
  --cta-hover: #fb923c;

  --t-customers: #60a5fa;
  --t-categories: #a78bfa;
  --t-products: #4ade80;
  --t-orders: #fb923c;
  --t-order-items: #f472b6;
  --t-reviews: #2dd4bf;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --nav-height: 4rem;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(190, 242, 100, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 242, 100, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
code, .mono { font-family: var(--font-mono); }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0a0e1a;
}
.btn-primary:hover {
  background: #d0ff7a;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  border: 1.5px solid var(--border-hover);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-cta {
  background: var(--cta);
  color: #fff;
}
.btn-cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.25);
  transform: translateY(-1px);
}
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2.25rem; font-size: 1.05rem; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(190, 242, 100, 0.12);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s ease both;
}
.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both 0.1s;
}
.hero-title .accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, #fff 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s ease both 0.2s;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s ease both 0.3s;
}
.hero-stat {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.hero-stat strong {
  color: var(--text);
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.7s ease both 0.4s;
}

/* --- Schema Section --- */
.schema-diagram {
  position: relative;
}
.schema-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.schema-line {
  fill: none;
  stroke: var(--border-hover);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  transition: stroke 0.35s ease, opacity 0.35s ease;
}
.schema-line.highlight {
  stroke: var(--accent);
  stroke-dasharray: none;
  opacity: 1;
}
.schema-line-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-muted);
}
.schema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.schema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.35s ease;
}
.schema-card:hover {
  border-color: var(--table-color, var(--border-hover));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.schema-card.dimmed {
  opacity: 0.35;
  filter: grayscale(0.3);
}
.schema-card.related {
  border-color: var(--table-color, var(--accent));
  box-shadow: 0 0 20px rgba(190, 242, 100, 0.06);
}
.schema-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.schema-card__name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--table-color, var(--text));
}
.schema-card__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}
.schema-card__columns {
  padding: 0.5rem 0;
}
.schema-col {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  transition: background 0.15s;
}
.schema-col:hover {
  background: rgba(255, 255, 255, 0.02);
}
.schema-col__name {
  color: var(--text);
  min-width: 0;
  flex-shrink: 0;
}
.schema-col__type {
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}
.schema-col__badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.badge-pk {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.badge-fk {
  color: var(--ref-color, var(--accent));
  background: var(--ref-bg, var(--accent-dim));
}

/* --- Data Preview --- */
.data-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.data-query {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
}
.data-query .prompt { color: var(--accent); flex-shrink: 0; }
.data-query .sql { color: var(--text-secondary); white-space: nowrap; }
.data-query .cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
.data-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.data-tabs::-webkit-scrollbar { display: none; }
.data-tab {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.data-tab:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.02); }
.data-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(190, 242, 100, 0.03);
}
.data-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}
.data-table-wrap::-webkit-scrollbar { height: 6px; }
.data-table-wrap::-webkit-scrollbar-track { background: transparent; }
.data-table-wrap::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.data-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
}
.data-table td {
  padding: 0.5rem 1rem;
  white-space: nowrap;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(30, 39, 68, 0.5);
}
.data-table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.data-table .num { text-align: right; color: #c4b5fd; }
.data-table .str { color: #86efac; }
.data-table .date { color: #93c5fd; }
.data-table .id { color: var(--text-muted); }
.data-panel { display: none; }
.data-panel.active { display: block; }
.data-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-top: 1rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-dim);
  background: linear-gradient(180deg, rgba(190, 242, 100, 0.04) 0%, var(--bg-card) 40%);
}
.pricing-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: var(--accent);
  color: #0a0e1a;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-price {
  margin-bottom: 1.5rem;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}
.pricing-amount .currency {
  font-size: 1.5rem;
  vertical-align: top;
  line-height: 1.4;
  opacity: 0.7;
}
.pricing-deal {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(249, 115, 22, 0.12);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cta);
}
.pricing-deal code {
  background: rgba(249, 115, 22, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}
.pricing-free {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.pricing-features {
  margin-bottom: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.pricing-features li {
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.pricing-features li::before {
  content: '~';
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
.pricing-features .highlight {
  color: var(--text);
  font-weight: 500;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}
.cta-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

/* --- Homepage --- */
.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.home-logo {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both;
}
.home-logo .dot { color: var(--accent); }
.home-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s ease both 0.1s;
}
.home-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 4rem;
  animation: fadeUp 0.7s ease both 0.2s;
}
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  width: 100%;
  animation: fadeUp 0.7s ease both 0.3s;
}
.vertical-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: left;
  transition: all 0.3s ease;
}
.vertical-card.active {
  border-color: var(--accent);
  cursor: pointer;
}
.vertical-card.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}
.vertical-card.soon {
  opacity: 0.45;
}
.vertical-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.vertical-card.soon .vertical-label { color: var(--text-muted); }
.vertical-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.vertical-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.vertical-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.vertical-card.active:hover .vertical-link { gap: 0.7rem; }
.vertical-soon {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .schema-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem 0; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 3rem; }
  .schema-grid { grid-template-columns: 1fr; }
  .schema-lines { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.popular { order: -1; }

  .footer .container { flex-direction: column; gap: 1rem; text-align: center; }
  .verticals-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 0.75rem; }
  .hero-stat { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
