/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ===== Design Tokens ===== */
:root {
  --bg-black: #050508;
  --bg-card: #111118;
  --bg-surface: #0D0D12;
  --accent-red: #C41E2A;
  --accent-red-dim: #C41E2A40;
  --accent-green: #22C55E;
  --text-white: #FFFFFF;
  --text-secondary: #8888A0;
  --text-muted: #444455;
  --text-dim: #333344;
  --border: #1A1A25;
  --border-subtle: #12121A;
  --font-mono: 'Fira Code', monospace;
  --font-body: 'Inter', sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Page Container ===== */
.page {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
  border-bottom: 1px solid var(--border);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.header__wordmark {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-white);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--text-white);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 60px 80px;
  gap: 40px;
  background:
    radial-gradient(ellipse 100% 120% at 50% 70%, #C41E2A18 0%, #C41E2A05 40%, transparent 100%),
    var(--bg-black);
}

.hero__logo-group {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 20px;
}

.hero__logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  opacity: 0.9;
}

.hero__wordmark {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-white);
}

.hero__headline {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--text-white);
  max-width: 1000px;
}

.hero__desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  color: var(--text-secondary);
  max-width: 800px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--accent-red);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--text-dim);
  transition: border-color 0.2s;
}

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

/* ===== Architecture Section ===== */
.architecture {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 60px;
  gap: 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent-red);
}

.section-label--lg {
  font-size: 14px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: var(--text-white);
}

.section-desc {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
  color: var(--text-secondary);
  max-width: 750px;
}

/* ===== Flow Diagram ===== */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  background: var(--bg-black);
  width: 100%;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
}

.flow-step--highlighted {
  border: 1px solid var(--accent-red-dim);
}

.flow-step--bordered {
  border: 1px solid var(--border);
}

.flow-step__icon {
  font-family: var(--font-mono);
  font-weight: 700;
}

.flow-step__icon--green {
  color: var(--accent-green);
  font-size: 24px;
}

.flow-step__icon--red {
  color: var(--accent-red);
  font-size: 16px;
}

.flow-step__icon--white {
  color: var(--text-white);
  font-size: 16px;
}

.flow-step__label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
}

.flow-step__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.flow-arrow__line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
}

.flow-arrow__head {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== Pipeline Section ===== */
.pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 60px;
  gap: 48px;
  background: var(--bg-black);
  border-top: 1px solid var(--border);
}

.pipeline__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pipeline__cards {
  display: flex;
  gap: 20px;
  width: 100%;
}

.pipeline-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.pipeline-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.pipeline-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pipeline-card__dot--red { background: #FF5F57; }
.pipeline-card__dot--yellow { background: #FEBC2E; }
.pipeline-card__dot--green { background: #28C840; }

.pipeline-card__body {
  display: flex;
  flex: 1;
}

.pipeline-card__accent {
  width: 3px;
  background: var(--accent-red);
  flex-shrink: 0;
}

.pipeline-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1;
}

.pipeline-card__title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.pipeline-card__desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ===== SKILL.md Section ===== */
.skillmd {
  position: relative;
  background: var(--bg-surface);
  height: 975px;
}

.skillmd__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 80px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text-white);
}

.code-block {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 140px;
  width: 860px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.code-block__bar {
  position: relative;
  height: 40px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
}

.code-block__dot--red { background: #FF5F57; left: 16px; top: 15px; }
.code-block__dot--yellow { background: #FEBC2E; left: 34px; top: 15px; }
.code-block__dot--green { background: #28C840; left: 52px; top: 15px; }

.code-block__label {
  position: absolute;
  left: 72px;
  top: 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.code-block__content {
  display: flex;
  height: 565px;
}

.code-block__lines {
  width: 44px;
  padding: 0 0 0 16px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  flex-shrink: 0;
  white-space: pre;
}

.code-block__gutter {
  width: 1px;
  background: var(--border-subtle);
  flex-shrink: 0;
  margin-left: 8px;
}

.code-block__code {
  padding: 0 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre;
  flex: 1;
}

.skillmd__caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 785px;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
}

/* ===== Trust Strip ===== */
.trust-strip {
  position: relative;
  height: 130px;
  background: var(--bg-black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
}

.trust-item--1 { left: 165px; }
.trust-item--2 { left: 630px; }
.trust-item--3 { left: 1095px; }

.trust-item__title {
  position: absolute;
  top: 36px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-white);
  white-space: nowrap;
}

.trust-item__desc {
  position: absolute;
  top: 64px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  height: 220px;
  background: var(--bg-black);
}

.footer__top {
  position: relative;
  height: 40px;
  margin: 32px 60px 0;
}

.footer__logo {
  position: absolute;
  left: 0;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.footer__wordmark {
  position: absolute;
  left: 38px;
  top: 11px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.footer__copyright {
  position: absolute;
  left: 155px;
  top: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

.footer__x-icon {
  position: absolute;
  right: 0;
  top: 10px;
}

.footer__x-icon svg {
  fill: var(--text-secondary);
  width: 24px;
  height: 24px;
  transition: fill 0.2s;
}

.footer__x-icon:hover svg {
  fill: var(--text-white);
}

.footer__divider {
  height: 1px;
  background: var(--border);
  margin: 24px 60px 0;
}

.footer__disclaimer {
  margin: 16px 60px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ===== Responsive ===== */
@media (max-width: 1440px) {
  .header { padding: 16px 32px; }
  .hero { padding: 80px 32px 60px; }
  .hero__headline { font-size: 40px; max-width: 90%; }
  .hero__desc { max-width: 90%; }
  .architecture { padding: 60px 32px; }
  .flow-diagram { padding: 40px 20px; flex-wrap: wrap; gap: 8px; }
  .pipeline { padding: 60px 32px; }
  .skillmd { height: auto; padding: 60px 32px 80px; }
  .skillmd__title { position: static; transform: none; text-align: center; margin-bottom: 32px; }
  .code-block { position: static; transform: none; width: 100%; max-width: 860px; margin: 0 auto; }
  .skillmd__caption { position: static; transform: none; text-align: center; margin-top: 24px; }
  .trust-strip { height: auto; padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
  .trust-item { position: static; text-align: center; }
  .trust-item__title { position: static; }
  .trust-item__desc { position: static; margin-top: 8px; }
  .footer { height: auto; padding-bottom: 32px; }
  .footer__top { display: flex; align-items: center; gap: 16px; height: auto; margin: 32px 32px 0; }
  .footer__logo, .footer__wordmark, .footer__copyright, .footer__x-icon { position: static; }
  .footer__x-icon { margin-left: auto; }
  .footer__divider { margin: 16px 32px 0; }
  .footer__disclaimer { margin: 16px 32px 0; }
}

@media (max-width: 768px) {
  .hero__headline { font-size: 28px; }
  .hero__desc { font-size: 16px; }
  .hero__ctas { flex-direction: column; }
  .section-title { font-size: 28px; }
  .pipeline__cards { flex-direction: column; }
  .flow-diagram { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); }
  .trust-strip { flex-direction: column; align-items: center; }
  .trust-item__desc { white-space: normal; }
}
