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

:root {
  --tt-navy: #344a5f;
  --tt-dark: #2f2f2f;
  --tt-text: #222;
  --tt-muted: #718096;
  --tt-link: #405cb3;
  --tt-link-hover: #1139b5;
  --tt-accent-blue: #195ca3;
  --tt-green: #0bac4b;
  --tt-green-hover: #067131;
  --tt-orange: #da532c;
  --tt-bg-light: #f5f5f5;
  --tt-bg-highlight: #edf3fd;
  --tt-footer: #121212;
  --tt-white: #fff;
  --tt-border: rgba(0, 0, 0, 0.06);
  --tt-shadow: 0 1px 20px rgba(0, 0, 0, 0.07);
  --tt-radius: 5px;
  --tt-container: 1040px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--tt-text);
  line-height: 1.5;
  background: var(--tt-white);
}

a {
  color: var(--tt-link);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--tt-link-hover);
}

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

.container {
  max-width: var(--tt-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header-upper {
  background: var(--tt-navy);
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
  text-transform: uppercase;
  padding: 5px 0;
  letter-spacing: 0.5px;
}

.header-upper span {
  font-weight: 700;
  color: var(--tt-white);
}

.logo-bar {
  border-bottom: 1px solid var(--tt-border);
  box-shadow: var(--tt-shadow);
  background: var(--tt-white);
}

.logo-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

.logo img {
  width: 30px;
  height: 33px;
}

.logo-text {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -2px;
  color: var(--tt-dark);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--tt-navy) 0%, #1a2a3a 100%);
  color: var(--tt-white);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(25, 92, 163, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  opacity: 0.88;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px;
}

.hero-visual-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual-header img {
  width: 24px;
}

.hero-visual-header span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -1px;
}

.review-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-preview-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px;
}

.review-preview-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.review-preview-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.review-preview-item p {
  font-size: 12px;
  opacity: 0.65;
  margin: 0;
}

.stars {
  color: #fcb900;
  font-size: 12px;
  margin-bottom: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--tt-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--tt-green);
  color: var(--tt-white);
  box-shadow: 0 2px 0 #04461e;
}

.btn-primary:hover {
  background: var(--tt-green-hover);
  color: var(--tt-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--tt-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tt-white);
}

.btn-block {
  width: 100%;
}

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

/* Trust bar */
.trust-bar {
  background: var(--tt-bg-light);
  padding: 28px 0;
  border-bottom: 1px solid var(--tt-border);
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-dark);
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--tt-accent-blue);
  flex-shrink: 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--tt-dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--tt-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--tt-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #444;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
}

.feature-list li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--tt-green);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-visual {
  background: var(--tt-bg-highlight);
  border-radius: 12px;
  padding: 32px;
}

.rating-card {
  background: var(--tt-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rating-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rating-card-header img {
  width: 30px;
}

.rating-card-header span {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -1px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.rating-bar {
  flex: 1;
  height: 12px;
  background: #e2e2e2;
  border-radius: 15px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--tt-accent-blue);
  border-radius: 15px;
}

/* Articles grid */
.articles-section {
  background: var(--tt-bg-light);
}

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

.article-card {
  background: var(--tt-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-card.locked .article-card-link {
  pointer-events: none;
}

.article-card.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.article-card.locked .lock-badge {
  display: flex;
}

.lock-badge {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: var(--tt-navy);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.lock-badge svg {
  width: 14px;
  height: 14px;
}

.article-card.unlocked .lock-badge {
  display: none;
}

.article-card.unlocked::after {
  display: none;
}

.article-card.unlocked .article-card-link {
  pointer-events: auto;
}

.article-thumb {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.article-body {
  padding: 20px;
}

.article-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--tt-accent-blue);
  margin-bottom: 8px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tt-dark);
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tt-muted);
}

.article-meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* CTA band */
.cta-band {
  background: var(--tt-navy);
  color: white;
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-band p {
  opacity: 0.8;
  margin-bottom: 28px;
  font-size: 17px;
}

/* Footer */
#footer {
  background: var(--tt-footer);
  color: rgba(255, 255, 255, 0.23);
  font-size: 12px;
  font-weight: 300;
  line-height: 17px;
  padding: 45px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: gray;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 12px;
  transition: color 0.2s;
}

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

.footer-links .divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: wheat;
  margin: 0 15px;
}

.footer-copy {
  text-align: center;
  margin-bottom: 16px;
}

.footer-logo {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

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

/* Registration modal / wall */
.registration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.registration-overlay.active {
  opacity: 1;
  visibility: visible;
}

.registration-modal {
  background: var(--tt-white);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.registration-overlay.active .registration-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tt-muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--tt-dark);
}

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-logo img {
  width: 30px;
}

.modal-logo span {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -1px;
}

.registration-modal h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--tt-dark);
  margin-bottom: 8px;
}

.registration-modal > p {
  font-size: 15px;
  color: var(--tt-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tt-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--tt-radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--tt-accent-blue);
}

.form-error {
  color: #cf2e2e;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-consent {
  font-size: 12px;
  color: var(--tt-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-consent a {
  font-size: 12px;
}

.form-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--tt-green);
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--tt-muted);
  font-size: 15px;
}

#registration-form.hidden {
  display: none;
}

/* Articles gate banner */
.gate-banner {
  background: linear-gradient(90deg, var(--tt-navy), var(--tt-accent-blue));
  color: white;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  display: none;
}

.gate-banner.visible {
  display: block;
}

.gate-banner button {
  background: var(--tt-green);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: var(--tt-radius);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s;
}

.gate-banner button:hover {
  background: var(--tt-green-hover);
}

.gate-banner.registered {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tt-dark);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 920px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

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

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: var(--tt-shadow);
    z-index: 100;
  }

  .logo-bar .container {
    position: relative;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-stats {
    gap: 20px;
  }

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

  .section-header h2 {
    font-size: 26px;
  }

  .registration-modal {
    padding: 28px 24px;
  }

  .trust-bar .container {
    gap: 24px;
  }
}
