@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Theme variables ─────────────────────────────────────── */
:root,
[data-theme="light"] {
  --bg:           #f5f6f8;
  --bg-alt:       #eceff4;
  --surface:      #ffffff;
  --surface-2:    #f9fbfd;
  --text:         #1a1f2e;
  --text-muted:   #5f6b7a;
  --accent:       #4a90c8;
  --accent-2:     #459d9f;
  --accent-glow:  rgba(74,144,200,.18);
  --border:       #d4d9e3;
  --card-shadow:  0 8px 32px rgba(0,0,0,.08);
  --card-hover:   0 12px 40px rgba(74,144,200,.15);
  --nav-bg:       #111827;
  --nav-text:     #e5e7eb;
  --hero-grad:    linear-gradient(135deg, #e8f0fe 0%, #e0f2f1 100%);
  --badge-bg:     #e8f4fd;
  --badge-text:   #1a5c9a;
  --step-num:     #4a90c8;
  --tag-bg:       #e8f0fe;
  --tag-text:     #2c5f8a;
}

[data-theme="dark"] {
  --bg:           #060c18;
  --bg-alt:       #0a1020;
  --surface:      #0d1420;
  --surface-2:    #141c2e;
  --text:         #c9d8ef;
  --text-muted:   #8ba4c8;
  --accent:       #1ed7b4;
  --accent-2:     #4a90c8;
  --accent-glow:  rgba(30,215,180,.15);
  --border:       #1e2d45;
  --card-shadow:  0 24px 64px rgba(0,0,0,.55);
  --card-hover:   0 24px 64px rgba(30,215,180,.12);
  --nav-bg:       #060c18;
  --nav-text:     #c9d8ef;
  --hero-grad:    linear-gradient(135deg, #060c18 0%, #0a1020 100%);
  --badge-bg:     rgba(30,215,180,.1);
  --badge-text:   #1ed7b4;
  --step-num:     #1ed7b4;
  --tag-bg:       rgba(74,144,200,.12);
  --tag-text:     #7ab8e8;
}


/* ─── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── Navbar ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.nav-brand img { height: 32px; width: 32px; border-radius: 6px; }

.nav-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nav-text);
  letter-spacing: -.3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-link {
  color: var(--nav-text);
  opacity: .75;
  font-size: .875rem;
  font-weight: 500;
  padding: .35rem .7rem;
  border-radius: 6px;
  transition: opacity .2s, background .2s;
  text-decoration: none;
}
.nav-link:hover { opacity: 1; background: rgba(255,255,255,.08); text-decoration: none; }

/* Theme toggle buttons */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 3px;
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--nav-text);
  opacity: .6;
  padding: .3rem .75rem;
  border-radius: 6px;
  transition: background .2s, opacity .2s;
  line-height: 1;
  white-space: nowrap;
}
.theme-btn:hover { background: rgba(255,255,255,.1); opacity: .9; }
.theme-btn.active { background: rgba(255,255,255,.18); opacity: 1; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--hero-grad);
  padding: 6rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow), transparent);
  pointer-events: none;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.hero-badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 6px 24px var(--accent-glow); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); }

/* ─── Section layout ──────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: .75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ─── About ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.about-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stat-icon { font-size: 1.3rem; }

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
}

/* ─── AI Spotlight ────────────────────────────────────────── */
.ai-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ai-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
}
.ai-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }

.ai-card-main {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: .5rem 1.25rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-alt) 100%);
  border-color: var(--accent);
  border-width: 2px;
}

.ai-card-main .ai-card-icon {
  font-size: 2.5rem;
  grid-row: span 2;
  align-self: center;
}

.ai-card-icon { font-size: 1.8rem; margin-bottom: .75rem; }

.ai-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.ai-card-main .ai-card-title {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0;
  align-self: end;
}

.ai-card-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ai-card-main .ai-card-desc {
  grid-column: 2;
}

/* ─── Feature cards ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.feature-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── How to use ──────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .875rem;
  color: var(--step-num);
  margin-top: .15rem;
}

.step-body {}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .25rem;
}

.step-desc {
  font-size: .9rem;
  color: var(--text-muted);
}

.step-code {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  color: var(--accent);
  padding: .25rem .6rem;
  margin-top: .4rem;
}

/* ─── Notice box ──────────────────────────────────────────── */
.notice-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-top: 2.5rem;
  box-shadow: var(--card-shadow);
}

.notice-icon { font-size: 1.2rem; margin-top: .1rem; flex-shrink: 0; }

.notice-title {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .3rem;
}

.notice-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.notice-desc code {
  font-family: 'Courier New', monospace;
  font-size: .82em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1rem .4rem;
  color: var(--accent);
}

/* ─── Video section ───────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.video-card iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

.video-placeholder {
  width: 100%;
  height: 280px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}

.video-placeholder-icon { font-size: 2.5rem; opacity: .4; }

.video-meta {
  padding: 1rem 1.25rem;
}

.video-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .25rem;
}

.video-caption {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ─── Team ────────────────────────────────────────────────── */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  min-width: 200px;
  flex: 1;
  max-width: 240px;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1rem;
}

.team-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  margin-bottom: .25rem;
}

.team-role {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--nav-text);
  opacity: .65;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: .8rem;
  opacity: .45;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-spotlight { grid-template-columns: repeat(2, 1fr); }
  .ai-card-main { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

@media (max-width: 640px) {
  .nav { padding: 0 1rem; }
  .nav-link { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .ai-spotlight { grid-template-columns: 1fr; }
  .ai-card-main { grid-column: span 1; grid-template-columns: 1fr; }
  .ai-card-main .ai-card-icon { grid-row: auto; font-size: 2rem; }
  .ai-card-main .ai-card-desc { grid-column: 1; }
  .videos-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .team-card { max-width: 100%; }
  .screenshots-grid { grid-template-columns: 1fr; }
}

/* ─── Screenshots Section ─────────────────────────────────── */
.screenshots-section { padding-top: 2rem; }

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.screenshot-card { display: flex; flex-direction: column; gap: .75rem; }

.screenshot-label {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}

.screenshot-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: box-shadow .25s ease, transform .25s ease;
}

.screenshot-img-wrap:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-3px);
}

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
}
