* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #05030a;
  --bg-panel: rgba(24, 18, 30, 0.48);
  --bg-panel-strong: rgba(32, 20, 35, 0.68);

  --orange: #ff6a1a;
  --gold: #ffb347;
  --red: #b91c1c;
  --blue: #172554;

  --text-main: #fff7ed;
  --text-soft: #d6c7bd;
  --text-muted: #a89a92;

  --border-orange: rgba(255, 106, 26, 0.24);
  --border-gold: rgba(255, 179, 71, 0.22);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% 12%, rgba(249,115,22,0.18), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(185,28,28,0.28), transparent 30%),
    radial-gradient(circle at 15% 35%, rgba(185,28,28,0.12), transparent 40%),
    radial-gradient(circle at 65% 88%, rgba(30,64,175,0.18), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.85), transparent 55%),
    linear-gradient(135deg, #000000 0%, #0f0620 38%, #0a0314 68%, #000000 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(147,197,253,0.55) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(249,115,22,0.35) 1px, transparent 1.5px);
  background-size: 120px 120px, 220px 220px, 340px 340px;
  background-position: 0 0, 80px 120px, 160px 40px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(249,115,22,0.10), transparent 42%),
    radial-gradient(circle at 25% 72%, rgba(37,99,235,0.12), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.68), transparent 62%);
  filter: blur(120px);
}

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

::selection {
  background: rgba(249, 115, 22, 0.38);
  color: #ffffff;
}

.navbar {
  height: 78px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(5, 3, 10, 0.88),
    rgba(5, 3, 10, 0.42)
  );
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 106, 26, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(249,115,22,0.22);
  backdrop-filter: blur(12px);
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(249,115,22,0.45))
    drop-shadow(0 0 16px rgba(239,68,68,0.20))
    brightness(1.15);
  transition: 0.3s ease;
}

.logo img:hover {
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 10px rgba(249,115,22,0.7))
    drop-shadow(0 0 20px rgba(239,68,68,0.28))
    brightness(1.3);
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
.nav-actions a {
  color: #e5e7eb;
  font-weight: 800;
  font-size: 14px;
  transition: 0.25s ease;
}

nav a:hover,
.nav-actions a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 18px;
}

main {
  padding: 0 5% 60px;
  position: relative;
  z-index: 1;
}

.section,
.workflow-section,
.failure-section,
.tech-section,
.contact-section {
  margin-top: 64px;
  scroll-margin-top: 100px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 52px;
  align-items: center;
  position: relative;
}

.pill {
  width: fit-content;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(245, 158, 11, 0.30);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 24px rgba(249,115,22,0.08);
}

.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.8);
}

.hero h1 {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: -5px;
  margin: 28px 0;
}

.hero h1 span,
.hero-card-text h2 span {
  color: var(--orange);
}

.hero-summary,
.hero-copy p {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.7;
}

.hero-subline {
  margin-top: 14px;
  color: #fbbf24;
  font-size: 16px;
  font-weight: 800;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin: 34px 0 34px;
}

.btn-primary,
.btn-secondary {
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: #020617;
  background: linear-gradient(135deg, var(--orange), var(--gold), var(--red));
  box-shadow: 0 0 24px rgba(249,115,22,0.24);
}

.btn-secondary {
  color: var(--gold);
  border: 1px solid rgba(249,115,22,0.65);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(249,115,22,0.28);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 16px;
  max-width: 790px;
}

.stats div {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(249, 115, 22, 0.24);
  backdrop-filter: blur(16px);
  box-shadow:
    0 0 24px rgba(249, 115, 22, 0.07),
    inset 0 0 24px rgba(255,255,255,0.025);
}

.stats strong {
  display: block;
  color: var(--orange);
  font-size: 28px;
  margin-bottom: 6px;
}

