/* ─── TOKENS ───────────────────────────────────────────────────── */
:root {
  --black:   #080808;
  --dark:    #111111;
  --mid:     #1c1c1c;
  --rule:    #2a2a2a;
  --muted:   #666666;
  --soft:    #aaaaaa;
  --white:   #f4f4f2;
  --offwhite:#e0e0dc;

  --gradient: linear-gradient(90deg, #e8334a, #e8732a, #d4b830, #3ab85c, #2a9fd8, #7b4fd4, #c43a8a);
  --gradient-diag: linear-gradient(135deg, #e8334a, #e8732a, #d4b830, #3ab85c, #2a9fd8, #7b4fd4, #c43a8a);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Fira Mono", "Courier New", monospace;

  --max: 1200px;
  --gutter: clamp(24px, 5vw, 80px);
}

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

html { scroll-behavior: smooth; }

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

/* ─── LAYOUT ────────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── RAINBOW STRIPE ────────────────────────────────────────────── */
.stripe {
  height: 3px;
  background: var(--gradient);
  width: 100%;
}

/* ─── NAV ───────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gradient-diag);
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

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

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

/* ─── HERO ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 100px;
  padding-top: 160px;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116,79,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gradient);
}

.hero-headline {
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0;
}

.hero-headline .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bottom {
  margin-top: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-descriptor {
  max-width: 420px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--soft);
}

.hero-meta {
  text-align: right;
}

.hero-meta-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 2;
}

.hero-stripe {
  margin-top: 80px;
}

/* ─── SECTION COMMONS ───────────────────────────────────────────── */
section {
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 72px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--gradient);
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--white);
}

.section-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--soft);
}

.section-body p + p {
  margin-top: 16px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--rule);
}

/* ─── ABOUT ─────────────────────────────────────────────────────── */
#about {
  background: var(--dark);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 72px;
}

.stat-cell {
  background: var(--dark);
  padding: 40px 36px;
}

.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* ─── PORTFOLIO ──────────────────────────────────────────────────── */
#portfolio {}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.portfolio-card {
  background: var(--black);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.portfolio-card:hover::after {
  transform: scaleX(1);
}

.portfolio-card:hover {
  background: var(--mid);
}

.portfolio-card.full-width {
  grid-column: 1 / -1;
}

.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--soft);
  max-width: 480px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag-pill {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ─── TECHNOLOGY ─────────────────────────────────────────────────── */
#technology {
  background: var(--dark);
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 72px;
}

.tech-item {
  background: var(--dark);
  padding: 36px 32px;
}

.tech-item-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rule);
  margin-bottom: 20px;
}

.tech-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.tech-item-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── TEAM ───────────────────────────────────────────────────────── */
#team {}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  max-width: 700px;
}

.team-card {
  background: var(--black);
  padding: 44px 40px;
}

.team-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.team-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}

.team-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ─── CONTACT / FOOTER ───────────────────────────────────────────── */
#contact {
  background: var(--dark);
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.contact-headline {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--white);
}

.contact-headline .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-row-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row-value {
  font-size: 16px;
  color: var(--white);
}

.contact-row-value a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.contact-row-value a:hover {
  border-color: var(--soft);
}

.footer-bar {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-logo-mark {
  width: 20px;
  height: 20px;
  background: var(--gradient-diag);
  border-radius: 3px;
  opacity: 0.7;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .section-header {
    grid-template-columns: 1fr;
  }

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

  .portfolio-card.full-width {
    grid-column: auto;
  }

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

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

  .about-stats .stat-cell:last-child {
    grid-column: 1 / -1;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .tech-list {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-stats .stat-cell:last-child {
    grid-column: auto;
  }

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

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta {
    text-align: left;
  }
}
