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

:root {
  --primary: #404040;
  --accent: #ffcc00;
  --text: #404040;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.nav .mobile-only-btn,
.mobile-only-divider {
  display: none;
}

/* Global Section Styling */
section {
  padding: 100px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* DRY Section Headers */
.section-header {
  text-align: center;
}
.section-header h2 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 60px;
  text-wrap: balance;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}
.btn:active {
  filter: brightness(0.9);
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn:hover {
  background: var(--primary);
  color: white;
}
.btn-secondary {
  background: transparent;
  color: var(--primary); /* Assuming this is your brand color */
  border: 1px solid var(--primary);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.logo img {
  padding-top: 5px;
  height: 45px;
}
.nav {
  display: flex;
  gap: 30px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover {
  color: var(--accent);
}
.header-buttons {
  display: flex;
  gap: 15px;
}

/* Hero */
.hero {
  text-align: center;
  background: white;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto 60px;
}
h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: clamp(16px, 3vw, 22px);
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  max-width: 65ch;
}
.label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--light-gray);
  color: var(--primary);
  margin-bottom: 15px;
}

/* Hero Mockup - abstract phone preview, no real artist content */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
  animation: phone-float 5s ease-in-out infinite;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phone-notch {
  width: 80px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: white;
  border-radius: 28px;
  padding: 20px 18px 24px;
  margin-top: -18px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mockup-cover {
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffe066 100%);
  margin-bottom: 16px;
}

.mockup-name-line {
  height: 14px;
  width: 60%;
  border-radius: 4px;
  background: var(--primary);
  margin: 0 auto 8px;
}

.mockup-handle-line {
  height: 8px;
  width: 35%;
  border-radius: 4px;
  background: var(--border);
  margin: 0 auto 16px;
}

.mockup-bio-line {
  height: 8px;
  border-radius: 4px;
  background: var(--light-gray);
  margin-bottom: 6px;
}

.mockup-bio-line.short {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.mockup-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.mockup-icons span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 1px solid var(--border);
}

.mockup-block {
  height: 36px;
  border-radius: 8px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

/* Feature Cards */
.features {
  background: var(--light-gray);
}
.feature-card {
  display: flex;
  gap: 60px;
  align-items: center;
  background: white;
  padding: 60px;
  border-radius: 24px;
  margin-bottom: 30px;
}
.feature-card.reverse {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1;
}
.feature-text h3 {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.25;
}

.feature-image {
  flex: 1;
  width: 100%;
}

/* Modular Builder mockup - abstract drag-and-drop module list */
.mockup-module-list {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 16px;
}

.mockup-module-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.mockup-module-row:last-child {
  margin-bottom: 0;
}

.mockup-module-row.active {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.25);
}

.mockup-module-row .drag-handle {
  color: #bbb;
  font-size: 14px;
  letter-spacing: -2px;
}

/* Pro Design mockup - real theme preset swatches */
.mockup-theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mockup-swatch {
  height: 110px;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  border: 3px solid transparent;
}

.mockup-swatch span {
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mockup-swatch.selected {
  border-color: var(--accent);
}

.mockup-swatch.selected::after {
  content: "\2713";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Version Control mockup - real version list pattern */
.mockup-version-list {
  background: var(--light-gray);
  border-radius: 16px;
  padding: 16px;
}

.mockup-version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.mockup-version-row:last-child {
  margin-bottom: 0;
}

.mockup-version-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.mockup-version-row.is-default .mockup-version-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px #dcfce7;
}

.mockup-version-name {
  flex: 1;
}

.mockup-version-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Guide */
.guide {
  background: white;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.step {
  text-align: center;
}
.step-number {
  font-size: 40px;
  font-weight: 800;
  opacity: 0.15;
}

/* Pricing */
.pricing {
  background: var(--light-gray);
}
.pricing-card-central {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.price {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: 20px;
}
.amount {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -2px;
  padding-right: 5px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  max-width: 280px;
  margin: 40px auto;
}
.pricing-features li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: #444;
}
.pricing-features li::before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  flex-shrink: 0;
}
.billing-note {
  margin-top: 10px;
  font-size: 0.9em;
}

/* Footer Layout */
.footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-main {
  flex: 1.5; /* Gives the logo/form more room */
  max-width: 500px;
}

.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 20px;
}

.footer-tagline {
  opacity: 0.7;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Subscription Form */
.subscribe {
  display: flex;
  gap: 10px;
}

.subscribe input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
}

.subscribe input:focus {
  border-color: var(--accent);
}

.subscribe-message {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
}

.subscribe-message.success {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.subscribe-message.error {
  margin-top: 10px;
  color: #f87171;
}

/* Links Layout */
.footer-links-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 80px; /* Space between "Links" and "Legal" columns */
}

.link-group h4 {
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-group a {
  color: white;
  text-decoration: none;
  opacity: 0.6;
  font-size: 14px;
  transition: opacity 0.2s;
}

.link-group a:hover {
  opacity: 1;
}

/* Legal & Documentation Pages */
.legal-container {
  padding: 80px 20px;
  max-width: 850px;
  margin: 0 auto;
}

.legal-header {
  text-align: left;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.legal-body {
  color: #555;
  line-height: 1.8;
}

.legal-body h2 {
  margin: 40px 0 15px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}

.legal-body p {
  margin-bottom: 20px;
}

.legal-body ul {
  margin-left: 20px;
  margin-bottom: 25px;
  list-style-type: disc;
}

.legal-body li {
  margin-bottom: 10px;
}

.legal-contact-box {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 12px;
  margin-top: 50px;
  border: 1px solid var(--border);
}

.legal-contact-box a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Signup Form */
.signup-container {
  max-width: 600px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

.handle-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.handle-input .handle-prefix {
  padding: 12px 0 12px 14px;
  color: #888;
  font-size: 16px;
  white-space: nowrap;
}

.handle-input input {
  border: none;
  border-radius: 0;
}

.handle-input input:focus {
  outline: none;
}

.form-error {
  color: #c0392b;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-success {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.form-success h2 {
  margin-bottom: 10px;
}

.copyright {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    padding: 10px 0;
  }

  .header-buttons {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav .mobile-only-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }

  .mobile-only-divider {
    display: block;
    border: 0;
    border-top: 1px solid var(--border);
    margin: 10px 0;
  }

  .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease-in-out,
      transform 0.3s ease-in-out,
      visibility 0.3s;
    pointer-events: none;
  }

  /* 2. The Active State (Triggered by JS) */
  .nav.nav-active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
  }

  /* 3. Animate the Hamburger into an 'X' */
  .mobile-nav-toggle.is-active .hamburger {
    background: transparent; /* Hide the middle bar */
  }

  .mobile-nav-toggle.is-active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .mobile-nav-toggle.is-active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
  }

  /* The Hamburger "Bars" */
  .hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.2s ease-in-out;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.2s ease-in-out;
  }

  .hamburger::before {
    top: -8px;
  }
  .hamburger::after {
    bottom: -8px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .feature-card,
  .feature-card.reverse {
    flex-direction: column;
    padding: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 50px;
  }

  .footer-links-container {
    justify-content: flex-start;
    gap: 40px;
  }
}
