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

:root {
  --teal: #009688;
  --teal-dark: #00796b;
  --teal-light: #e0f2f1;
  --orange: #f7941d;
  --orange-dark: #e07f0a;
  --dark: #1a2332;
  --dark-mid: #2c3e50;
  --text: #333;
  --text-light: #555;
  --text-muted: #7f8c8d;
  --bg: #f5f5f5;
  --white: #fff;
  --border: #e0e0e0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  color: var(--dark);
}

.nav-logo .calc { color: var(--teal); }
.nav-logo .emy { color: var(--orange); }

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--teal-dark); }

.nav-cta.nav-cta-secondary {
  background: transparent;
  color: var(--teal) !important;
  border: 1px solid var(--teal);
  white-space: nowrap;
}

.nav-cta.nav-cta-secondary:hover {
  background: var(--teal);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,150,136,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,150,136,0.2);
  color: #4db6ac;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(0,150,136,0.3);
}

.hero h1 { font-size: 48px; font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.hero h1 span { color: var(--teal); }
.hero-tagline { font-size: 40px; font-weight: 700; line-height: 1.15; margin-bottom: 20px; color: #fff; }
.hero-tagline span { color: var(--teal); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero code preview */
.hero-screenshot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-screenshot img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* ── Stats bar ── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat-number { font-size: 36px; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ── How it works ── */
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.workflow-step { text-align: center; padding: 32px 24px; }
.workflow-number { width: 48px; height: 48px; background: var(--teal); color: var(--white); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.workflow-step h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.workflow-step p { font-size: 15px; color: var(--text-light); }

.spotlight + .workflow-grid {
  margin-top: 56px;
}

/* ── Feature cards ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: var(--teal-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-light); }

/* ── Use cases ── */
.usecases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.usecase-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; gap: 20px; align-items: flex-start; transition: box-shadow 0.2s; }
.usecase-card:hover { box-shadow: var(--shadow); }
.usecase-icon { width: 44px; height: 44px; background: var(--teal-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.usecase-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 6px; }
.usecase-card p { font-size: 14px; color: var(--text-light); }

/* ── Scheme spotlight ── */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.spotlight-visual { background: var(--dark); border-radius: var(--radius-lg); padding: 32px; color: var(--white); }
.spotlight-visual .tree-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.asset-tree { font-family: var(--mono); font-size: 14px; line-height: 2; }
.asset-tree .level-0 { color: var(--white); }
.asset-tree .level-1 { color: #7ec8e3; padding-left: 24px; }
.asset-tree .level-2 { color: #a8d8a8; padding-left: 48px; }
.asset-tree .level-3 { color: #f0c674; padding-left: 72px; }
.asset-tree .connector { color: rgba(255,255,255,0.25); }
.spotlight-content h2 { font-size: 32px; color: var(--dark); margin-bottom: 16px; }
.spotlight-content p { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }
.spotlight-list { list-style: none; margin-bottom: 28px; }
.spotlight-list li { padding: 8px 0; font-size: 15px; color: var(--text); display: flex; align-items: flex-start; gap: 10px; }
.spotlight-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* ── Pricing tiers ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
.pricing-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: box-shadow 0.2s; }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 700; color: var(--teal); margin: 16px 0; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; text-align: left; margin: 24px 0; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--text-light); border-bottom: 1px solid var(--bg); display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ── Integration ── */
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.integration-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; transition: box-shadow 0.2s; }
.integration-card:hover { box-shadow: var(--shadow); }
.integration-card .icon { font-size: 32px; margin-bottom: 12px; }
.integration-card h4 { font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.integration-card p { font-size: 13px; color: var(--text-muted); }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%); color: var(--white); padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-brand .emy { color: var(--orange); }
footer p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }
.footer-legal { margin-bottom: 12px; line-height: 1.8; }
.footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }
.footer-contact { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s; }
.footer-contact a:hover { color: var(--white); }

/* ── App Download ── */
.apps-section { padding: 80px 0; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.app-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: inherit; display: block; }
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.app-card-icon { width: 56px; height: 56px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.app-card-icon svg { width: 48px; height: 48px; }
.app-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.app-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.app-card .app-badge { display: inline-block; background: var(--dark); color: var(--white); padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.app-card:hover .app-badge { background: var(--teal); }

/* ── Company / Team ── */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 800px; margin: 0 auto; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: box-shadow 0.2s; }
.team-card:hover { box-shadow: var(--shadow-lg); }
.team-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.team-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.team-card .team-role { font-size: 14px; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.team-card .team-education { font-size: 13px; color: var(--text-muted); font-style: italic; margin-bottom: 16px; }
.team-linkedin { display: inline-flex; align-items: center; gap: 6px; color: #0077b5; text-decoration: none; font-size: 14px; font-weight: 500; transition: opacity 0.2s; }
.team-linkedin:hover { opacity: 0.8; }
.team-linkedin svg { width: 18px; height: 18px; }

/* ── Legal pages ── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.legal-content .legal-date { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.legal-content h3 { font-size: 20px; color: var(--dark); margin-top: 32px; margin-bottom: 12px; }
.legal-content h4 { font-size: 17px; color: var(--dark); margin-top: 24px; margin-bottom: 8px; }
.legal-content p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; line-height: 1.8; }
.legal-content ul { margin: 0 0 16px 24px; }
.legal-content li { font-size: 15px; color: var(--text-light); margin-bottom: 8px; line-height: 1.7; }
.legal-content blockquote { background: var(--bg); border-left: 4px solid var(--teal); padding: 16px 20px; margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.legal-content blockquote p { margin-bottom: 0; font-size: 14px; }
.legal-content ol { margin: 0 0 16px 24px; }
.legal-content ol li { margin-bottom: 8px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .hero-tagline { font-size: 32px; }
  .hero-grid { gap: 40px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-toggle { display: block; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-screenshot { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-tagline { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 28px; }
  .workflow-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .integration-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .apps-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ── Focus / a11y ── */
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
