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

/* ── Tokens ── */
:root {
  --red: #C8232D;
  --red-soft-bg: rgba(200,35,45,0.05);
  --red-border: rgba(200,35,45,0.18);
  --red-divider: #C8232D;
  --gray-900: #111827;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #ffffff;
  --btn-shadow: 0 4px 14px 0 rgba(200,35,45,0.35);
}

/* ── Base ── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo img { height: 83px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--red); }
.btn-launch {
  background: var(--red);
  color: #fff;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: filter 0.15s;
  white-space: nowrap;
}
.btn-launch:hover { filter: brightness(1.1); }

/* ── Hero strip ── */
.page-hero {
  background: var(--red-soft-bg);
  border-bottom: 1px solid var(--red-border);
  padding: 40px 24px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 4px 16px;
  background: #fff;
  border: 1px solid var(--red-border);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  font-style: italic;
  color: var(--red);
  line-height: 1.1;
}
.page-hero .date {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-400);
}

/* ── Main content ── */
main {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 24px;
}

/* ── Sections ── */
.section { margin-bottom: 40px; }
.section-head {
  border-bottom: 2px solid var(--red-divider);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-900);
}
.section-head .sub {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
}
.section p, .section li {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
}
.section a { color: var(--red); text-decoration: underline; }

/* ── Contact cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--red-border);
  border-radius: 12px;
  background: #fff;
  margin-top: 10px;
}
.contact-card svg { color: var(--red); flex-shrink: 0; }
.contact-card span { font-size: 13px; color: var(--gray-600); }

/* ── Form ── */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1F1F1F;
  background: #fff;
  border: 1px solid var(--red-border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
input:focus, textarea:focus { outline: none; border-color: var(--red); border-width: 1.5px; }
.btn-send {
  width: 100%;
  background: var(--red);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: filter 0.15s, transform 0.1s;
}
.btn-send:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-send:active { transform: translateY(0); }
.success-msg {
  display: none;
  text-align: center;
  font-size: 13px;
  color: var(--red);
  background: var(--red-soft-bg);
  border: 1px solid var(--red-border);
  border-radius: 12px;
  padding: 14px;
}

/* ── Footer ── */
footer {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--gray-400); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; }
.footer-links a {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.footer-links a:hover { color: var(--red); border-bottom-color: var(--red); }
.footer-links .sep { color: var(--gray-300); }

/* ── Responsive (subpages) ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-inner { flex-wrap: wrap; }
}

/* ════════════════════════════════════════
   INDEX PAGE
   ════════════════════════════════════════ */

/* Hero */
.hero { overflow: hidden; padding: 8px 0 64px; }
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-text { width: 100%; text-align: center; padding-top: 48px; }
.index-badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--red-soft-bg);
  border: 1px solid #fecaca;
  border-radius: 9999px;
  margin-bottom: 20px;
}
.index-badge span {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-h1 span {
  color: var(--red);
  font-weight: 900;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: #e5e7eb;
}
.hero-sub {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.btn-start {
  background: var(--red);
  color: #fff;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  border: none;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-start:hover { transform: translateY(-3px); }
.hero-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.hero-phone {
  width: 256px;
  padding: 8px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 1px solid var(--gray-100);
  transform: rotate(1deg);
}
.hero-phone img { border-radius: 16px; width: 100%; height: auto; }

/* Section shared */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-title-block { text-align: center; margin-bottom: 64px; }
.section-title-block h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  font-style: italic;
  color: var(--red);
}
.section-title-block p { color: var(--gray-500); margin-top: 16px; font-size: 15px; }

/* Research Hub */
.hub-section {
  padding: 96px 0;
  background: #fff;
  border-top: 1px solid var(--gray-100);
  min-height: 820px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.hub-col { display: flex; flex-direction: column; gap: 24px; }
.hub-col-head { border-bottom: 2px solid var(--red); padding-bottom: 8px; }
.hub-col-head h3 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111827;
}
.hub-col-head span {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
}
.hub-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.hub-col li { font-size: 14px; color: #374151; }
.hub-col li strong { color: var(--red); font-weight: 700; }

/* rsID */
.dna-section {
  padding: 96px 0;
  background: var(--red-soft-bg);
  min-height: 820px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dna-inner { max-width: 896px; margin: 0 auto; padding: 0 24px; text-align: center; }
.dna-inner h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: #111827; margin-bottom: 32px; }
.dna-inner h2 span { color: var(--red); font-style: italic; }
.dna-inner > p { font-size: 20px; color: var(--gray-600); margin-bottom: 48px; line-height: 1.6; }
.dna-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.dna-card {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #fff1f2;
  text-align: left;
}
.dna-card-num { color: var(--red); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.dna-card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* AI Agent */
.ai-section {
  padding: 96px 0;
  background: #111827;
  color: #fff;
  overflow: hidden;
  min-height: 820px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ai-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.ai-image { display: flex; justify-content: center; order: 2; }
.ai-phone {
  width: 192px;
  padding: 8px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  border: 1px solid var(--gray-100);
  transform: rotate(1deg);
}
.ai-phone img { border-radius: 16px; width: 100%; height: auto; }
.ai-text { order: 1; display: flex; flex-direction: column; gap: 32px; }
.ai-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.ai-text p { color: #9CA3AF; font-size: 20px; line-height: 1.6; }
.ai-quote {
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  font-style: italic;
  color: #D1D5DB;
  font-size: 15px;
  line-height: 1.6;
}

/* Index responsive */
@media (min-width: 768px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .dna-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero-inner { flex-direction: row; }
  .hero-text { width: 50%; text-align: left; padding-top: 64px; margin-left: 10%; }
  .hero-text .hero-sub { margin: 0 0 32px; }
  .hero-image-wrap { width: 50%; margin-top: 0; justify-content: flex-start; padding-left: 40px; align-items: center; }
  .hero-phone { width: 288px; transform: rotate(3deg); }
  .ai-inner { grid-template-columns: repeat(2, 1fr); }
  .ai-image { order: 1; }
  .ai-text  { order: 2; }
}