/* ===========================
   FEVER GUARD — Landing Page
   =========================== */

:root {
  --primary:      #0FB8B1;
  --primary-deep: #0A8F89;
  --primary-soft: #DCF4F2;
  --primary-tint: #EFFAF9;
  --text:         #14272A;
  --muted:        #6B8588;
  --faint:        #A8BCBE;
  --line:         #E4ECEC;
  --bg:           #F4F7F7;
  --card:         #FFFFFF;
  --sick:         #E2664F;
  --warn:         #E8A451;
  --well:         #4FB07E;
  --radius:       14px;
  --shadow:       0 2px 12px rgba(14,63,69,0.08);
  --shadow-lg:    0 8px 40px rgba(14,63,69,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========= NAV ========= */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,247,247,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; }
.logo-text strong { color: var(--primary-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--primary-soft); }
.nav-cta { margin-left: 8px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.burger:hover { background: var(--primary-soft); }
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(10,143,137,0.35); }
.btn-outline {
  background: transparent;
  color: var(--primary-deep);
  border: 2px solid var(--primary-deep);
}
.btn-outline:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn-lg { font-size: 16px; padding: 14px 28px; border-radius: 12px; }
.btn-full { width: 100%; }

/* ========= BADGE ========= */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ========= HERO ========= */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text { max-width: 520px; }
.hero-text h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Phone mockup */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(15,184,177,0.25) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.phone-frame {
  position: relative;
  z-index: 1;
  width: 260px;
  background: var(--text);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(14,63,69,0.3), 0 0 0 2px rgba(14,63,69,0.12);
}
.phone-screen {
  background: var(--card);
  border-radius: 28px;
  padding: 24px 20px 20px;
  overflow: hidden;
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.phone-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  flex-shrink: 0;
}
.phone-name { font-size: 14px; font-weight: 600; color: var(--text); }
.phone-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 2px;
}
.status-sick { background: #FCE6DF; color: var(--sick); }
.phone-temp {
  font-size: 52px;
  font-weight: 800;
  color: var(--sick);
  line-height: 1;
  margin-bottom: 8px;
}
.phone-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.phone-countdown { font-size: 20px; font-weight: 700; color: var(--primary-deep); margin-bottom: 20px; }
.phone-timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: flex; align-items: center; gap: 10px; }
.tl-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dot-red { background: var(--sick); }
.dot-blue { background: #5B9BD5; }
.dot-orange { background: var(--warn); }
.tl-info { display: flex; justify-content: space-between; flex: 1; font-size: 12px; color: var(--text); }
.tl-time { color: var(--muted); }

/* ========= SECTION HEADER ========= */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}
.section-header p { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* ========= FEATURES ========= */
.features {
  padding: 80px 0;
  background: var(--card);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ========= HOW IT WORKS ========= */
.how { padding: 80px 0; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(10,143,137,0.35);
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.step p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: var(--line);
  margin-top: 28px;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faint);
  border-top: 2px solid var(--faint);
  transform: rotate(45deg);
}

/* ========= CONTACT ========= */
.contact {
  padding: 80px 0;
  background: var(--card);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}
.contact-info p { font-size: 16px; color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-icon { font-size: 20px; }
.contact-list a { color: var(--primary-deep); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

/* FORM */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B8588' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,184,177,0.15);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--sick);
  box-shadow: 0 0 0 3px rgba(226,102,79,0.12);
}
.field-error {
  font-size: 12px;
  color: var(--sick);
  font-weight: 500;
  min-height: 16px;
}

#submit-btn { margin-top: 4px; }
#submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.form-success {
  background: #DDF1E4;
  color: #1a6640;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
}
.form-error-global {
  background: #FCE6DF;
  color: #b93a2a;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
}

/* ========= FOOTER ========= */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--primary-deep); }

/* ========= REVEAL ANIMATION ========= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay { transition-delay: .15s; }

/* ========= LANG SWITCHER ========= */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.lang-btn svg { flex-shrink: 0; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 6px;
  min-width: 160px;
  z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
  transition: background .15s;
}
.lang-dropdown button:hover { background: var(--primary-soft); color: var(--primary-deep); }
.lang-dropdown button.active { background: var(--primary-soft); color: var(--primary-deep); font-weight: 600; }

/* hCaptcha spacing */
.h-captcha { margin-top: 4px; }

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { order: -1; }
  .phone-frame { width: 220px; }
  .phone-temp { font-size: 42px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 400px; }
  .step-connector { width: 2px; height: 32px; flex: 0; }
  .step-connector::after {
    right: -4px;
    top: auto;
    bottom: -5px;
    transform: rotate(135deg);
  }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .features, .how, .contact { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 24px; }

  .burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    border-top: 1px solid var(--line);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 10px; font-size: 16px; }
  .nav-cta { margin-left: 0; text-align: center; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .lang-dropdown { right: auto; left: 0; }
}
