@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --bg: #0D1117; --bg-card: #161B22; --border: #30363D;
  --orange: #F97316; --blue: #3B82F6;
  --text: #F1F5F9; --muted: #94A3B8;
  --green: #22C55E; --yellow: #EAB308; --red: #EF4444;
  --font: "Poppins", sans-serif; --r: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.45); --t: .3s ease;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
a { color: var(--orange); text-decoration: none; transition: opacity var(--t); }
a:hover { opacity: .8; }
p { color: var(--muted); }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { font-size: 1.35rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.navbar-logo .accent { color: var(--orange); }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { color: var(--muted); font-weight: 600; font-size: .9rem; }
.navbar-links a:hover,.navbar-links a.active { color: var(--text); opacity: 1; }
.navbar-cta { background: var(--orange) !important; color: #000 !important; padding: 8px 20px; border-radius: 8px; font-weight: 700 !important; font-size: .85rem; }
.navbar-cta:hover { background: #ea6c0a !important; opacity: 1 !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; transition: var(--t); }

/* ── HERO ── */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,.1) 0%, transparent 70%);
  text-align: center; padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.3);
  padding: 6px 16px; border-radius: 100px; font-size: .8rem; font-weight: 600;
  color: var(--orange); margin-bottom: 24px; animation: shimmer 3s infinite;
}
@keyframes shimmer { 0%,100% { box-shadow: 0 0 0 rgba(249,115,22,0); } 50% { box-shadow: 0 0 20px rgba(249,115,22,.35); } }
.hero h1 { font-size: clamp(2rem,5vw,3.5rem); margin-bottom: 20px; }
.hero h1 .gradient { background: linear-gradient(135deg,var(--orange),var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; max-width: 580px; margin: 0 auto 40px; }

/* ── ANALYZE FORM ── */
.analyze-form {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px 32px; max-width: 660px; margin: 0 auto; box-shadow: var(--shadow);
}
.analyze-form h3 { font-size: 1rem; margin-bottom: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.input-group { display: flex; gap: 12px; flex-wrap: wrap; }
.input-group input {
  flex: 1; min-width: 200px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 14px 18px; border-radius: 8px; font-family: var(--font); font-size: .95rem;
  outline: none; transition: border-color var(--t);
}
.input-group input:focus { border-color: var(--orange); }
.input-group input::placeholder { color: var(--muted); }

/* ── BUTTONS ── */
.btn { padding: 13px 26px; border-radius: 8px; font-family: var(--font); font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--t); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: #ea6c0a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249,115,22,.3); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ── LOADING ── */
.analyze-loading { display: none; text-align: center; padding: 36px; }
.spinner { width: 44px; height: 44px; border: 3px solid var(--border); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-steps { list-style: none; text-align: left; display: inline-block; margin-top: 10px; }
.loading-steps li { padding: 5px 0; color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 10px; }
.loading-steps li.active { color: var(--orange); }
.loading-steps li.done { color: var(--green); }

/* ── ERROR ── */
.analyze-error { display: none; margin-top: 16px; padding: 18px 22px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); border-radius: var(--r); }
.analyze-error p { color: var(--red) !important; font-weight: 500; }

/* ── RESULTS ── */
#results { display: none; margin-top: 48px; animation: fadeInUp .5s ease; }

.score-header {
  display: flex; align-items: center; gap: 40px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 32px; margin-bottom: 28px; flex-wrap: wrap; justify-content: center;
}

/* ── GAUGE ── */
.gauge-wrap { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.gauge-svg { width: 160px; height: 160px; transform: rotate(-90deg); }
.gauge-bg   { fill: none; stroke: var(--border); stroke-width: 12; }
.gauge-fill { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 408; stroke-dashoffset: 408; transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1), stroke .4s; }
.gauge-fill.red    { stroke: var(--red); }
.gauge-fill.orange { stroke: var(--yellow); }
.gauge-fill.green  { stroke: var(--green); }
.gauge-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; pointer-events: none; }
.gauge-score { font-size: 2.1rem; font-weight: 700; line-height: 1; display: block; }
.gauge-score.red    { color: var(--red); }
.gauge-score.orange { color: var(--yellow); }
.gauge-score.green  { color: var(--green); }
.gauge-label { font-size: .7rem; color: var(--muted); margin-top: 2px; display: block; }

.score-info { flex: 1; min-width: 220px; }
.score-info h2 { font-size: 1.4rem; margin-bottom: 8px; }
.score-level { display: inline-block; padding: 3px 14px; border-radius: 100px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 16px; }
.score-level.red    { background: rgba(239,68,68,.15); color: var(--red); }
.score-level.orange { background: rgba(234,179,8,.15);  color: var(--yellow); }
.score-level.green  { background: rgba(34,197,94,.15);  color: var(--green); }
.sub-scores { display: flex; gap: 16px; flex-wrap: wrap; }
.sub-score  { background: var(--bg); padding: 12px 20px; border-radius: 8px; border: 1px solid var(--border); text-align: center; min-width: 100px; }
.sub-value  { font-size: 1.3rem; font-weight: 700; display: block; }
.sub-lbl    { font-size: .72rem; color: var(--muted); }

/* ── CTA RESULT ── */
.cta-result { padding: 22px 28px; border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-result.red    { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3); }
.cta-result.orange { background: rgba(234,179,8,.1);  border: 1px solid rgba(234,179,8,.3); }
.cta-result.green  { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3); }
.cta-result p { color: var(--text) !important; font-size: .97rem; font-weight: 600; }
.btn-cta-red    { background: var(--red);    color: #fff; animation: pulse-red 2s infinite; }
.btn-cta-orange { background: var(--yellow); color: #000; }
.btn-cta-green  { background: var(--green);  color: #000; }
@keyframes pulse-red    { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }

/* ── ANALYSIS GRID ── */
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.analysis-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.analysis-card h3 { font-size: .97rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.section-badge { margin-left: auto; font-size: .76rem; font-weight: 700; padding: 2px 10px; border-radius: 100px; }
.section-badge.red    { background: rgba(239,68,68,.15); color: var(--red); }
.section-badge.orange { background: rgba(234,179,8,.15);  color: var(--yellow); }
.section-badge.green  { background: rgba(34,197,94,.15);  color: var(--green); }

.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(48,54,61,.5); }
.check-item:last-child { border-bottom: none; }
.check-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.check-body { flex: 1; }
.check-label  { font-size: .84rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.check-detail { font-size: .76rem; color: var(--muted); }
.check-value  { font-size: .76rem; color: var(--orange); font-family: monospace; }
.check-reco   { margin-top: 6px; padding: 7px 11px; background: rgba(249,115,22,.06); border-left: 2px solid var(--orange); border-radius: 4px; font-size: .76rem; color: var(--muted); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: 12px; }
.section-header p { max-width: 560px; margin: 0 auto; }
.tag { display: inline-block; background: rgba(249,115,22,.1); color: var(--orange); border: 1px solid rgba(249,115,22,.3); padding: 4px 14px; border-radius: 100px; font-size: .76rem; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ── STATS ── */
.stats-bar { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; flex-wrap: wrap; margin: 48px 0; }
.stat-item { flex: 1; min-width: 160px; padding: 28px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--orange); display: block; }
.stat-label { font-size: .8rem; color: var(--muted); }

/* ── SERVICE CARDS ── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; transition: all var(--t); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 0%,rgba(249,115,22,.08),transparent 60%); opacity: 0; transition: opacity var(--t); }
.service-card:hover { border-color: rgba(249,115,22,.5); box-shadow: 0 0 40px rgba(249,115,22,.12); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-card.featured { border-color: var(--orange); }
.featured-badge { position: absolute; top: 16px; right: 16px; background: var(--orange); color: #000; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; }
.service-icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card > p { margin-bottom: 20px; font-size: .88rem; }
.service-features { list-style: none; margin-bottom: 24px; flex: 1; }
.service-features li { padding: 5px 0; font-size: .86rem; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.service-features li::before { content: "→"; color: var(--orange); font-weight: 700; flex-shrink: 0; }
.service-price { font-size: 1.55rem; font-weight: 700; margin-bottom: 20px; }
.service-price span { font-size: .82rem; font-weight: 400; color: var(--muted); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-item h4 { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.contact-item p { color: var(--text) !important; font-size: .92rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: 7px; }
.form-control { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 12px 16px; border-radius: 8px; font-family: var(--font); font-size: .92rem; outline: none; transition: border-color var(--t); }
.form-control:focus { border-color: var(--orange); }
.form-control::placeholder { color: var(--muted); }
select.form-control option { background: var(--bg-card); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-feedback { padding: 12px 16px; border-radius: 8px; margin-top: 12px; font-size: .88rem; display: none; }
.form-feedback.success { background: rgba(34,197,94,.1);  color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.form-feedback.error   { background: rgba(239,68,68,.1);  color: var(--red);   border: 1px solid rgba(239,68,68,.3); }

/* ── FOOTER ── */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin: 12px 0 20px; font-size: .88rem; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: all var(--t); }
.social-link:hover { border-color: var(--orange); background: rgba(249,115,22,.1); opacity: 1; }
.footer-col h4 { font-size: .88rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: var(--muted); font-size: .85rem; }
.footer-col ul li a:hover { color: var(--orange); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .8rem; }

/* ── WHATSAPP ── */
.wa-btn { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform var(--t); animation: wa-pulse 3s infinite; }
.wa-btn:hover { transform: scale(1.1); opacity: 1; }
.wa-btn svg { width: 28px; height: 28px; fill: #fff; }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,.7); } }

/* ── PAGE HEADER ── */
.page-header { padding: 80px 0 56px; text-align: center; background: radial-gradient(ellipse 60% 50% at 50% 0%,rgba(249,115,22,.07),transparent); }
.page-header h1 { font-size: clamp(1.8rem,4vw,3rem); margin-bottom: 12px; }

/* ── MENTIONS ── */
.mentions-body { max-width: 760px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 40px; }
.mentions-body h2 { font-size: 1.15rem; color: var(--orange); margin: 28px 0 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.mentions-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.mentions-body p { margin-bottom: 10px; font-size: .93rem; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.anim { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 20px; gap: 14px; }
  .navbar-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { min-height: 70vh; padding: 60px 0; }
  .analysis-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-result { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .score-header { gap: 20px; }
  .wa-btn { bottom: 16px; right: 16px; }
}

/* ── LOGO NAVBAR ── */
.navbar-logo img.logo-badge { width: 42px; height: 42px; vertical-align: middle; border-radius: 50%; box-shadow: 0 0 12px rgba(249,115,22,.35); transition: transform .3s ease; }
.navbar-logo:hover img.logo-badge { transform: rotate(15deg) scale(1.08); }
.logo-page { display: block; margin: 0 auto 40px; width: 220px; height: 220px; filter: drop-shadow(0 8px 32px rgba(249,115,22,.3)); }

/* ── BRAND OVERRIDES (iLLico Presto palette) ── */
.navbar { border-bottom-color: rgba(227,30,36,.25); }
.navbar-cta { background: var(--red) !important; }
.navbar-cta:hover { background: #c01820 !important; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c01820; box-shadow: 0 8px 24px rgba(227,30,36,.35); }
.hero { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(227,30,36,.1) 0%, rgba(79,157,200,.06) 60%, transparent 100%); }
.hero-badge { background: rgba(227,30,36,.1); border-color: rgba(227,30,36,.35); color: var(--red); }
@keyframes shimmer { 0%,100% { box-shadow: 0 0 0 rgba(227,30,36,0); } 50% { box-shadow: 0 0 22px rgba(227,30,36,.4); } }
.service-card:hover { border-color: rgba(227,30,36,.5); box-shadow: 0 0 40px rgba(227,30,36,.12); }
.service-card::before { background: radial-gradient(circle at 70% 0%,rgba(227,30,36,.08),transparent 60%); }
.service-card.featured { border-color: var(--red); }
.featured-badge { background: var(--red); }
.section-badge.red { background: rgba(227,30,36,.15); color: var(--red); }
.tag { background: rgba(227,30,36,.1); color: var(--red); border-color: rgba(227,30,36,.3); }
.stat-value { color: var(--red); }
.service-price { color: var(--red); }
.check-reco { background: rgba(227,30,36,.06); border-left-color: var(--red); }
.check-value { color: var(--blue); }
.input-group input:focus { border-color: var(--red); }
.form-control:focus { border-color: var(--red); }
.analyze-form { border-color: rgba(227,30,36,.2); }
.gauge-fill.red    { stroke: var(--danger); }
.gauge-fill.orange { stroke: var(--yellow); }
.gauge-fill.green  { stroke: var(--green); }
.social-link:hover { border-color: var(--red); background: rgba(227,30,36,.1); }
.footer-col ul li a:hover { color: var(--red); }
a { color: var(--red); }
a:hover { opacity: .8; }
.gauge-score.red    { color: var(--danger); }
.score-level.red    { background: rgba(227,30,36,.15); color: var(--red); }
.cta-result.red     { background: rgba(227,30,36,.1); border-color: rgba(227,30,36,.3); }
.btn-cta-red { background: var(--red); }
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 0 0 rgba(227,30,36,.5); } 50% { box-shadow: 0 0 0 10px rgba(227,30,36,0); } }
/* Blue accent kept for SEO/secondary elements */
.sub-score .sub-value { color: var(--blue); }
.score-info h2 span { color: var(--red); }
/* Gradient headline */
.gradient { background: linear-gradient(135deg,var(--red),var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
/* Navbar logo */
.navbar-logo img.logo-badge { width: 40px; height: 22px; object-fit: contain; filter: none; box-shadow: none; border-radius: 0; }
.navbar-logo img.logo-badge:hover { transform: scale(1.05); }
.hero .logo-page { width: 360px; height: auto; }
@media (max-width:768px) { .hero .logo-page { width:260px; } }

/* ── Wind Creek display font ── */
@font-face {
  font-family: "WindCreek";
  src: url("/fonts/WIND CREEK Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
.site-name {
  font-family: "WindCreek", var(--font);
  color: var(--red);
  font-size: 1.5rem;
}
