/* =========================================
   ECHOASSIST AI — STYLESHEET
   Palette: #fff / #E3000F (red) / #111 (black)
   Fonts: Bebas Neue (display) + DM Sans (body)
   ========================================= */

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

:root {
  --red: #E3000F;
  --red-dark: #b8000c;
  --black: #111111;
  --dark: #1a1a1a;
  --gray-dark: #2b2b2b;
  --gray: #555;
  --gray-light: #888;
  --border: #e0e0e0;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: var(--font-body); }

/* ---- UTILITIES ---- */

.red { color: var(--red); }

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

.container--narrow {
  max-width: 680px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(227, 0, 15, 0.35);
}

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 0, 15, 0.45);
}

.btn--full { width: 100%; }

.btn--lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ---- HERO ---- */

.hero {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-light);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.logo__icon {
  font-size: 22px;
  background: var(--red);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-block;
  background: rgba(227, 0, 15, 0.15);
  border: 1px solid rgba(227, 0, 15, 0.4);
  color: #ff6b74;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  animation: fadeUp 0.6s ease both;
}

.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: #ccc;
  max-width: 580px;
  margin-bottom: 32px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.stat-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #ddd;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SECTIONS ---- */

.section {
  padding: 80px 0;
}

.section--light {
  background: var(--bg-light);
}

.section--dark {
  background: var(--dark);
}

.section--cta {
  background: var(--black);
  text-align: center;
  padding: 90px 24px;
}

.section__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__label--light {
  color: #ff6b74;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: var(--black);
}

.section__title--light {
  color: var(--white);
}

.section__desc {
  color: var(--gray);
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 48px;
}

/* ---- CALCULATOR LAYOUT ---- */

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc-form {
  padding: 36px;
}

.field-group {
  margin-bottom: 26px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.field-group select,
.field-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-group select:focus,
.field-group input[type="number"]:focus {
  border-color: var(--red);
}

.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Sliders */

.slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--red) 0%, var(--red) var(--pct, 20%), var(--border) var(--pct, 20%), var(--border) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

.slider-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

/* ---- RESULTS PANEL ---- */

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.result-card--highlight {
  background: var(--black);
  border-color: var(--red);
  border-width: 2px;
}

.result-card--highlight .result-card__label,
.result-card--highlight .result-card__note {
  color: #aaa;
}

.result-card--highlight .result-card__value {
  color: var(--red);
}

.result-card__icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.result-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.result-card__value {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
  transition: all 0.4s ease;
}

.result-card__note {
  font-size: 12px;
  color: var(--gray-light);
}

/* Number animation */
.result-card__value.updated {
  animation: numFlash 0.4s ease;
}

@keyframes numFlash {
  0% { transform: scale(1.12); color: var(--red); }
  100% { transform: scale(1); }
}

/* ---- NEXT STEP CARD ---- */

.next-step {
  padding: 28px 28px 32px;
  border-left: 4px solid var(--red);
  animation: fadeUp 0.4s ease both;
}

.next-step__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}

.next-step__icon {
  font-size: 22px;
}

.next-step p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.step-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  transition: background 0.2s;
}

.step-card:hover {
  background: rgba(255,255,255,0.08);
}

.step-num {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: #999;
  line-height: 1.65;
}

/* ---- BENEFITS ---- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.benefit-card {
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.benefit-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.benefit-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* ---- CTA SECTION ---- */

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
}

.cta__sub {
  font-size: 17px;
  color: #aaa;
  margin-bottom: 36px;
  font-weight: 300;
}

.cta__fine {
  font-size: 13px;
  color: #666;
  margin-top: 14px;
}

/* ---- FOOTER ---- */

.footer {
  background: #0a0a0a;
  padding: 28px 0;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: #888;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.footer__info {
  font-size: 13px;
  color: #555;
}

.footer__info a {
  color: #777;
  transition: color 0.2s;
}

.footer__info a:hover {
  color: var(--red);
}

/* ---- FEATURES SECTION ---- */

.ea-features {
  background: #111111;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.ea-features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #E3000F 30%, #E3000F 70%, transparent);
}

.ea-features__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ea-features__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.ea-features__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  color: var(--white);
  text-align: center;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.ea-features__sub {
  text-align: center;
  color: #999;
  font-size: 16px;
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

.ea-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ea-feat-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.ea-feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(227,0,15,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ea-feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(227, 0, 15, 0.18);
}

.ea-feat-card:hover::after {
  opacity: 1;
}

.ea-feat-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(227, 0, 15, 0.12);
  border: 1px solid rgba(227, 0, 15, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
  transition: background 0.25s, border-color 0.25s;
}

.ea-feat-card:hover .ea-feat-card__icon {
  background: rgba(227, 0, 15, 0.22);
  border-color: rgba(227, 0, 15, 0.5);
}

.ea-feat-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ea-feat-card__desc {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ea-feat-card__tag {
  display: inline-block;
  background: rgba(227, 0, 15, 0.1);
  border: 1px solid rgba(227, 0, 15, 0.2);
  color: #ff6b74;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 30px;
}

.ea-features__stat-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid #2a2a2a;
  flex-wrap: wrap;
}

.ea-stat {
  text-align: center;
}

.ea-stat__num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--red);
  line-height: 1;
  display: block;
}

.ea-stat__label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  font-weight: 400;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ea-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 70px; }
  .hero__stats { flex-direction: column; gap: 8px; }
  .stat-pill { font-size: 12px; }
  .section { padding: 60px 0; }
  .calc-form { padding: 24px 20px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .result-card__value { font-size: 32px; }
  .ea-features { padding: 60px 16px; }
  .ea-features__grid { grid-template-columns: 1fr; }
  .ea-features__stat-bar { gap: 32px; }
}

@media (max-width: 400px) {
  .results-grid { grid-template-columns: 1fr; }
}
