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

:root {
  --bg-1: #f8fbff;
  --bg-2: #eef4ff;
  --card: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.18);
  --primary: #0f766e;
  --primary-2: #0ea5a0;
  --accent: #ea580c;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(248, 250, 252, 0.9);
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 16px 42px rgba(15, 23, 42, 0.13);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', 'Noto Sans SC', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0%, transparent 34%),
    radial-gradient(circle at 85% 8%, #dbeafe 0%, transparent 36%),
    linear-gradient(165deg, var(--bg-1), var(--bg-2));
  position: relative;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 0.4px, transparent 0.4px);
  background-size: 5px 5px;
  z-index: -3;
}

.mesh {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: -2;
}

.mesh-a {
  width: 380px;
  height: 380px;
  left: -120px;
  top: -70px;
  background: rgba(20, 184, 166, 0.36);
}

.mesh-b {
  width: 330px;
  height: 330px;
  right: -80px;
  top: 120px;
  background: rgba(251, 146, 60, 0.28);
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(248, 251, 255, 0.8);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: env(safe-area-inset-top, 0);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
}

.nav-links {
  display: inline-flex;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 10px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.nav-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
}

.lang-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  padding: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 580ms cubic-bezier(0.2, 0.72, 0.2, 1),
    transform 580ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  gap: 34px;
  align-items: center;
  overflow: hidden;
}

.hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.hero-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: rgba(240, 253, 250, 0.85);
  border-radius: 999px;
  padding: 6px 10px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.03;
  margin-top: 10px;
}

.subtitle {
  margin-top: 14px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.65;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 17px;
  font-size: 0.93rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.38);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
}

.hero-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #334155;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}

.mockup-shell {
  width: 100%;
  max-width: 580px;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 52px rgba(15, 23, 42, 0.34);
}

.mockup-head {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-head span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.mockup-head p {
  margin: 0 0 0 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mockup-shell img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.chip-a {
  top: 16px;
  right: 0;
}

.chip-b {
  bottom: 16px;
  left: 0;
}

.chip-c {
  bottom: 62px;
  right: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 500px;
}

.section-head a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.section-head a:hover {
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  background: rgba(248, 250, 252, 0.9);
  border: 0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(59, 130, 246, 0.14));
  margin-bottom: 10px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 1rem;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.tutorials {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.85), rgba(244, 250, 255, 0.82));
}

.tutorial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border-color: #ea580c;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.tutorial-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.tutorial-panel.active {
  display: block;
}

.tutorial-panel h3 {
  font-size: 1.08rem;
}

.step-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.step-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.step-list span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.step-list p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.showcase-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.showcase-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.showcase-tab {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  border-radius: 14px;
  padding: 11px 12px 12px;
  text-align: left;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.showcase-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.showcase-tab.active {
  border-color: rgba(14, 165, 160, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(14, 165, 160, 0.16);
}

.showcase-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #0f766e;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(59, 130, 246, 0.16));
}

.showcase-stage {
  display: grid;
  gap: 10px;
  align-content: start;
}

.showcase-shell {
  max-width: 100%;
  position: relative;
}

.showcase-image {
  transition: opacity 220ms ease, transform 220ms ease;
  cursor: zoom-in;
}

.showcase-stage.is-switching .showcase-image {
  opacity: 0.2;
  transform: translateY(4px);
}

.showcase-shell::after {
  content: '';
  position: absolute;
  inset: 38px 0 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(
      100deg,
      rgba(15, 23, 42, 0.12) 20%,
      rgba(148, 163, 184, 0.35) 40%,
      rgba(15, 23, 42, 0.12) 60%
    );
  background-size: 240% 100%;
  opacity: 0;
  pointer-events: none;
}

@keyframes showcase-skeleton {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

.showcase-stage.is-loading .showcase-shell::after {
  opacity: 1;
  animation: showcase-skeleton 900ms linear infinite;
}

.showcase-caption {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(4px);
  padding: 16px;
  display: grid;
  place-items: center;
  gap: 10px;
}

.zoom-modal[hidden] {
  display: none !important;
}

.zoom-close {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.zoom-image {
  width: min(1150px, 100%);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45);
}

.zoom-caption {
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.92rem;
}

.cta {
  text-align: center;
  background: linear-gradient(155deg, #0f172a, #0f3c3d);
  border-color: rgba(148, 163, 184, 0.26);
}

.cta p {
  margin: 10px auto 0;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.9);
}

.cta h2 {
  color: #f8fafc;
}

.cta .hero-cta {
  justify-content: center;
}

.cta .btn-primary {
  box-shadow: 0 14px 30px rgba(14, 165, 160, 0.45);
}

.cta .btn-ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(226, 232, 240, 0.3);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2px 20px 24px;
}

.footer-grid {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.9);
  padding: 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 16px;
}

.footer-grid section {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-grid .brand {
  color: #e2e8f0;
}

.footer-grid h3 {
  font-size: 0.94rem;
  color: #cbd5e1;
}

.footer-grid p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-grid a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.coffee-link {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}

.coffee-link img {
  display: block;
  height: 26px;
  width: auto;
}

.coffee-link:hover {
  text-decoration: none !important;
}

.footer-copy {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.84rem;
}

@media (max-width: 960px) {
  .hero,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }

  .chip-a {
    top: 8px;
    right: 6px;
  }

  .chip-b {
    left: 8px;
    bottom: 10px;
  }

  .chip-c {
    right: 8px;
    bottom: 54px;
  }

  .nav-links {
    display: none;
  }

  .showcase-wrap {
    grid-template-columns: 1fr;
  }

  .showcase-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: stretch;
  }
}

@media (max-width: 700px) {
  main,
  .nav,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav {
    gap: 8px;
  }

  .brand {
    letter-spacing: 0.05em;
    gap: 8px;
  }

  .brand-logo {
    width: 27px;
    height: 27px;
  }

  .lang-switch {
    gap: 6px;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .card {
    border-radius: 18px;
    padding: 18px;
  }

  .hero {
    gap: 16px;
  }

  h1 {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
    line-height: 1.08;
  }

  .subtitle {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 5px 8px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-badges span {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
  }

  .hero-chip {
    position: static;
    display: inline-flex;
    margin-top: 8px;
    white-space: normal;
  }

  .hero-visual {
    display: block;
    min-height: auto;
  }

  .mockup-shell {
    max-width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-head a {
    font-size: 0.9rem;
  }

  .tutorial-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tab-btn {
    white-space: normal;
    width: 100%;
    text-align: center;
    min-height: 40px;
  }

  .showcase-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    order: 2;
  }

  .showcase-tab {
    min-width: 0;
    padding: 10px 11px;
  }

  .showcase-stage {
    order: 1;
  }

  .showcase-caption {
    font-size: 0.95rem;
  }

  .hero-chip {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .footer-grid {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  main,
  .nav,
  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card {
    padding: 15px;
    border-radius: 16px;
  }

  .hero-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .hero-logo {
    width: 34px;
    height: 34px;
  }

  .mockup-head {
    height: 34px;
    padding: 0 10px;
  }

  .mockup-head p {
    font-size: 0.7rem;
    margin-left: 6px;
  }

  .tab-btn {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .tutorial-tabs,
  .showcase-tabs {
    grid-template-columns: 1fr;
  }

  .step-list li {
    grid-template-columns: 26px 1fr;
    gap: 8px;
  }

  .step-list span {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .zoom-close {
    font-size: 0.82rem;
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .feature-card,
  .btn,
  .tab-btn,
  .showcase-tab,
  .showcase-image,
  .zoom-image {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
