/* Enamio marketing site — light, professional, distinct from app dark theme */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fc;
  --color-bg-accent: #eef4ff;
  --color-text: #0f1a2b;
  --color-text-muted: #5a6675;
  --color-border: #e3e8ef;
  --color-primary: #0066ff;
  --color-primary-dark: #0052cc;
  --color-primary-light: #e6f0ff;
  --color-accent: #00c2a8;
  --color-success: #10b981;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 43, 0.04), 0 1px 3px rgba(15, 26, 43, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 26, 43, 0.05), 0 10px 15px rgba(15, 26, 43, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 26, 43, 0.08), 0 20px 40px rgba(15, 26, 43, 0.12);
  --max-width: 1140px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand-logo {
  width: 32px;
  height: 32px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links .btn { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover { background: var(--color-bg-alt); }
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--color-primary-light), transparent 70%),
    var(--color-bg);
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-bg-accent);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 14px;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

.hero-screenshot {
  margin-top: 60px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #0f1a2b;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6675;
  font-size: 14px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-header p {
  font-size: 18px;
  color: var(--color-text-muted);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.price-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}
.price-amount .currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.price-amount .value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-amount .period {
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.price-sub {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  min-height: 20px;
}
.price-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.price-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--color-text);
  font-size: 15px;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: var(--color-primary-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230066ff'%3E%3Cpath d='M12.7 5.3a1 1 0 0 0-1.4-1.4L6.5 8.6 4.7 6.8a1 1 0 0 0-1.4 1.4l2.5 2.5a1 1 0 0 0 1.4 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  margin: 0 24px;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 800;
}
.cta p {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 28px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}
.cta .btn-primary:hover { background: #fff; color: var(--color-primary-dark); }

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-text); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
  background: var(--color-bg-alt);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- Download ---------- */
.download-card {
  max-width: 560px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.download-card .platform-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.download-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.download-card .version {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.system-reqs {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--color-text-muted);
}
.system-reqs strong { color: var(--color-text); }

/* ---------- Success ---------- */
.success-card {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  padding: 48px 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links li:not(:last-child) { display: none; }
  .hero { padding: 60px 0 70px; }
  section { padding: 60px 0; }
}
