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

:root {
  --color-bg: #fafafa;
  --color-bg-alt: #f0f0f0;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-accent: #2a2a2a;
  --color-border: #e0e0e0;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 250, 250, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 10rem 2rem 4rem;
  overflow: hidden;
  background: var(--color-bg);
}

#mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: grab;
}

#mesh-canvas:active {
  cursor: grabbing;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  pointer-events: none;
}

.hero-content .btn {
  pointer-events: auto;
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-logo-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Button */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

/* Sections */

.section {
  padding: 5rem 2rem;
}

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

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

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section > .container > p {
  color: var(--color-muted);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Product browser frame */

.browser-frame {
  margin-top: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.3rem 1rem;
  margin-right: 52px;
}

.browser-body {
  width: 100%;
  height: 100vh;
  position: relative;
}

.browser-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.product-cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */

.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 600px) {
  .nav-links {
    gap: 1.25rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
