/* ===== Marco App Website — Global Styles ===== */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --surface-border: #2a2a2a;
  --primary: #4ADE80;
  --primary-dim: rgba(74, 222, 128, 0.15);
  --primary-glow: rgba(74, 222, 128, 0.25);
  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

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

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }

.btn-primary {
  background: var(--primary);
  color: #0a0a0a;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--surface-border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--surface-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-cta {
  padding: 10px 22px !important;
  font-size: 14px !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 520px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-dim);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--primary); }

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Phone mockup placeholder */
.hero-phone {
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border: 2px solid var(--surface-border);
  border-radius: 36px;
  padding: 12px;
  position: relative;
  box-shadow: 0 0 40px var(--primary-glow), 0 20px 60px rgba(0,0,0,0.5);
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}
.phone-placeholder {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Showcase ---------- */
.showcase {
  background: linear-gradient(180deg, #0f0f0f 0%, var(--bg) 100%);
}
.showcase-phones {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.showcase-item {
  text-align: center;
  max-width: 300px;
}
.showcase-item .phone-frame {
  margin-bottom: 24px;
}
.showcase-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.showcase-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .showcase-phones { gap: 40px; }
  .showcase-item .phone-frame {
    width: 240px;
    height: 480px;
  }
}

/* ---------- Features ---------- */
.features { background: var(--bg); }
.features-header {
  text-align: center;
  margin-bottom: 60px;
}
.features-header h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.features-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- How It Works ---------- */
.how-it-works {
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f0f 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--primary-glow);
}
.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--surface-border) 100%);
  z-index: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.cta-banner p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
  position: relative;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}
.contact h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-email:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  opacity: 1;
}
.contact-email svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.footer-logo span { color: var(--primary); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 20px;
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}
.legal-page h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-page .last-updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}
.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-page li {
  margin-bottom: 8px;
}
.legal-page a {
  color: var(--primary);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero-buttons { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .features-header h2 { font-size: 32px; }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step:not(:last-child)::after { display: none; }

  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 28px; }

  .contact h2 { font-size: 28px; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }

  .legal-page h1 { font-size: 32px; }

  .phone-frame {
    width: 240px;
    height: 480px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .btn { padding: 12px 24px; font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
