/* ===== CodeCows — Design System ===== */
:root {
  /* Colors */
  --bg: #08090d;
  --surface: #0f1115;
  --surface-2: #14171d;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #e8e8ea;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.25);
  --success: #34d399;
  --error: #f87171;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing & Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --maxw: 1140px;

  /* Motion */
  --t: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a45; }

/* ===== Grid Background ===== */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -1;
  pointer-events: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #08090d;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: #67e8f9;
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-full {
  width: 100%;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--t);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 0.65rem 0;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  height: 32px;
  width: auto;
  border-radius: var(--r-sm);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

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

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

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

.nav-cta {
  background: var(--accent);
  color: #08090d !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-md);
  font-weight: 600;
}

.nav-cta:hover {
  background: #67e8f9;
}

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

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

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-dim);
  border-radius: var(--r-sm);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Hero Visual (Browser Mock) ===== */
.hero-visual {
  position: relative;
}

.browser-mock {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,211,238,0.05);
  animation: float-mock 6s ease-in-out infinite;
}

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

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-url {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.browser-content {
  padding: 1.5rem;
}

.mock-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mock-logo {
  width: 40px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}

.mock-nav-links {
  display: flex;
  gap: 0.5rem;
}

.mock-line {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.mock-line.w-80 { width: 80%; }
.mock-line.w-60 { width: 60%; }
.mock-line.w-50 { width: 50%; }
.mock-line.w-40 { width: 40%; }
.mock-line.w-30 { width: 30%; }
.mock-line.w-20 { width: 20%; }
.mock-line.large { height: 14px; margin-bottom: 0.75rem; }

.mock-hero {
  margin-bottom: 2rem;
}

.mock-btn {
  width: 100px;
  height: 28px;
  background: var(--accent);
  border-radius: var(--r-sm);
  opacity: 0.5;
  margin-top: 0.75rem;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mock-card {
  height: 60px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1rem;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -1rem;
  width: 2rem;
  height: 1px;
  background: var(--border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.6rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Included Grid ===== */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.included-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: var(--t);
}

.included-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.included-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: var(--r-md);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

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

.included-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.included-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== Pricing ===== */
.pricing-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #67e8f9);
}

.pricing-top {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-top h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
}

.dollar {
  font-size: 1.5rem;
  color: var(--accent);
}

.amount {
  font-size: 3.5rem;
  line-height: 1;
}

.period {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.billing-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.pricing-list {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--success);
}

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ===== Contact Form ===== */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.req {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--t);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-feedback.success {
  color: var(--success);
}

.form-feedback.error {
  color: var(--error);
}

/* Button loading */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(8,9,13,0.3);
  border-top-color: #08090d;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Footer (Reusable CodeCows Ad Block) ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.footer-brand img {
  height: 28px;
  border-radius: var(--r-sm);
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--t);
}

.footer-link:hover {
  color: #67e8f9;
}

.footer-copy {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.2rem;
  }

  .hero {
    padding-top: 6rem;
    text-align: left;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-head h2 {
    font-size: 1.75rem;
  }

  .section-sub {
    font-size: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step:not(:last-child)::after {
    display: none;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 1.75rem;
  }

  .amount {
    font-size: 2.75rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
