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

html, body {
  min-height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Page wrapper ── */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 10% 40%, rgba(91, 91, 214, 0.45) 0%, transparent 100%),
    radial-gradient(ellipse 45% 60% at 88% 15%, rgba(67, 97, 238, 0.3) 0%, transparent 100%),
    radial-gradient(ellipse 55% 45% at 55% 90%, rgba(37, 37, 120, 0.55) 0%, transparent 100%),
    linear-gradient(160deg, #07081f 0%, #0a0c2e 40%, #05060f 100%);
}

/* ── Grid overlay ── */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Ambient orbs ── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.06); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: clamp(220px, 50vw, 480px);
  height: clamp(220px, 50vw, 480px);
  background: rgba(91, 91, 214, 0.22);
  top: -100px;
  left: -80px;
  animation-delay: 0s;
}

.orb-2 {
  width: clamp(160px, 35vw, 320px);
  height: clamp(160px, 35vw, 320px);
  background: rgba(67, 97, 238, 0.16);
  top: 30%;
  right: -60px;
  animation-delay: 4s;
}

.orb-3 {
  width: clamp(140px, 30vw, 280px);
  height: clamp(140px, 30vw, 280px);
  background: rgba(100, 120, 255, 0.1);
  bottom: 60px;
  left: 35%;
  animation-delay: 7s;
}

/* ── Layout ── */
.layout {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 20px 18px;
}

@media (min-width: 480px) {
  .layout { padding: 28px 28px; }
}

@media (min-width: 768px) {
  .layout { padding: 36px 40px; }
}

@media (min-width: 1024px) {
  .layout { padding: 40px 48px; }
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* Logo wrapper */
.logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes wheel-spin {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(360deg); }
  55%  { transform: rotate(360deg); }
  80%  { transform: rotate(720deg); }
  100% { transform: rotate(720deg); }
}

.logo-img {
  height: clamp(44px, 12vw, 72px);
  width: auto;
  object-fit: contain;
  display: block;
  animation: wheel-spin 6s ease-in-out infinite;
  transform-origin: center center;
}

@media (min-width: 480px) {
  .logo-img { height: clamp(52px, 9vw, 72px); }
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-wordmark-name {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.header-wordmark-sub {
  font-size: clamp(0.58rem, 1.2vw, 0.68rem);
  font-weight: 500;
  color: rgba(180, 190, 255, 1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.header-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 210, 255, 1);
  padding: 5px 12px;
  border: 1px solid rgba(91, 91, 214, 0.4);
  border-radius: 99px;
  background: rgba(91, 91, 214, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  padding: 40px 0;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  main { gap: 40px; padding: 52px 0; }
}

@media (min-width: 1024px) {
  main { gap: 48px; padding: 64px 0; }
}

/* ── Headline ── */
@keyframes reveal-up {
  0%   { opacity: 0; transform: translateY(36px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes reveal-sub {
  0%   { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.headline {
  width: 100%;
  max-width: 768px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-size: clamp(1.55rem, 6.5vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  letter-spacing: -0.03em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.reveal-line {
  display: block;
  animation: reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-line:nth-child(1) { animation-delay: 0.1s; }
.reveal-line:nth-child(2) { animation-delay: 0.35s; }

/* ── Circled word ── */
@keyframes border-pop {
  0%   { transform: scale(0.75); opacity: 0; border-color: transparent; }
  65%  { transform: scale(1.07); opacity: 1; border-color: rgba(255, 255, 255, 0.9); }
  100% { transform: scale(1);    opacity: 1; border-color: rgba(255, 255, 255, 0.75); }
}

.circled-word {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  padding: 2px 14px 8px;
  font-style: italic;
  position: relative;
  top: -2px;
  animation: border-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.65s;
}

@media (min-width: 640px) {
  .circled-word { padding: 2px 22px 8px; }
}

.reveal-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 3.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  max-width: 512px;
  width: 100%;
  margin: 0 auto;
  padding: 0 4px;
  animation: reveal-sub 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.65s;
}

@media (min-width: 480px) {
  .reveal-sub { padding: 0; font-size: clamp(1rem, 2.5vw, 1.25rem); }
}

/* ── Countdown ── */
.countdown {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

@media (min-width: 480px) {
  .countdown { gap: 14px; }
}

@media (min-width: 640px) {
  .countdown { gap: 20px; }
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  max-width: 128px;
  aspect-ratio: 1;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s ease;
  padding: 8px 4px;
}

.countdown-card:hover {
  border-color: rgba(91, 91, 214, 0.45);
}

.countdown-value {
  font-size: clamp(1.4rem, 6vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.countdown-label {
  font-size: clamp(0.55rem, 2vw, 0.8rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Sectors ── */
.sectors-block {
  width: 100%;
  max-width: 896px;
  text-align: left;
  min-width: 0;
}

.sectors-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 190, 255, 0.65);
  text-align: center;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .sectors-label { margin-bottom: 20px; }
}

.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: 0;
}

@media (min-width: 480px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .sectors-grid { grid-template-columns: repeat(4, 1fr); }
}

.sector-col {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-right: none;
  position: relative;
  cursor: default;
  transition: background 0.22s ease;
}

.sector-col:last-child { border-bottom: none; }

.sector-col::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.22s ease;
}

.sector-col:hover { background: rgba(91, 91, 214, 0.12); }
.sector-col:hover::after { background: rgba(91, 91, 214, 0.55); }

@media (min-width: 480px) {
  .sector-col {
    padding: 22px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .sector-col:nth-child(2n) { border-right: none; }
  .sector-col:nth-last-child(-n+2):nth-child(odd),
  .sector-col:nth-last-child(-n+1) { border-bottom: none; }
}

@media (min-width: 900px) {
  .sector-col {
    padding: 28px 24px;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: none;
  }
  .sector-col:last-child { border-right: none; }
  .sector-col::after { left: 24px; right: 24px; }
}

.sector-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(150, 170, 255, 0.65);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.sector-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .sector-name { font-size: 1.2rem; }
}

.sector-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  font-weight: 400;
}

@media (min-width: 640px) {
  .sector-desc { font-size: 0.875rem; }
}

/* ── Email CTA ── */
.email-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.email-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: transparent;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease;
  word-break: break-all;
}

@media (min-width: 640px) {
  .email-cta {
    gap: 10px;
    padding: 14px 32px;
    font-size: 1.15rem;
    word-break: normal;
  }
}

.email-cta:hover { transform: translateY(-2px); }

.email-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

@media (min-width: 640px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
    padding-right: 72px;
  }
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-linkedin:hover {
  color: rgba(150, 170, 255, 1);
  transform: translateY(-1px);
}

.footer-linkedin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}
