:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --accent: #1d4ed8;
  --success: #16a34a;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --max-width: 1100px;
  --radius: 8px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.65rem;
}

.logo-text {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.nav a {
  padding: 0.375rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}

.header-cta {
  font-size: 0.8125rem;
  padding: 0.4375rem 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

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

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

.btn-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
}

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

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 500px;
  margin: 0 auto;
}

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

.hero-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Test Format */
.test-format {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.test-part {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.test-part h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.test-part-detail {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.test-part-pass {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.test-part p:last-child {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.test-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.test-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.info-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.info-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* GLS Timeline */
.gls-timeline {
  max-width: 600px;
  margin: 0 auto;
}

.gls-stage {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

.gls-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.gls-badge-mid { background: #f59e0b; }
.gls-badge-full { background: var(--success); }

.gls-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.gls-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gls-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 2.75rem;
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary:hover {
  background: var(--bg-alt);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* CTA */
.cta-section {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: white;
}

.cta-content p {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  font-size: 0.8125rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-desc {
  margin-top: 0.75rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  text-align: center;
  color: #64748b;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .test-format { grid-template-columns: 1fr; }
  .test-divider { width: 100%; height: 1px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}
