/* ==========================================================================
   Echoo — design system & homepage styles
   No framework: custom properties + flexbox/grid.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---- Design tokens ---- */
:root {
  --navy-950: #001330;
  --navy-900: #00204a;
  --navy-800: #0a2f5f;
  --navy-700: #16406f;
  --ink: #16213a;
  --muted: #5b6478;
  --muted-light: #8891a3;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --surface-tint: #eef4fb;
  --border: #e2e7f0;
  --accent: #00b8d9;
  --accent-dark: #00829a;
  --accent-ink: #004b5c;
  --success: #1fa971;
  --danger: #d64550;

  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(16, 30, 54, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 30, 54, 0.10);
  --shadow-lg: 0 20px 48px rgba(16, 30, 54, 0.16);

  --container-w: 1180px;
  --header-h: 76px;
}

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

section { padding-block: 96px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy-900); }
h2 { font-size: clamp(1.8rem, 1.5rem + 1.3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

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

.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #05cbee; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--accent-dark); color: var(--accent-dark); }

.btn-block { width: 100%; }

/* ---- Header / nav ---- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--navy-950);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  transition: top 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo span { color: var(--accent); }

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy-950);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.mobile-nav.is-open { max-height: 420px; }
.mobile-nav a {
  display: block;
  padding: 16px 24px;
  color: #fff;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}
.mobile-nav .nav-cta-mobile { color: var(--accent); }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0, 184, 217, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
  padding-block: 100px 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);
  margin-bottom: 20px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-highlights {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}
.pill svg { flex: none; color: var(--accent); }

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 573 / 574;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---- Logo / compliance strip ---- */
.compliance-strip {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
}
.compliance-strip .container {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.compliance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
}
.compliance-item svg { color: var(--accent-dark); flex: none; }

/* ---- Problem section ---- */
.problem { background: var(--surface-alt); text-align: center; }

.problem-lede {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 1.08rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  text-align: left;
}

.problem-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.problem-point svg { flex: none; margin-top: 2px; color: var(--accent-dark); }

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 { margin-bottom: 2px; }
.feature-card p { font-size: 0.95rem; margin-bottom: 4px; }

.feature-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature-card:hover .feature-link { color: var(--navy-900); }

/* ---- About / split layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split > * { min-width: 0; }
.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-body p { margin-bottom: 16px; }
.split.reverse .split-media { order: 2; }

.about { background: var(--surface); }

/* ---- Why Echoo ---- */
.why { background: var(--surface-alt); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.why-card img { width: 56px; height: 56px; margin-bottom: 16px; }
.why-card h3 { margin-bottom: 10px; font-size: 1.1rem; color: var(--navy-900); }

/* ---- Security section ---- */
.security {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-800));
  color: #fff;
}
.security .section-head h2 { color: #fff; }
.security .section-head p { color: rgba(255, 255, 255, 0.75); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.security-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 26px;
}
.security-card svg { color: var(--accent); margin-bottom: 14px; }
.security-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.05rem; }
.security-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; margin: 0; }

/* ---- FAQ ---- */
.faq { background: var(--surface); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  background: var(--surface-alt);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-dark);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ---- Contact ---- */
.contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.contact-grid > * { min-width: 0; }

.contact-info {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info h3 { color: #fff; margin-bottom: 12px; }
.contact-info p { color: rgba(255, 255, 255, 0.78); margin-bottom: 28px; }

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.contact-detail svg { flex: none; color: var(--accent); }

.contact-meet {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy-900);
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--surface-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  background: #fff;
}
.form-note { font-size: 0.82rem; color: var(--muted-light); margin-top: 12px; }

.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fdf0f1;
  border: 1px solid rgba(214, 69, 80, 0.3);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.form-alert svg { flex-shrink: 0; margin-top: 2px; }
.form-alert span { white-space: pre-line; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand .logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.92rem; max-width: 320px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Sticky CTA ---- */
.sticky-cta {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--accent);
  color: var(--navy-950);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  z-index: 900;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sticky-cta:hover { background: #05cbee; transform: translateY(-2px); }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  section { padding-block: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .form-card { padding: 28px 22px; }
}

/* ---- Feature detail pages ---- */
.feature-hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0, 184, 217, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff;
  padding-block: 118px 64px;
  text-align: center;
}
.feature-hero .container { max-width: 760px; }
.feature-hero .eyebrow { color: var(--accent); }
.feature-hero h1 { color: #fff; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin-bottom: 16px; }
.feature-hero p { color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; margin-bottom: 28px; }

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.breadcrumb-back:hover { color: #fff; }

.feature-rows { padding-block: 88px; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-row > * { min-width: 0; }
.feature-row + .feature-row { margin-top: 88px; }
.feature-row.reverse .feature-media { order: 2; }

.feature-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 20px 20px;
  min-height: 280px;
}
.feature-media::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8746b;
  box-shadow: 17px 0 0 #ecc25c, 34px 0 0 #6cbf7a;
}
.feature-media img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.feature-copy .eyebrow { margin-bottom: 10px; }
.feature-copy h2 { margin-bottom: 14px; }
.feature-copy p { font-size: 1.02rem; }

.cta-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding-block: 72px;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row .feature-media { order: -1 !important; }
  .feature-row + .feature-row { margin-top: 56px; }
}

/* ---- noscript ---- */
.noscript-warning {
  background: #ffcc00;
  color: #1a1a1a;
  text-align: center;
  padding: 10px;
  font-weight: 600;
}
