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

:root {
  --sky-900:       #153E4E;
  --sky-700:       #2F6F8B;
  --sky-500:       #65A9C7;
  --field-800:     #2F5F4B;
  --field-700:     #3E6F42;
  --field-200:     #CFE3C3;
  --target:        #E5B756;
  --text:          #17201B;
  --muted:         #59665E;
  --bg:            #F8FAF4;
  --surface:       #FFFFFF;
  --surface-alt:   #EEF6EA;
  --surface-sky:   #E8F3F7;
  --border:        #D6DED1;
  --shadow:        0 14px 36px rgba(33, 57, 48, 0.14);
  --radius:        8px;
  --max-w:    1100px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

a { color: var(--field-800); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

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

/* ── Header ─────────────────────────────────────────────────────────────── */
header { position: sticky; top: 0; background: rgba(21, 62, 78, 0.94); color: #fff; z-index: 100; box-shadow: 0 1px 0 rgba(255,255,255,0.1); backdrop-filter: blur(14px); }
header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
header nav a { color: rgba(255,255,255,0.85); font-size: 0.95rem; transition: color 0.15s; }
header nav a:hover { color: #fff; text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(145deg, var(--sky-900) 0%, var(--sky-700) 46%, var(--field-700) 100%); color: #fff; padding: 84px 0 88px; }
.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; min-width: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 20px; }
.subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 520px; margin-bottom: 32px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary { background: #F4FCEB; color: var(--field-800); font-weight: 700; padding: 14px 28px; border-radius: 999px; font-size: 1rem; box-shadow: 0 5px 18px rgba(0,0,0,0.18); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn-primary:hover { background: #FFFFFF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.24); text-decoration: none; }
.btn-secondary { border: 1px solid rgba(255,255,255,0.52); color: #fff; padding: 13px 27px; border-radius: 999px; font-size: 1rem; transition: border-color 0.15s, background 0.15s; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; text-decoration: none; }

.hero-badge { flex-shrink: 0; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.22); border-radius: 24px; padding: 28px 36px; backdrop-filter: blur(10px); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.22); }
.hero-app-icon { display: block; width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 28px; box-shadow: 0 14px 32px rgba(0,0,0,0.28); }
.badge-inner { display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-bottom: 14px; justify-content: center; }
.signal-bar { width: 18px; background: rgba(255,255,255,0.5); border-radius: 4px 4px 0 0; transition: height 1s ease; }
.signal-bar.target { background: var(--target); }
.badge-label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; color: #FAD98C; }

/* ── Features ───────────────────────────────────────────────────────────── */
.features { padding: 80px 0; background: var(--surface-sky); }
h2 { font-size: 2rem; text-align: center; margin-bottom: 48px; color: var(--sky-900); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 2px rgba(33, 57, 48, 0.08); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--sky-900); }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ── Platforms ──────────────────────────────────────────────────────────── */
.platforms { padding: 80px 0; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.platform-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(33, 57, 48, 0.08); }
.ios-card { border-color: var(--sky-500); background: var(--surface-sky); }
.platform-icon { font-size: 2rem; margin-bottom: 12px; }
.platform-card h3 { margin-bottom: 8px; color: var(--sky-900); }
.platform-card p { font-size: 0.9rem; color: var(--muted); }
.platform-card strong { color: var(--text); }

/* ── Connection ─────────────────────────────────────────────────────────── */
.connection { padding: 80px 0; background: linear-gradient(180deg, var(--surface-alt), #F8FAF4); }
.connection-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 40px; align-items: center; }
.connection h2 { text-align: left; margin-bottom: 20px; }
.connection-copy p { color: var(--muted); margin-bottom: 16px; max-width: 680px; }
.connection-copy p:last-child { margin-bottom: 0; }
.connection-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.connector-device { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 70px; border-radius: 18px; padding: 16px 18px; color: #fff; font-weight: 700; }
.detector-port { background: linear-gradient(135deg, var(--field-800), var(--field-700)); }
.phone-port { background: linear-gradient(135deg, var(--sky-900), var(--sky-700)); }
.connector-jack { width: 28px; height: 28px; border: 6px solid rgba(255,255,255,0.86); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(0,0,0,0.12); }
.connector-cable { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 24px 16px; }
.connector-line { height: 4px; background: #66736A; border-radius: 999px; }
.inline-resistor { width: 54px; height: 22px; border-radius: 999px; background: linear-gradient(90deg, #66736A 0 14%, #E9C46A 14% 28%, #F7EFE0 28% 72%, #65A9C7 72% 86%, #66736A 86%); box-shadow: 0 5px 14px rgba(33, 57, 48, 0.16); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { background: var(--sky-900); color: rgba(255,255,255,0.75); padding: 40px 0; text-align: center; }
footer a { color: rgba(255,255,255,0.9); }
footer p + p { margin-top: 8px; }
.footer-note { font-size: 0.8rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .container { padding: 0 20px; }
  header .container { gap: 16px; }
  .logo { min-width: 0; }
  .logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 72px 0; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { width: 100%; }
  h1 { font-size: clamp(1.8rem, 7.2vw, 2.2rem); }
  .cta-group { justify-content: center; width: 100%; }
  .cta-group a { display: block; width: 100%; max-width: 260px; }
  .hero-badge { width: 100%; max-width: 360px; padding: 28px 24px; }
  .feature-grid, .platform-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card, .platform-card { min-width: 0; }
  .connection-inner { grid-template-columns: 1fr; }
  .connection h2 { text-align: center; }
  .connection-panel { min-width: 0; padding: 20px; }
  .connector-device { min-width: 0; }
}
