/* EthiSource Landing Page — Dieter Rams Aesthetic */

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

:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-grey: #F5F5F5;
  --grey-100: #E8E8E8;
  --grey-200: #D0D0D0;
  --grey-300: #A0A0A0;
  --grey-400: #808080;
  --grey-500: #606060;
  --grey-600: #404040;
  --black: #000000;

  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --letter-spacing-wide: 0.12em;
  --letter-spacing-normal: 0.02em;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 12px 24px !important;
  transition: background 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--grey-600) !important;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 32px;
}

.hero-accent {
  font-weight: 500;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--grey-500);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 18px 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--grey-600);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--black);
  padding: 18px 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--grey-200);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--black);
}

/* Browser Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.browser-mockup {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.browser-header {
  background: var(--light-grey);
  border-bottom: 1px solid var(--grey-200);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grey-200);
}

.browser-url {
  flex: 1;
  font-size: 11px;
  color: var(--grey-400);
  background: var(--white);
  padding: 6px 12px;
  border: 1px solid var(--grey-100);
}

.browser-content {
  padding: 20px;
  background: var(--off-white);
}

.popup-demo {
  background: #FFFFFF;
  border: 1px solid #D0D0D0;
}

.popup-header {
  background: #F5F5F5;
  border-bottom: 1px solid #D0D0D0;
  padding: 24px;
}

.popup-header h1.popup-title {
  margin: 0 0 6px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
}

.popup-header p.popup-tagline {
  margin: 0;
  font-size: 12px;
  color: #606060;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Verdict Card - matches extension popup exactly */
.verdict-card {
  background: #FAFAFA;
  padding: 24px;
  margin: 0;
  border-left: 3px solid #000000;
}

.verdict-card.verdict-buy {
  border-left-color: #000000;
  background: #FFFFFF;
}

.verdict-card.verdict-mixed {
  border-left-color: #808080;
}

.verdict-card.verdict-avoid {
  border-left-color: #000000;
  background: #F5F5F5;
}

.verdict-header {
  display: block;
  margin-bottom: 20px;
}

.verdict-icon-large {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.verdict-title-large {
  font-size: 12px;
  font-weight: 500;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.verdict-brand {
  font-size: 16px;
  color: #000000;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.verdict-message-large {
  font-size: 13px;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 400;
}

.popup-footer {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid #D0D0D0;
  background: #F5F5F5;
}

.popup-footer span {
  color: #000000;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ===== PRINCIPLES ===== */
.principles {
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.principle {
  padding: 60px 40px;
  border-right: 1px solid var(--grey-600);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.principle:last-child {
  border-right: none;
}

.principle:hover {
  background: var(--grey-600);
}

.principle-number {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  margin-bottom: 12px;
}

.principle-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-normal);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
}

.feature-card {
  background: var(--white);
  padding: 48px 32px;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  background: var(--off-white);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle {
  width: 32px;
  height: 32px;
  border: 2px solid var(--black);
  border-radius: 50%;
  position: relative;
}

.icon-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.icon-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
}

.icon-bars span {
  width: 8px;
  background: var(--black);
}

.icon-bars span:nth-child(1) { height: 40%; }
.icon-bars span:nth-child(2) { height: 70%; }
.icon-bars span:nth-child(3) { height: 100%; }

.icon-shield {
  width: 24px;
  height: 28px;
  border: 2px solid var(--black);
  border-radius: 2px 2px 12px 12px;
  position: relative;
}

.icon-shield::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--black);
  font-weight: bold;
}

.icon-layers {
  position: relative;
  width: 32px;
  height: 32px;
}

.icon-layers span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--black);
}

.icon-layers span:nth-child(1) { top: 0; }
.icon-layers span:nth-child(2) { top: 12px; opacity: 0.6; }
.icon-layers span:nth-child(3) { top: 24px; opacity: 0.3; }

.feature-number {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--grey-300);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 13px;
  color: var(--grey-500);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 40px;
  background: var(--light-grey);
}

.how-it-works .section-header {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.steps {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--grey-200);
  position: relative;
}

.step:last-child {
  border-bottom: none;
}

.step-line {
  position: absolute;
  left: -60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--grey-200);
}

.step-line::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--black);
  transform: translateY(-50%);
}

.step-number {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  margin-bottom: 12px;
}

.step-title {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--grey-500);
  line-height: 1.7;
  max-width: 400px;
}

.step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-icon-browse {
  position: relative;
  width: 80px;
  height: 60px;
}

.window-mini {
  width: 80px;
  height: 50px;
  border: 2px solid var(--black);
  position: relative;
}

.window-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--black);
}

.cursor {
  position: absolute;
  bottom: 5px;
  right: 10px;
  width: 12px;
  height: 18px;
  border-left: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(-45deg);
  animation: cursor-move 2s ease-in-out infinite;
}

@keyframes cursor-move {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); }
  50% { transform: rotate(-45deg) translate(-5px, -5px); }
}

.step-icon-click {
  position: relative;
}

.extension-icon {
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
}

.extension-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.click-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 2px solid var(--black);
  transform: translate(-50%, -50%);
  animation: ring-pulse 2s ease-out infinite;
}

@keyframes ring-pulse {
  0% { width: 48px; height: 48px; opacity: 1; }
  100% { width: 80px; height: 80px; opacity: 0; }
}

.step-icon-decide {
  display: flex;
  gap: 8px;
}

.verdict-mini {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid var(--grey-200);
  transition: all 0.3s ease;
}

.verdict-mini.good {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.verdict-mini.mixed {
  background: var(--grey-400);
  color: var(--white);
  border-color: var(--grey-400);
}

.verdict-mini.avoid {
  background: var(--white);
  color: var(--black);
}

/* ===== DATA SOURCES ===== */
.data-sources {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
}

.source-item {
  background: var(--white);
  padding: 40px;
  transition: background 0.3s ease;
}

.source-item:hover {
  background: var(--off-white);
}

.source-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.source-desc {
  font-size: 12px;
  color: var(--grey-500);
  line-height: 1.6;
}

/* ===== DOWNLOAD ===== */
.download {
  padding: 160px 40px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.download-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 24px;
}

.download-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.download-desc {
  font-size: 16px;
  color: var(--grey-400);
  line-height: 1.7;
  margin-bottom: 48px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  color: var(--black);
  padding: 20px 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-icon {
  display: flex;
}

.download-meta {
  margin-top: 32px;
  font-size: 11px;
  color: var(--grey-500);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.meta-sep {
  width: 4px;
  height: 4px;
  background: var(--grey-500);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--light-grey);
  border-top: 1px solid var(--grey-200);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.footer-brand {
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--grey-500);
}

.footer-links {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--grey-200);
}

.footer-copy {
  font-size: 11px;
  color: var(--grey-400);
  letter-spacing: var(--letter-spacing-normal);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 48px;
  }

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .principle {
    border-right: none;
    border-bottom: 1px solid var(--grey-600);
  }

  .principle:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 16px 24px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 120px 24px 60px;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .features {
    padding: 80px 24px;
  }

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

  .how-it-works {
    padding: 80px 24px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .step-line {
    display: none;
  }

  .data-sources {
    padding: 80px 24px;
  }

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

  .download {
    padding: 80px 24px;
  }

  .footer-inner {
    padding: 40px 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
