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

:root {
  --bg-color: #f9fafb;
  --surface-color: #ffffff;
  --surface-hover: #f3f4f6;
  --primary: #1e3a8a; /* Elegant deep blue */
  --secondary: #991b1b; /* Wine red */
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-color: rgba(0, 0, 0, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1, h2, h3, h4, .brand {
  font-family: var(--font-heading);
  line-height: 1.2;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #fff;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: none;
  border: none;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
}

.btn-primary:hover {
  background: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  background: linear-gradient(180deg, #f3f4f6 0%, var(--bg-color) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  margin-bottom: 24px;
  color: var(--text-main);
}

.text-gradient {
  color: var(--secondary);
}

.lead {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.trust {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.trust span {
  font-size: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}

.hero-side {
  background: var(--surface-color);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.st {
  display: flex;
  flex-direction: column;
}

.st b {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
}

.st span {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 8px;
}

/* Sections */
.section {
  padding: 120px 0;
}

.section.alt {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.sec-head {
  max-width: 600px;
  margin-bottom: 64px;
}

.sec-head.center {
  margin: 0 auto 64px;
  text-align: center;
}

.sec-head h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.sec-head p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Grid Layouts - Cards Made Larger */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px 32px; /* Increased padding */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.card-num {
  font-size: 3.5rem; /* Larger */
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04);
  position: absolute;
  top: 24px;
  right: 24px;
  line-height: 1;
  font-family: var(--font-heading);
}

.card h3 {
  font-size: 1.6rem; /* Larger */
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tags span {
  padding: 6px 12px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Ranking List */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rank-item {
  display: grid;
  grid-template-columns: 240px 1fr 100px 160px;
  gap: 32px;
  align-items: center;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0 32px 0 0;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  overflow: hidden;
}

.rank-item:hover {
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.rank-pos {
  display: none;
}

.rank-logo {
  width: 100%;
  height: 200px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

.rank-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  padding: 32px 0;
}

.rank-info h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.rank-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.rank-score {
  text-align: center;
  padding: 0;
}

.rank-score .val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: var(--font-heading);
  line-height: 1;
}

.rank-score .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lead Feature */
.lead-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.lf-left, .lf-right {
  position: relative;
  z-index: 1;
}

.lf-score {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lf-score b {
  font-size: 4rem;
  color: var(--secondary);
  line-height: 1;
  font-family: var(--font-heading);
}

.lf-block {
  margin-bottom: 32px;
}

.lf-block:last-child {
  margin-bottom: 0;
}

.lf-block h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.lf-block ul {
  list-style: none;
}

.lf-block ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.lf-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

summary {
  padding: 24px 32px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

details[open] summary::after {
  content: '−';
}

details p {
  padding: 0 32px 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.field input, .field textarea {
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
  font-size: 1rem;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.consent-wrap input {
  margin-top: 6px;
}

.consent-wrap span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--primary);
  padding: 80px 0 40px;
  color: #fff;
}

.site-footer .brand {
  color: #fff;
}

.f-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.f-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  max-width: 400px;
}

.f-col h4 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: #fff;
}

.f-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.f-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.f-disc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.f-bottom {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Mobile Nav Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--border-color);
  z-index: 2000;
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--transition);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.drawer.open {
  right: 0;
}

.drawer a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 24px 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 32px;
  z-index: 1000;
  transition: var(--transition);
  width: 90%;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cookie-notice.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .contact-grid, .lead-feature {
    grid-template-columns: 1fr;
  }
  
  .rank-item {
    grid-template-columns: 50px 80px 1fr auto;
    padding: 20px;
  }
  
  .rank-item .btn {
    display: none;
  }
  
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav, .h-cta {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .grid-3, .f-top {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding-top: 140px;
  }
  
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