.stats span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-card {
  position: relative;
  min-height: 610px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(249,115,22,0.42);
  background:
    radial-gradient(circle at 25% 20%, rgba(249,115,22,0.20), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(37,99,235,0.18), transparent 44%),
    linear-gradient(135deg, rgba(15,23,42,0.78), rgba(2,6,23,0.96));
  box-shadow:
    0 0 70px rgba(249,115,22,0.18),
    0 0 110px rgba(37,99,235,0.10),
    0 34px 90px rgba(0,0,0,0.72),
    inset 0 0 48px rgba(255,255,255,0.035);
  transform: none;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-card:hover {
  border-color: rgba(245,158,11,0.66);
  box-shadow:
    0 0 90px rgba(249,115,22,0.24),
    0 0 130px rgba(37,99,235,0.13),
    0 40px 110px rgba(0,0,0,0.78),
    inset 0 0 54px rgba(255,255,255,0.045);
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: contrast(1.08) saturate(0.98);
  transform: scale(1);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.hero-card:hover img {
  transform: scale(1.045);
  filter: contrast(1.12) saturate(1.04);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2,6,23,0.50) 42%, transparent 72%),
    linear-gradient(0deg, rgba(2,6,23,0.92) 0%, transparent 62%),
    radial-gradient(circle at 30% 40%, rgba(249,115,22,0.16), transparent 60%);
}

.hero-card-text {
  position: absolute;
  left: 34px;
  bottom: 42px;
  z-index: 2;
  max-width: 560px;
}

.hero-card-text span {
  color: var(--gold);
  font-weight: 900;
}

.hero-card-text h2 {
  margin: 10px 0;
  font-size: 38px;
  letter-spacing: -2px;
}

.hero-card-text p {
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.6;
}

.section-head {
  margin-bottom: 32px;
}

.section-head span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 900;
}

.section-head h2,
.contact-section h2 {
  font-size: 38px;
  margin: 10px 0 0;
  letter-spacing: -1.5px;
}

.section-head p {
  max-width: 900px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 16px;
}

.system-card,
.experience-grid div,
.workflow-map,
.tech-grid,
.contact-section,
.timeline-item,
.failure-card,
.education-card {
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 50px rgba(2, 6, 23, 0.45),
    inset 0 0 30px rgba(255,255,255,0.025);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.system-card {
  position: relative;
  min-height: 430px;
  padding: 28px;
  transition: 0.25s ease;
  overflow: hidden;
}

.system-card::before,
.workflow-node::before,
.experience-grid div::before,
.timeline-item::before,
.failure-card::before,
.education-card::before,
.tech-grid div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(249,115,22,0.42),
    transparent 45%,
    rgba(37,99,235,0.26),
    rgba(239,68,68,0.16)
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.system-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245,158,11,0.75);
  box-shadow:
    0 0 34px rgba(249,115,22,0.20),
    0 0 66px rgba(37,99,235,0.10);
}

.card-number {
  color: var(--orange);
  font-weight: 900;
  margin-bottom: 28px;
  font-size: 13px;
  letter-spacing: 1px;
}

.system-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 14px;
}

.system-card p {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 15px;
}

.case-problem {
  color: #fecaca !important;
  font-size: 14px !important;
  margin-bottom: 12px;
}

.case-structure {
  margin: 12px 0;
  padding-left: 16px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.case-structure li {
  margin-bottom: 7px;
}

.case-impact {
  margin-top: 12px;
  color: #86efac !important;
  font-size: 13px !important;
}

.case-failure {
  margin-top: 10px;
  color: #fbbf24 !important;
  font-size: 12px !important;
}

.chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.chips span,
.tech-grid span {
  border: 1px solid rgba(249, 115, 22, 0.42);
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.workflow-rail {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 24px 0 64px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(24, 18, 30, 0.38);
  border: 1px solid rgba(255, 106, 26, 0.16);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 50px rgba(255,106,26,0.08),
    inset 0 0 30px rgba(255,255,255,0.025);
}

.rail-node {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(255, 106, 26, 0.32);
  background: rgba(5, 3, 10, 0.58);
  white-space: nowrap;
  transition: 0.2s ease;
}

.rail-node:hover {
  border-color: rgba(249,115,22,0.65);
  box-shadow: 0 0 16px rgba(249,115,22,0.15);
}

.rail-node.decision {
  border-radius: 14px;
  transform: rotate(45deg);
  padding: 16px;
}

.rail-node.decision::first-letter {
  transform: rotate(-45deg);
}

.rail-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,106,26,0.18), rgba(255,179,71,0.7), rgba(255,106,26,0.18));
  box-shadow: 0 0 12px rgba(255,106,26,0.35);
}

.workflow-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.workflow-node {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(245, 158, 11, 0.16);
  overflow: hidden;
  transition: 0.2s ease;
}

.workflow-node:hover {
  border-color: rgba(249,115,22,0.45);
  box-shadow: 0 0 20px rgba(249,115,22,0.12);
}

