/* ==========================================================================
   504sites Web Audit App - Stylesheet
   Theme: High-Performance Sleek Dark Mode with Cyan/Indigo Glassmorphism
   ========================================================================== */

:root {
  /* Official 504sites Brand Tokens */
  --brand-purple: #ba02ff;
  --brand-green: #00ff19;
  --brand-slate: #2D3748;
  --brand-cyan: #00cccc;

  --bg-primary: #090D15;
  --bg-secondary: #101623;
  --bg-card: rgba(26, 36, 52, 0.75);
  --bg-card-hover: rgba(36, 49, 70, 0.88);
  --border-subtle: #2D3748;
  --border-focus: var(--brand-green);

  --accent-cyan: var(--brand-cyan);
  --accent-blue: #4FACFE;
  --accent-purple: var(--brand-purple);
  --accent-emerald: var(--brand-green);
  --accent-amber: #F59E0B;
  --accent-rose: #FF2A5F;

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #8A99AD;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-glow-green: 0 0 30px rgba(0, 255, 25, 0.35);
  --shadow-glow-cyan: 0 0 30px rgba(0, 204, 204, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 255, 25, 0.35));
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.05) 70%, transparent 100%);
}

.glow-orb-2 {
  top: 500px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Glassmorphic Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-logo .dot {
  color: var(--accent-cyan);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-cyan) 100%);
  color: #000;
  font-weight: 800;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
}

.btn-glow {
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Audit Form Card */
.audit-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px;
  text-align: left;
  border-color: rgba(0, 242, 254, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-url {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group .required {
  color: var(--accent-cyan);
}

.form-group .optional {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.8;
}

.input-wrapper input {
  width: 100%;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
  background: rgba(7, 9, 14, 0.95);
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.form-actions .btn {
  width: 100%;
  max-width: 380px;
  padding: 16px 28px;
  font-size: 1.1rem;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Trust Strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Scanning / Loading Screen */
.scanning-section {
  padding: 80px 0;
}

.scanning-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
}

.radar-spinner {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: radar-wave 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes radar-wave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.radar-center {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.scanning-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.scanning-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  border-radius: 10px;
  transition: width 0.4s ease;
}

.scan-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.scan-step {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.scan-step.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  font-weight: 600;
}

.scan-step.done {
  color: var(--text-primary);
}

/* Results Dashboard */
.results-section {
  padding: 40px 0 80px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  margin-bottom: 32px;
}

.report-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}

.report-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.report-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.report-meta a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* Scorecard Grid */
.scorecard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 32px;
}

.score-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.score-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Primary Dial Card */
.primary-score-card {
  grid-row: span 2;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  border-color: rgba(0, 242, 254, 0.3);
}

.card-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.dial-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 20px;
}

.dial-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.dial-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.dial-progress {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7; /* 2 * PI * 52 */
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.5s ease, stroke 0.5s ease;
}

.dial-value-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dial-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.dial-scale {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.score-verdict {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Metric Cards */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.metric-icon {
  font-size: 1.4rem;
}

.grade-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

.grade-A { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }
.grade-B { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.grade-C { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.grade-D { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid var(--accent-rose); }
.grade-F { background: rgba(244, 63, 94, 0.25); color: #FF4560; border: 1px solid #FF4560; }

.metric-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.metric-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.metric-stat-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
}

/* Action Items Card */
.action-items-card {
  padding: 32px;
  margin-bottom: 32px;
  border-left: 4px solid var(--accent-amber);
}

.action-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.alert-icon {
  font-size: 2rem;
}

.action-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.action-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.action-num {
  width: 28px;
  height: 28px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.action-text strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.action-text p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Solution Banner */
.solution-banner {
  padding: 40px;
  background: linear-gradient(135deg, rgba(13, 17, 26, 0.95), rgba(20, 27, 45, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.3);
  position: relative;
  overflow: hidden;
}

.solution-badge {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: inline-block;
}

.solution-heading {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.solution-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 20px;
}

.solution-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.solution-perks li {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 500;
}

.solution-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.guarantee-text {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 420px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .scorecard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .primary-score-card {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-url {
    grid-column: auto;
  }
  .scorecard-grid {
    grid-template-columns: 1fr;
  }
  .primary-score-card {
    grid-column: auto;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .solution-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}
