/* =========================================================
   PhoenixWebDesign — styles.css
   Brand: dark background, orange flame accent (#FF6B1A)
   ========================================================= */

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

:root {
  --bg:        #0A0A0F;
  --bg-card:   #111118;
  --bg-raised: #17171F;
  --border:    rgba(255,255,255,0.08);
  --text:      #E8E8F0;
  --text-muted:#8888AA;
  --orange:    #FF6B1A;
  --orange-lt: #FF9A56;
  --orange-dk: #CC4A00;
  --green:     #22C55E;
  --yellow:    #EAB308;
  --red:       #EF4444;
  --blue:      #3B82F6;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ─── Utilities ──────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--orange), var(--orange-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,107,26,0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.btn--sm   { padding: 8px 18px; font-size: 0.85rem; }
.btn--lg   { padding: 16px 32px; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover {
  background: var(--orange-lt);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,107,26,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, border-bottom 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}
.nav__logo strong { color: var(--orange); }
.nav__flame { width: 24px; height: 30px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,26,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,26,0.1);
  border: 1px solid rgba(255,107,26,0.25);
  color: var(--orange-lt);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.dot--pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero__headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 820px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat {
  text-align: center;
}
.stat__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 160px;
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}
@media (max-width: 600px) { .stat__divider { display: none; } }

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.how {
  padding: 100px 0;
  text-align: center;
}
.how .section-title { margin-bottom: 60px; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.step:hover { border-color: rgba(255,107,26,0.4); transform: translateY(-4px); }
.step:hover::before { opacity: 1; }

.step__icon {
  width: 48px; height: 48px;
  color: var(--orange);
  margin-bottom: 16px;
}
.step__num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step__arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 768px) { .step__arrow { display: none; } }

/* ─── AUDIT PREVIEW ──────────────────────────────────────── */
.audit-preview {
  padding: 100px 0;
  text-align: center;
}
.audit-preview .section-title { margin-bottom: 48px; }

.audit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}

.audit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}
.audit-card__meta { flex: 1; }
.audit-card__domain {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.audit-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audit-card__score-wrap {
  position: relative;
  width: 120px; height: 120px;
  flex-shrink: 0;
}
.score-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.score-ring__track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 10;
}
.score-ring__fill {
  fill: none;
  stroke: var(--red);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease;
}
.score-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring__num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.score-ring__grade {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}
.grade--f { background: rgba(239,68,68,0.2); color: var(--red); }
.grade--d { background: rgba(234,179,8,0.2);  color: var(--yellow); }
.grade--c { background: rgba(234,179,8,0.15); color: var(--yellow); }
.grade--b { background: rgba(34,197,94,0.15); color: var(--green); }
.grade--a { background: rgba(34,197,94,0.2);  color: var(--green); }

.audit-card__issues { padding: 8px 0; }

.issue {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.issue:hover { background: rgba(255,255,255,0.02); }
.issue:last-child { border-bottom: none; }

.issue__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.issue--critical .issue__icon { background: rgba(239,68,68,0.15); color: var(--red); }
.issue--warning  .issue__icon { background: rgba(234,179,8,0.15);  color: var(--yellow); }
.issue--info     .issue__icon { background: rgba(59,130,246,0.15); color: var(--blue); }

.issue > div { flex: 1; }
.issue strong { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 4px; }
.issue p      { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.issue__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  align-self: flex-start;
  margin-top: 2px;
}
.issue__badge--critical { background: rgba(239,68,68,0.15);  color: var(--red); }
.issue__badge--warning  { background: rgba(234,179,8,0.15);  color: var(--yellow); }
.issue__badge--info     { background: rgba(59,130,246,0.15); color: var(--blue); }

.audit-card__footer {
  padding: 24px 32px;
  background: rgba(255,107,26,0.06);
  border-top: 1px solid rgba(255,107,26,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.audit-card__footer p {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ─── PRICING ─────────────────────────────────────────────── */
.pricing {
  padding: 100px 0;
  text-align: center;
}
.pricing .section-title { margin-bottom: 48px; }

.pricing-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  text-align: left;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--orange);
  box-shadow: 0 0 40px rgba(255,107,26,0.15);
  transform: scale(1.03);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pricing-card__price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 24px;
}
.pricing-card__currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 8px;
}
.pricing-card__amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-card__features li {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.pricing-card__features li::first-letter { color: var(--green); }

/* ─── CONTACT ─────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

.contact__copy p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.contact__perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.perk {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.perk span { font-size: 1.1rem; }

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input::placeholder { color: rgba(136,136,170,0.5); }
.form-group input:focus { border-color: var(--orange); }

.form__privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
}
.form__success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}
.form__error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--red);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }
.footer__admin { opacity: 0.3; }
.footer__copy {
  font-size: 0.8rem;
  color: rgba(136,136,170,0.5);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
