/* ============================================================
   ezDraft Marketing Site — style.css
   ============================================================ */

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

:root {
  --bg:        #0a0f1e;
  --bg-card:   #111827;
  --bg-card2:  #1a2236;
  --accent:    #0e7490;
  --highlight: #22d3ee;
  --text:      #f1f5f9;
  --text-muted:#94a3b8;
  --border:    #1e293b;
  --radius:    10px;
  --nav-h:     64px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: var(--highlight); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Utility ----------------------------------------------- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  border: 2px solid transparent;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--highlight);
  color: #0a0f1e;
  border-color: var(--highlight);
}
.btn-primary:hover { background: #06b6d4; border-color: #06b6d4; }

.btn-outline {
  background: transparent;
  color: var(--highlight);
  border-color: var(--highlight);
}
.btn-outline:hover { background: rgba(34,211,238,.1); }

.btn-full { width: 100%; justify-content: center; }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10,15,30,.4);
  border-top-color: #0a0f1e;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn-text { display: none; }
.btn.loading .btn-spinner { display: inline-block; }

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

/* --- Nav --------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,15,30,0.97);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(8px);
}

#navbar.scrolled {
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none !important;
}
.nav-logo:hover { color: var(--highlight); }

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

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

.nav-links .nav-cta {
  background: var(--highlight);
  color: #0a0f1e !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: #06b6d4; }

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

/* --- Hero -------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0a0f1e 0%, #0d1b2a 50%, #0a0f1e 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(14,116,144,.08) 39px, rgba(14,116,144,.08) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(14,116,144,.08) 39px, rgba(14,116,144,.08) 40px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-content h1 .accent {
  color: var(--highlight);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Features ---------------------------------------------- */
#features {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* --- Screenshots ------------------------------------------- */
#screenshots {
  border-bottom: 1px solid var(--border);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.screenshot-placeholder {
  background: var(--bg-card2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.screenshot-item {
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.screenshot-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.screenshot-item .screenshot-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.screenshot-item .screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}
.screenshot-item:hover .screenshot-thumb img {
  transform: scale(1.03);
}
.screenshot-item figcaption {
  background: var(--bg-card2);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Lightbox ---------------------------------------------- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#lightbox.open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: lb-fade-in 0.2s ease;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: lb-pop-in 0.25s cubic-bezier(0.34,1.56,0.64,1);
  cursor: zoom-out;
}
.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(92vh - 48px);
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.lightbox-caption {
  text-align: center;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lb-pop-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* --- Get Started ------------------------------------------- */
#contact {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.get-started-inner {
  text-align: center;
}

.get-started-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  text-align: left;
}

.get-started-step {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.get-started-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.get-started-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.code-block {
  margin-top: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--highlight);
  word-break: break-all;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  color: var(--highlight);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.get-started-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer ------------------------------------------------ */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-right a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none !important;
}
.footer-right a:hover { color: var(--highlight); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .get-started-grid { grid-template-columns: 1fr; }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,15,30,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-links .nav-cta {
    margin-top: 12px;
    text-align: center;
    padding: 12px 20px;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
