/* CLIDE — marketing site styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #141414;
  color: rgba(255,255,255,0.9);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Gradient accent — black > dark brown > gold */
.grad {
  background: linear-gradient(135deg, #000000 0%, #3b1a08 45%, #c8860a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: inherit; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sticky nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #3d3c3c;
}

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

.nav-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: #e8a020; }

.nav-github {
  display: inline-flex;
  align-items: center;
}

.nav-github svg {
  width: 18px;
  height: 18px;
}

/* Mobile menu toggle (CSS-only, no JS) */
.nav-toggle { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 640px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #3d3c3c;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links a {
    padding: 0.9rem 1.5rem;
    border-top: 1px solid #3d3c3c;
    font-size: 0.95rem;
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 320px;
  }

  /* Burger → X animation when open */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid #3d3c3c;
  background:
    radial-gradient(60% 60% at 70% 10%, rgba(200,134,10,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #000000 0%, #6b3a17 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(255,255,255,0.95);
  background: linear-gradient(45deg, #d5d0bc 0%, #e8a020 60%, #c8860a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);}

.hero-description {
  margin-top: 1.25rem;
  max-width: 560px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* Hero app mockup (pure CSS) */
.mockup {
  background: #0a0a0a;
  border: 1px solid #3d3c3c;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #3d3c3c;
}

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }

.mockup-body { padding: 0.9rem 1rem 1.1rem; }

.mockup-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.55rem;
}

.mockup-check { color: #28c840; }

.mockup-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.3rem;
}

.mockup-field {
  background: rgba(217,217,217,0.05);
  border-radius: 4px;
  height: 26px;
  margin-bottom: 0.7rem;
}

.mockup-send {
  display: inline-block;
  background: #222121;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 0.35rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e8a020;
}

/* Features */
.features {
  padding: 4rem 0;
  border-bottom: 1px solid #3d3c3c;
}

.section-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: #0a0a0a;
  border: 1px solid #3d3c3c;
  border-radius: 5px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: #7a4a10;
  transform: translateY(-2px);
}

.feature-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 0.85rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8a020;
  background: linear-gradient(135deg, rgba(200,134,10,0.18), rgba(59,26,8,0.25));
}

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

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.4rem;
}

.feature-body {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

/* How it works */
.how {
  padding: 4rem 0;
  border-bottom: 1px solid #3d3c3c;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #141414;
  background: linear-gradient(135deg, #e8a020, #c8860a);
  margin-bottom: 0.8rem;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.35rem;
}

.step-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* Automation platform */
.automation {
  padding: 4.5rem 0;
  border-bottom: 1px solid #3d3c3c;
  background:
    radial-gradient(70% 80% at 20% 0%, rgba(200,134,10,0.1) 0%, transparent 60%),
    #0a0a0a;
}

.automation-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 620px;
  background: linear-gradient(45deg, #ffffff 0%, #e8a020 70%, #c8860a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.automation-body {
  margin-top: 1.1rem;
  max-width: 600px;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

.pillars {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.pillar {
  border-left: 2px solid #7a4a10;
  padding-left: 1rem;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8a020;
  margin-bottom: 0.35rem;
}

.pillar-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Download */
.download {
  padding: 4rem 0;
  border-bottom: 1px solid #3d3c3c;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.download-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #222121;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
}

.download-cta:hover {
  border-color: #7a4a10;
  color: rgba(255,255,255,0.7);
}

.download-cta svg { width: 16px; height: 16px; color: #e8a020; }

.download-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
}

.footer-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

.footer-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(255,255,255,0.4);
}

.footer-text a:hover {
  color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mockup { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}