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

:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --accent: #4a90d9;
  --accent-hover: #3a7bc8;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-sub {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-light);
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Showcase (screenshots) ===== */
.showcase {
  padding: 40px 0 80px;
}

.showcase-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.showcase-item {
  margin: 0;
}

.showcase-item figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.showcase-window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg);
}

.showcase-window img {
  width: 100%;
  display: block;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.window-title {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Features (Fork-style cards) ===== */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.feature-card {
  padding: 0;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== Overview (Fork-style columns) ===== */
.overview {
  padding: 60px 0 80px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.overview-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.overview-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.overview-col ul {
  list-style: none;
}

.overview-col li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 4px 0;
  line-height: 1.5;
}

/* ===== About ===== */
.about {
  padding: 80px 0;
  text-align: center;
}

.about-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.about-lead {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.team-member {
  text-align: center;
}

.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.member-avatar svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.team-member h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.team-member span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Work ===== */
.work {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.work-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.work-item:first-child {
  border-top: 1px solid var(--border);
}

.work-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.work-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.work-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-content h4 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: var(--transition);
}

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

.footer-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 72px 24px 24px;
    gap: 20px;
    border-left: 1px solid var(--border);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .showcase-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
