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

:root {
  /* Colors */
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #f71729;
  --accent-dark: #d61323;

  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px;

  /* Other */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Animation */
  --transition: all 0.3s ease;
}

/* Keywords */
.keyword-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 200px;
}

.keyword-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
  white-space: nowrap;
}

/* Crawler Table */
.crawl-table-container {
  overflow-x: auto;
  margin-top: 15px;
}

.crawl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.crawl-table th,
.crawl-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.crawl-table th {
  color: #94a3b8;
  font-weight: 500;
}

.crawl-table td {
  color: #e2e8f0;
}

.status-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.status-badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(247, 23, 41, 0.39);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 23, 41, 0.23);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-light);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-8 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.text-muted {
  color: var(--text-muted);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #171a22;
  /* Dark Theme */
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  letter-spacing: -0.02em;
  margin-left: 12px;
}

.nav-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.nav-link:hover {
  color: white;
}

.mobile-only-btn {
  display: none;
}

/* Header Buttons */
/* Header Buttons */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-selector {
  background: none;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.lang-selector:hover,
.lang-dropdown.active .lang-selector {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.lang-selector .arrow {
  font-size: 0.7em;
  transition: transform 0.3s;
}

.lang-dropdown.active .arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  min-width: 180px;
  z-index: 1100;
  display: none;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.lang-dropdown.active .lang-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
.lang-menu::-webkit-scrollbar {
  width: 6px;
}

.lang-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.lang-menu li {
  width: 100%;
}

.lang-menu li a {
  display: block;
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.lang-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  padding-left: 20px;
}

.btn-login {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-login:hover {
  color: var(--accent);
  /* Optional: change color on hover or keep white */
  background: rgba(255, 255, 255, 0.05);
}

.btn-start {
  background: #f71729;
  /* Red */
  color: #fff;
  /* White text for contrast */
  font-weight: 700;
  padding: 8px 16px;
  /* Reduced from 10px 20px */
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  /* Reduced from 0.95rem */
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-start:hover {
  background: #d61323;
  color: #fff;
}

/* Hero */
.hero {
  padding-top: 80px;
  padding-bottom: 40px;
  /* Premium Dark Gradient with Red Accent */
  background: linear-gradient(135deg, #0F172A 0%, #1e1b4b 60%, #5b0f19 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Add a subtle overlay pattern or glow */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  transform: rotate(30deg);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  background: linear-gradient(135deg, #ffffff 0%, #f71729 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Ensure text is white */
  text-shadow: 0 4px 20px rgba(247, 23, 41, 0.3);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 500px;
  line-height: 1.6;
}

.hero-free-text {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Audit Form */
.hero-audit-container {
  margin-top: 30px;
  position: relative;
  max-width: 500px;
}

.hero-audit-form {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.7;
}

#hero-url-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

#hero-url-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(247, 23, 41, 0.2);
}

.btn-audit-hero {
  white-space: nowrap;
  padding: 12px 24px;
  font-size: 1rem;
}

/* Audit Options */
.audit-options {
  display: none;
  /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 15px;
  background: rgba(30, 41, 59, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  z-index: 50;
  animation: slideDown 0.3s ease-out;
}

.audit-options.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateX(5px);
}

.option-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.option-info h3 {
  font-size: 0.95rem;
  color: white;
  margin-bottom: 2px;
}

.option-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* AI Trust Section */
.ai-trust-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-trust-text {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.highlight-text {
  color: white;
  font-weight: 600;
}

.ai-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: default;
}

.ai-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
}

.ai-badge.highlight {
  background: rgba(247, 23, 41, 0.1);
  border-color: rgba(247, 23, 41, 0.3);
  color: var(--accent);
  font-weight: 600;
}

.ai-icon {
  font-size: 1rem;
}

/* Hero Mobile Demo Styles */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1e293b;
  border: 12px solid #334155;
  border-radius: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: rotateY(0) rotateX(0);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 24px;
  background: #334155;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
}

/* Demo Animation Sequence */
.demo-sequence {
  position: relative;
  width: 100%;
  height: 100%;
}

.demo-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Step 1: Scan */
.step-scan {
  background: #f8fafc;
  animation: showStep1 12s infinite;
}

/* Persistent Header for Emulation */
.demo-header-persistent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 35px 16px 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demo-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-logo-mini {
  height: 20px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.demo-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.demo-url-bar {
  width: 100%;
  background: rgba(15, 23, 42, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Glass Reflection Effect */
.screen-gloss {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.1) 100%);
  pointer-events: none;
  z-index: 20;
}

.demo-body {
  padding: 85px 20px 20px;
  /* Adjusted for persistent header */
  width: 100%;
  position: relative;
}

.code-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
}

.w-80 {
  width: 80%;
}

.w-60 {
  width: 60%;
}

.w-90 {
  width: 90%;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(247, 23, 41, 0.1) 20%,
      var(--accent) 50%,
      rgba(247, 23, 41, 0.1) 80%,
      transparent 100%);
  box-shadow: 0 0 15px var(--accent), 0 0 5px var(--accent);
  animation: scanMove 2.5s infinite linear;
  z-index: 5;
}

/* Step 2: Issues */
.step-issues {
  background: rgba(255, 0, 0, 0.05);
  animation: showStep2 12s infinite;
}

.demo-alert {
  width: 80%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: scale(0.8);
  opacity: 0;
}

.demo-alert.error {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
  animation: popIn 0.5s forwards 4s;
}

.demo-alert.warning {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fcd34d;
  animation: popIn 0.5s forwards 4.2s;
}

.demo-cursor {
  position: absolute;
  bottom: 20%;
  right: 20%;
  font-size: 2rem;
  animation: moveCursor 2s forwards 5s;
}

/* Step 3: Fix */
.step-fix {
  background: white;
  justify-content: center;
  animation: showStep3 12s infinite;
}

.demo-btn-fix {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: scale(1);
  animation: btnClick 0.3s 7.5s;
}

/* Step 4: Success */
.step-success {
  background: #dcfce7;
  animation: showStep4 12s infinite;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounceIn 0.6s 8.5s backwards;
}

.success-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #15803d;
  animation: fadeIn 0.5s 9s backwards;
}

.health-score-mini {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-weight: 800;
  color: #15803d;
  font-size: 1.5rem;
  animation: scaleUp 0.5s 9.5s backwards;
}

/* Keyframes */
@keyframes showStep1 {

  0%,
  30% {
    opacity: 1;
  }

  33%,
  100% {
    opacity: 0;
  }
}

@keyframes showStep2 {

  0%,
  30% {
    opacity: 0;
  }

  33%,
  63% {
    opacity: 1;
  }

  66%,
  100% {
    opacity: 0;
  }
}

@keyframes showStep3 {

  0%,
  63% {
    opacity: 0;
  }

  66%,
  79% {
    opacity: 1;
  }

  82%,
  100% {
    opacity: 0;
  }
}

@keyframes showStep4 {

  0%,
  79% {
    opacity: 0;
  }

  82%,
  95% {
    opacity: 1;
  }

  98%,
  100% {
    opacity: 0;
  }
}

@keyframes scanMove {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes moveCursor {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translate(-40px, -150px);
    opacity: 1;
  }
}

/* Adjusted for visual */
@keyframes btnClick {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounceIn {
  from {
    transform: scale(0);
  }

  60% {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    translate: 0 10px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* Hero Mobile Demo Styles */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* iPhone 15 Pro Style Frame */
.phone-frame {
  width: 280px;
  height: 580px;
  background: #1c1c1e;
  /* Space Black */
  border: 8px solid #38383a;
  /* Titanium Edge */
  border-radius: 48px;
  /* Match iPhone corners */
  position: relative;
  box-shadow:
    0 0 0 1px #000,
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.3s ease;
  padding: 10px;
  max-width: 90%;
  height: auto;
  aspect-ratio: 9/18;
}

/* Inner black bezel */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 6px solid #000;
  border-radius: 42px;
  z-index: 5;
  pointer-events: none;
}

.phone-frame:hover {
  transform: rotateY(0) rotateX(0);
}

/* Side Buttons */
/* Mute Switch */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 90px;
  left: -10px;
  width: 3px;
  height: 24px;
  background: #28282a;
  border-radius: 4px 0 0 4px;
}

.phone-screen {
  overflow: hidden;
}

/* Volume Buttons (Using Box Shadow to reduce elements) */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  background: #000;
  border-radius: 2px;
  z-index: 100;
  opacity: 0.3;
}

/* Power Button */
.phone-notch {
  /* Dynamic Island */
  position: absolute;
  top: 18px;
  /* Adjusted for bezel */
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 20;
  transition: width 0.3s ease;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 34px;
  /* Screen Radius */
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
  z-index: 1;
}

/* Screen Glare */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 30;
}

