:root {
  --red: #ff1a1a;
  --red-dark: #8a0000;
  --gold: #ffc23b;
  --green: #33ff66;
  --cyan: #33d6ff;
  --bg: #070203;
  --panel: rgba(10, 4, 8, 0.42);
  --glass-blur: 12px;
  --text: #f2f2f2;
  --chamfer: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HERO — compact, badge scaled down */
.hero {
  position: relative;
  min-height: clamp(420px, 62vh, 560px);
  background:
    url("/hero-bg.jpg") center 48% / min(780px, 92vw) auto no-repeat,
    radial-gradient(ellipse 80% 50% at 50% 55%, rgba(140, 10, 10, 0.35) 0%, transparent 60%),
    #000;
  display: flex;
  align-items: flex-end;
  padding-bottom: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100px;
  background: linear-gradient(transparent, var(--bg));
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 28px 16px 12px;
  align-items: end;
}

.hero-left h1 {
  font-size: clamp(0.88rem, 1.85vw, 1.38rem);
  line-height: 1.06;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}

.hero-left h1 span { display: block; }
.hero-left h1 .big { font-size: 1.12em; }

.hero-left h1 .red {
  color: var(--red);
  text-shadow: 0 0 18px var(--red);
}

.pills {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  width: max-content;
  max-width: 100%;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.pill i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  background: radial-gradient(circle, #0a3a1a, #020a05);
  color: var(--green);
  font-style: normal;
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

.hero-right {
  text-align: left;
  justify-self: end;
  align-self: end;
  max-width: 220px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-shadow: 0 0 12px #000;
}

.hero-right p { margin-bottom: 12px; line-height: 1.55; }
.hero-right p strong { display: block; font-weight: 700; color: #fff; }

/* Panels — light glass + touch shake */
@keyframes card-shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-2px, 0, 0) rotate(-0.35deg); }
  40% { transform: translate3d(2px, 0, 0) rotate(0.35deg); }
  60% { transform: translate3d(-1px, 0, 0); }
  80% { transform: translate3d(1px, 0, 0); }
}

.panel {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 18px auto;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 0, 0, 0.06) inset;
  clip-path: polygon(
    var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
    100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%,
    var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer)
  );
  transition: background 0.25s, box-shadow 0.25s;
  cursor: default;
}

.panel:hover,
.panel:active,
.flag:hover,
.flag:active,
.benefit:hover,
.benefit:active,
.pill:hover,
.pill:active,
.flow:hover,
.flow:active,
.formula:hover,
.formula:active,
.checks:hover,
.checks:active {
  animation: card-shake 0.38s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--cyan), #a64dff, var(--red));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  opacity: 0.8;
}

.title {
  text-align: center;
  margin-bottom: 4px;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 194, 59, 0.45);
}

.subtitle {
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-family: "Barlow Condensed", sans-serif;
  margin-bottom: 16px;
  color: #ddd;
}

/* Global Presence */
.flags {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: start;
}

.flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.flag-frame {
  width: 100%;
  max-width: 100px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.flag b {
  display: block;
  margin-top: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.tagline {
  text-align: center;
  margin-top: 14px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.tagline span { color: var(--gold); margin: 0 6px; }

/* What is AI */
.ai {
  display: grid;
  grid-template-columns: 140px 1fr 190px;
  gap: 18px;
  align-items: center;
}

.ai-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(51, 214, 255, 0.35);
  max-width: 140px;
}

.ai-img img { width: 100%; display: block; }

.ai h2 {
  font-size: clamp(1rem, 2vw, 1.45rem);
  text-align: left;
}

.ai h2 span {
  color: var(--green);
  text-shadow: 0 0 10px var(--green);
}

.ai .subtitle {
  text-align: left;
  margin-bottom: 10px;
  font-size: 0.62rem;
}

.ai p {
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px 4px 4px;
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  transition: background 0.2s;
  cursor: default;
}

.benefit i {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-style: normal;
  background: #031a0a;
  color: var(--green);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* History */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 16px;
  text-align: center;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold), #ff8a00, var(--red), #a64dff);
}

.era i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  font-style: normal;
  font-size: 1rem;
  background: #0a0405;
  border: 2px solid var(--c);
  box-shadow: 0 0 12px var(--c);
}

.era h3 {
  font-size: 0.72rem;
  color: var(--c);
  text-shadow: 0 0 8px var(--c);
  margin-bottom: 4px;
}

.era p {
  font-size: 0.68rem;
  color: #ccc;
  line-height: 1.35;
}

.flow {
  margin: 16px auto 0;
  width: max-content;
  max-width: 100%;
  padding: 6px 16px;
  border: 1.5px solid var(--green);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(51, 255, 102, 0.4);
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: center;
  background: rgba(0, 20, 8, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
}

.flow span { color: var(--green); }

/* Message */
.msg {
  display: grid;
  grid-template-columns: 90px 1fr 220px;
  gap: 18px;
  align-items: center;
}

.shield {
  font-size: 3.5rem;
  text-align: center;
  filter: drop-shadow(0 0 14px var(--green));
  line-height: 1;
}

.msg-text strong {
  display: block;
  color: var(--green);
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.msg-text p {
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.msg-text em {
  font-style: normal;
  font-weight: 700;
  color: var(--green);
  font-size: 0.84rem;
}

.checks {
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 0 12px rgba(51, 255, 102, 0.3);
  list-style: none;
  background: rgba(0, 18, 8, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
}

.checks li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.checks li:last-child { margin-bottom: 0; }

.checks li::before {
  content: "✔";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.formula {
  margin: 16px auto 0;
  width: max-content;
  max-width: 100%;
  padding: 6px 18px;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(255, 26, 26, 0.45);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-align: center;
  background: rgba(20, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
}

/* Footer */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.foot-left { text-align: left; }

.foot h3 {
  font-size: 0.85rem;
  color: var(--gold);
}

.foot p {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin-top: 5px;
  line-height: 1.4;
}

.foot-mid p {
  color: var(--gold);
  font-size: 0.65rem;
}

.badge {
  display: inline-block;
  margin: 6px 0;
  padding: 2px 10px;
  font-size: 0.65rem;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
}

.foot a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.quote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.25;
}

.quote b {
  color: var(--gold);
  text-decoration: underline var(--red);
}

.copy {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 16px 24px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
}

.copy span { color: var(--red); }

@media (max-width: 900px) {
  .hero {
    min-height: clamp(380px, 58vh, 480px);
    background-size: min(680px, 96vw) auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 80px;
  }

  .hero-right {
    justify-self: start;
    max-width: none;
  }

  .flags { grid-template-columns: repeat(3, 1fr); }

  .ai, .msg, .foot { grid-template-columns: 1fr; }

  .ai-img { max-width: 120px; margin: 0 auto; }

  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }

  .panel { padding: 16px 14px; margin: 14px auto; }

  .foot-left { text-align: center; }

  .shield { font-size: 2.8rem; }
}

@media (max-width: 520px) {
  .flags { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .panel:hover,
  .panel:active,
  .flag:hover,
  .flag:active,
  .benefit:hover,
  .benefit:active,
  .pill:hover,
  .pill:active,
  .flow:hover,
  .flow:active,
  .formula:hover,
  .formula:active,
  .checks:hover,
  .checks:active {
    animation: none;
  }
}