.workflow-node strong {
  display: block;
  color: var(--gold);
  margin-bottom: 10px;
}

.workflow-node p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.connector {
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 28px;
  text-shadow: 0 0 12px var(--orange);
  animation: pulseFlow 1.8s ease-in-out infinite;
}

@keyframes pulseFlow {
  0%, 100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.failure-section {
  margin-top: 64px;
  margin-bottom: 64px;
}

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

.failure-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  transition: 0.2s ease;
}

.failure-card:hover {
  border-color: rgba(249,115,22,0.45);
  box-shadow: 0 0 24px rgba(249,115,22,0.12);
}

.failure-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  margin-bottom: 18px;
  color: var(--gold);
  border: 1px solid rgba(249,115,22,0.35);
  background: rgba(2,6,23,0.52);
  box-shadow: 0 0 18px rgba(249,115,22,0.10);
}

.failure-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

.failure-card p {
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.experience-grid div {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: 0.2s ease;
}

.experience-grid div:hover {
  border-color: rgba(249,115,22,0.45);
  box-shadow: 0 0 20px rgba(249,115,22,0.12);
}

.experience-grid h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.experience-grid strong {
  color: var(--gold);
  font-size: 13px;
}

.experience-grid p {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 18px;
  position: relative;
}

.timeline-item {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-left: 3px solid rgba(249,115,22,0.75);
  transition: 0.2s ease;
}

.timeline-item:hover {
  border-left-color: rgba(249,115,22,0.95);
  box-shadow: 0 0 24px rgba(249,115,22,0.12);
}

.timeline-date,
.date {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.timeline-item h4 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  line-height: 1.5;
}

.timeline-item p {
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

.timeline-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 14px;
}

.timeline-item li {
  margin-bottom: 6px;
}

.tech-grid {
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
}

.tech-grid div {
  position: relative;
  min-height: 112px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 16px 10px;
  background: rgba(15, 23, 42, 0.42);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: 0.25s ease;
}

.tech-grid div:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.5);
  box-shadow:
    0 0 24px rgba(249,115,22,0.20),
    0 0 36px rgba(37,99,235,0.08);
}

.tech-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(249,115,22,0.20))
    brightness(1.08);
  transition: 0.25s ease;
}

.tech-grid div:hover img {
  transform: scale(1.14);
  filter:
    drop-shadow(0 0 12px rgba(249,115,22,0.45))
    brightness(1.2);
}

.tech-grid span {
  margin-top: 8px;
  text-align: center;
}

.education-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  transition: 0.2s ease;
}

.education-card:hover {
  border-color: rgba(249,115,22,0.45);
  box-shadow: 0 0 24px rgba(249,115,22,0.12);
}

.education-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.education-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.contact-section {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  transition: 0.2s ease;
}

.contact-section:hover {
  border-color: rgba(249,115,22,0.45);
  box-shadow: 0 0 30px rgba(249,115,22,0.12);
}

.contact-section p {
  color: var(--text-soft);
  font-size: 17px;
}

.contact-section a {
  color: var(--gold);
  font-weight: 900;
}

.contact-details p {
  margin: 0 0 12px;
}

@media (max-width: 1200px) {
  .systems-grid,
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .workflow-map {
    grid-template-columns: 1fr;
  }

  .connector {
    transform: rotate(90deg);
  }
}

@media (max-width: 900px) {
  .workflow-rail {
    grid-template-columns: 1fr;
  }

  .rail-line {
    width: 1px;
    height: 28px;
    margin: 0 auto;
  }

  .rail-node {
    text-align: center;
  }

  .rail-node.decision {
    transform: none;
    border-radius: 999px;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .hero-card {
    min-height: 560px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .navbar {
    height: auto;
    padding: 18px 5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .logo img {
    height: 36px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .hero h1 {
    letter-spacing: -3px;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .stats div {
    padding: 16px 14px;
  }

  .systems-grid,
  .experience-grid,
  .failure-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    object-position: 62% center;
  }

  .hero-card-text {
    left: 24px;
    right: 24px;
    bottom: 32px;
  }

  .hero-card-text h2 {
    font-size: 30px;
  }

  .hero-overlay {
    top: 16px;
    right: 16px;
  }

  .section-head h2,
  .contact-section h2 {
    font-size: 32px;
  }
}