/* Responsive Hero */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
    width: 100%;
  }

  .phone-frame {
    transform: none;
    /* Remove 3D effect on mobile for better fit */
  }
}



/* Trust */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 40px 0;
}

.logo-grid {
  display: flex;
  justify-content: space-around;
  opacity: 0.6;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 0;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Services & Common Grids */
.bg-secondary {
  background: var(--bg-secondary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.card {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Audit Tool */
.audit-tool-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.audit-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.audit-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.audit-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Audit Result Dashboard */
.audit-result {
  margin-top: 3rem;
  border-top: none;
  padding-top: 0;
}

.dashboard-card {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

/* Icon Button */
.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 4px;
}

.icon-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.url-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.target-url {
  color: #0284c7;
  /* Link blue */
  text-decoration: none;
}

.target-url:hover {
  text-decoration: underline;
}

.metrics-row {
  display: flex;
  padding: 20px 24px;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .metrics-row {
    padding: 15px;
    gap: 15px;
  }

  .metric-group.seo-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    margin-right: 0;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
}

.metric-group.seo-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 20px;
  border-right: 1px solid #f1f5f9;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 10px;
  min-height: 60px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.metric-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.metric-value-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.metric-value.blue {
  color: #0284c7;
}

.metric-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.mini-progress-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  border-top-color: #f59e0b;
  /* Orange accent */
  display: inline-block;
}

.loader {
  font-weight: 600;
  color: var(--accent);
  animation: pulse 1.5s infinite;
  margin-bottom: 2rem;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Future Tools */
.tool-card.blur {
  filter: grayscale(100%);
  opacity: 0.7;
  cursor: not-allowed;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Case Studies */
.case-study-card {
  display: flex;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.case-content {
  padding: 60px;
  flex: 1;
}

.case-visual {
  flex: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  min-height: 300px;
  border-left: 1px solid var(--border);
}

.results {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.result-item span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

/* CTA Section */
.bg-dark {
  background: var(--primary);
  color: white;
}

.bg-darker {
  background: var(--primary-light);
  color: white;
}

.text-white {
  color: white;

}

/* Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-card {
    flex-direction: column;
  }

  .case-visual {
    border-left: none;
    border-top: 1px solid var(--border);
    min-height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    position: relative;
  }

  .header-left,
  .header-right {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .header-right {
    width: auto;
    margin: 0;
    padding: 0;
  }

  /* Hide less important items on mobile to save space */
  .lang-selector {
    display: none;
  }

  /* Toggle Buttons */
  .desktop-only-btn {
    display: none !important;
  }

  .mobile-only-btn {
    display: block !important;
    width: 100%;
    padding: 0 20px;
  }

  .mobile-menu-btn {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    /* White on dark theme */
    z-index: 1002;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    gap: 20px;
    background: #171a22;
    /* Match header bg */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 1.5rem;
  }

  .hero-audit-form {
    flex-direction: column;
    padding: 15px;
  }

  .btn-audit-hero {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero {
    padding-top: 120px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Base style for button (hidden on desktop) */
.mobile-menu-btn {
  display: none;
}

/* --- Dashboard Layout (report.html) --- */

.dashboard-body {
  background: #f1f5f9;
  color: var(--text-main);
  overflow-x: hidden;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #1e293b;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-small {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
  gap: 12px;
}

.sidebar-nav ul li.active a,
.sidebar-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-left: 3px solid var(--accent);
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.user-info .plan {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Audit Tabs */
.audit-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.audit-tabs {
  background: white;
  padding: 6px;
  border-radius: 50px;
  display: flex;
  gap: 10px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
  /* Hide scrollbar for cleaner look */
  -ms-overflow-style: none;
  /* Edge/IE */
  width: 100%;
  justify-content: center;
}

.audit-tabs::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome/Safari */
}

@media (max-width: 600px) {
  .audit-tabs {
    justify-content: flex-start;
    padding: 6px 20px;
    border-radius: 8px;
    /* Square off a bit on mobile */
  }

  .audit-tab {
    white-space: nowrap;
    padding: 10px 20px;
    flex-shrink: 0;
  }
}

.audit-tab {
  padding: 12px 30px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.audit-tab.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.audit-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.crawler-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

/* Tab Animation */
.audit-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.audit-tab-content.active {
  display: block;
}

.audit-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Update Crawler Box to match Dashboard Card style if needed, 
   but for now keep it consistent with existing layout */


/* Main Dashboard Area */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
}

.dashboard-topbar {
  background: white;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  font-size: 0.9rem;
  color: #64748b;
}

.breadcrumbs .current {
  color: #0f172a;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.dashboard-content {
  padding: 32px;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: #0f172a;
}

.section-heading {
  font-size: 1.25rem;
  margin: 32px 0 16px;
  color: #0f172a;
}

/* Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.health-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.health-circle-large {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 16px 0;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 2.5;
}

.circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.health-circle-large .score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.text-success {
  color: #10b981;
  font-weight: 500;
  font-size: 0.9rem;
}

.issues-list-summary {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 16px;
}

.issue-item {
  text-align: center;
}

.issue-item .count {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.issue-item.error .count {
  color: #ef4444;
}

.issue-item.warning .count {
  color: #f59e0b;
}

.issue-item.notice .count {
  color: #3b82f6;
}

.issue-item .label {
  font-size: 0.8rem;
  color: #64748b;
}

.crawled-card .big-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.crawled-card .sub-text {
  text-align: center;
  color: #64748b;
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

/* CWV */
.cwv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cwv-item {
  text-align: center;
  padding: 24px;
}

.cwv-item .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 8px 0;
}

.cwv-item.pass .value {
  color: #10b981;
}

.cwv-item.pass .status {
  color: #10b981;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cwv-item.fail .value {
  color: #ef4444;
}

.cwv-item.fail .status {
  color: #ef4444;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Expanded Dashboard Styles */
.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.text-muted {
  color: #64748b;
}

.text-sm {
  font-size: 0.875rem;
}

.font-medium {
  font-weight: 500;
}

.text-primary {
  color: var(--accent);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.w-full {
  width: 100%;
}

.ml-2 {
  margin-left: 0.5rem;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

/* Status Badges */
.status-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-2xx {
  background: #dcfce7;
  color: #15803d;
}

.status-3xx {
  background: #e0f2fe;
  color: #0369a1;
}

.status-4xx {
  background: #fee2e2;
  color: #b91c1c;
}

.status-5xx {
  background: #fef9c3;
  color: #b45309;
}

/* truncate */
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Forms & Inputs */
.form-input,
.form-select {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #334155;
}

.search-box {
  width: 300px;
}

.search-box .form-input {
  width: 100%;
}

.badge-pill {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #475569;
}

/* Table */
.table-card {
  padding: 0;
  overflow: hidden;
}

.issues-table {
  width: 100%;
  border-collapse: collapse;
}

.issues-table th {
  background: #f8fafc;
  text-align: left;
  padding: 16px 24px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.issues-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.badge-error {
  background: #fee2e2;
  color: #ef4444;
}

.badge-warning {
  background: #fef3c7;
  color: #d97706;
}

.badge-notice {
  background: #dbeafe;
  color: #1d4ed8;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Responsive Dashboard */
@media (max-width: 900px) {
  .sidebar {
    width: 0;
    overflow: hidden;
  }

  /* Simple hide for now */
  .dashboard-main {
    margin-left: 0;
  }

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

/* Modern Audit Results UI */

/* Glassmorphism Card */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px -12px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.card-header {
  padding: 20px 32px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248, 250, 252, 0.5);
}

.url-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-favicon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.badge-pro {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: white;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Metrics Grid */
.metrics-grid {
  display: flex;
  padding: 32px;
  gap: 32px;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: scale(1.05);
}

/* Donut Charts */
.chart-container {
  width: 120px;
  height: 120px;
  position: relative;
}

.donut-chart {
  width: 100%;
  height: 100%;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 2.5;
}

.circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke: var(--c);
  /* defined in inline style */
  animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 800;
  color: #1e293b;
  font-size: 1.5rem;
}

.center-text .percent {
  font-size: 0.9rem;
  color: #64748b;
  margin-left: 2px;
}

.metric-label {
  font-weight: 600;
  color: #334155;
}

.trend {
  font-size: 0.8rem;
  font-weight: 500;
}

.trend.up {
  color: #10b981;
}

.trend.neutral {
  color: #64748b;
}

/* Secondary Metrics */
.secondary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-left: 32px;
  border-left: 1px solid #f1f5f9;
}

.mini-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}

.mini-metric:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.mini-metric .icon {
  font-size: 1.25rem;
}

.mini-metric-content {
  display: flex;
  flex-direction: column;
}

.mini-metric .value {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1.2;
}

.mini-metric .label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Glowing Button */
.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  min-width: 240px;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Fade In Up Data */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    flex-direction: column;
    padding: 20px;
  }

  .secondary-metrics {
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 20px;
    width: 100%;
  }
}

/* Trust Section */
.trust.section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  border-bottom: 1px solid #e2e8f0;
}

.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px 60px;
  margin-bottom: 60px;
  opacity: 0.7;
}

.logo-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  user-select: none;
  cursor: default;
}

.logo-item:hover {
  color: var(--accent);
  transform: translateY(-2px);
  opacity: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.stat-item:nth-child(1) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.4s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.6s;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #0F172A 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .logo-grid {
    gap: 30px;
  }
}

/* Dashboard Result Card Styling */
.dashboard-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .dashboard-card {
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
  }

  .card-header {
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .card-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.glass-panel {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Header adjustments */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.url-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.target-url {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  font-size: 1.25rem;
}

.badge-pro {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

.card-actions .icon-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  color: #64748b;
}

/* Deep Scan Table Styling */
.crawl-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.crawl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.crawl-table th,
.crawl-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.crawl-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.crawl-table th:first-child {
  border-top-left-radius: 12px;
}

.crawl-table th:last-child {
  border-top-right-radius: 12px;
}

.crawl-table tr:hover td {
  background: #f8fafc;
}

.crawl-table td {
  color: #334155;
  font-size: 0.95rem;
}

.crawl-table a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.crawl-table a:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.success {
  background: #dcfce7;
  color: #166534;
}

.status-badge.error {
  background: #fee2e2;
  color: #991b1b;
}

.card-actions .icon-btn:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

/* Logo Fix */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
}

/* Deep Scan Progress Bar */
.loading-container {
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  text-align: center;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
  animation: gradientMove 2s linear infinite;
}

.loading-text {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

@keyframes gradientMove {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Keyword Analysis Component */
.google-tools-menu {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
}

.search-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar {
  display: none;
}

.search-tab {
  background: none;
  border: none;
  padding: 10px 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.search-tab.active {
  color: #1a73e8;
}

.search-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1a73e8;
}

.search-tab:hover {
  color: #1a73e8;
}

.search-tab.tools-btn {
  margin-left: 10px;
  border-left: 1px solid #e2e8f0;
  padding-left: 20px;
}

.keyword-metric-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.keyword-score {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.suggestion-card {
  padding: 15px;
  background: white;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s, box-shadow 0.2s;
}

.suggestion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}