/* =========================================================
   OptixFusion — Coming Soon / Under Maintenance
   Plain CSS port of the original React/Tailwind design.
   Design tokens, fonts and animations kept identical.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --radius: 0.75rem;
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --brand: #104CBA;
  --brand-2: #2E6BE6;

  --background: #FFFFFF;
  --foreground: #0A0A0A;
  --card: #F4F6FB;
  --card-foreground: #0A0A0A;
  --primary: #104CBA;
  --primary-foreground: #FFFFFF;
  --secondary: #E8EEFB;
  --secondary-foreground: #0A0A0A;
  --accent: #104CBA;
  --accent-foreground: #FFFFFF;
  --muted: #F4F6FB;
  --muted-foreground: #4B5563;
  --border: rgba(10, 10, 10, 0.12);
  --ring: #104CBA;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* ---------- Base / reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
}

/* ---------- Layout helpers ---------- */
.page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
}

.container {
  margin-inline: auto;
  max-width: 1400px;
  padding-inline: 1.5rem; /* px-6 */
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem; /* md:px-10 */
  }
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem; /* py-4 */
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 1rem; /* gap-4 */
}

.topbar__logo {
  height: 1.5rem; /* h-6 */
  width: auto;
}

.logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topbar__tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(10, 10, 10, 0.5);
}

.btn-hello {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 */
  border-radius: 9999px;
  background: var(--brand);
  padding: 0.5rem 1rem; /* py-2 px-4 */
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #fff;
  transition: background-color 0.2s ease;
}

.btn-hello:hover {
  background: var(--ink);
}

.btn-hello__dot {
  height: 0.375rem; /* h-1.5 */
  width: 0.375rem; /* w-1.5 */
  border-radius: 9999px;
  background: #fff;
}

@media (min-width: 768px) {
  .topbar__logo {
    height: 1.75rem; /* md:h-7 */
  }
  .topbar__tag {
    display: inline;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
}

/* Blueprint grid */
.hero-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Big blue diagonal blob */
.hero-blob {
  pointer-events: none;
  position: absolute;
  right: -8rem; /* -right-32 */
  top: -8rem; /* -top-32 */
  height: 520px;
  width: 520px;
  border-radius: 9999px;
  opacity: 0.9;
  filter: blur(2px);
  background: radial-gradient(
    closest-side,
    var(--brand) 0%,
    var(--brand) 55%,
    transparent 70%
  );
}

/* Soft drifting orbs */
.hero-orb {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px); /* blur-3xl */
}

.hero-orb--1 {
  left: -6rem; /* -left-24 */
  top: 33.3333%; /* top-1/3 */
  height: 320px;
  width: 320px;
  opacity: 0.4;
  background: radial-gradient(
    closest-side,
    rgba(46, 107, 230, 0.45) 0%,
    transparent 70%
  );
  animation-delay: -6s;
}

.hero-orb--2 {
  bottom: 0;
  right: 25%; /* right-1/4 */
  height: 260px;
  width: 260px;
  opacity: 0.3;
  background: radial-gradient(
    closest-side,
    rgba(16, 76, 186, 0.35) 0%,
    transparent 70%
  );
  animation-delay: -12s;
}

/* Floating blueprint markers */
.hero-marker,
.hero-marker-slow {
  pointer-events: none;
  position: absolute;
  color: var(--brand);
}

.marker-1 { left: 12%; top: 22%; animation-delay: -2s; }
.marker-2 { left: 28%; top: 55%; animation-delay: -5s; }
.marker-3 { right: 18%; top: 18%; animation-delay: -8s; }
.marker-4 { right: 8%; top: 60%; animation-delay: -11s; }
.marker-5 { bottom: 20%; left: 18%; animation-delay: -14s; }

/* Rotating blueprint rings */
.hero-ring {
  pointer-events: none;
  position: absolute;
  right: -4rem; /* -right-16 */
  top: 25%; /* top-1/4 */
  height: 340px;
  width: 340px;
  border-radius: 9999px;
  border: 1px dashed rgba(16, 76, 186, 0.2);
  opacity: 0.6;
}

.hero-ring-reverse {
  pointer-events: none;
  position: absolute;
  right: -2rem; /* -right-8 */
  top: 28%;
  height: 260px;
  width: 260px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 76, 186, 0.15);
  opacity: 0.5;
}

/* Twinkling stars */
.hero-star {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  background: var(--brand);
}

.star-1 { left: 8%; top: 35%; height: 0.375rem; width: 0.375rem; animation-delay: -1s; }
.star-2 { right: 32%; top: 12%; height: 0.25rem; width: 0.25rem; animation-delay: -2.5s; }
.star-3 { bottom: 30%; right: 12%; height: 0.5rem; width: 0.5rem; animation-delay: -3.8s; }
.star-4 { bottom: 38%; left: 42%; height: 0.25rem; width: 0.25rem; animation-delay: -0.6s; }

/* Hero content grid */
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem; /* gap-6 */
  padding-top: 4rem; /* pt-16 */
  padding-bottom: 6rem; /* pb-24 */
}

.hero__left {
  grid-column: span 12 / span 12;
}

.hero__eyebrow {
  margin-bottom: 1.5rem; /* mb-6 */
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(10, 10, 10, 0.55);
}

.hero__eyebrow-line {
  height: 1px;
  width: 2.5rem; /* w-10 */
  background: var(--brand);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-size: clamp(2.75rem, 8vw, 7.5rem);
}

.hero__title span {
  display: block;
}

.hero__title .accent {
  font-style: italic;
  color: var(--brand);
}

.hero__lead {
  margin-top: 2.5rem; /* mt-10 */
  max-width: 48rem; /* max-w-3xl */
}

.hero__lead p {
  font-size: 15px;
  line-height: 1.625;
  color: rgba(10, 10, 10, 0.75);
}

/* Right — info card stack */
.hero__aside {
  grid-column: span 12 / span 12;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* gap-4 */
}

.card {
  border-radius: 1rem; /* rounded-2xl */
  padding: 1.25rem; /* p-5 */
}

.card--outline {
  border: 1px solid rgba(10, 10, 10, 0.12);
  background: #fff;
}

.card--brand {
  background: var(--brand);
  color: #fff;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(10, 10, 10, 0.5);
}

.card--brand .card__meta {
  color: rgba(255, 255, 255, 0.7);
}

.card__meta .live {
  color: var(--brand);
}

.card__title-sm {
  margin-top: 0.75rem; /* mt-3 */
  font-family: var(--font-display);
  font-size: 1.25rem; /* text-xl */
  line-height: 1.25;
}

.card__title-lg {
  margin-top: 0.75rem; /* mt-3 */
  font-family: var(--font-display);
  font-size: 1.875rem; /* text-3xl */
  line-height: 1.25;
}

.card__title-lg .italic {
  font-style: italic;
}

.card__bars {
  margin-top: 1rem; /* mt-4 */
  display: flex;
  gap: 0.25rem; /* gap-1 */
}

.card__bar {
  height: 0.75rem; /* h-3 */
  width: 0.25rem; /* w-1 */
  border-radius: 0.125rem; /* rounded-sm */
}

.card__bar--on { background: #fff; }
.card__bar--off { background: rgba(255, 255, 255, 0.3); }

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px solid rgba(10, 10, 10, 0.15);
  background: var(--ink);
  padding: 1.25rem;
  color: #fff;
  transition: border-color 0.2s ease;
}

.card-link:hover {
  border-color: var(--brand);
}

.card-link__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.5);
}

.card-link__email {
  margin-top: 0.25rem; /* mt-1 */
  font-family: var(--font-display);
  font-size: 1.125rem; /* text-lg */
}

.card-link__arrow {
  color: var(--brand-2);
}

@media (min-width: 768px) {
  .hero__grid {
    padding-top: 6rem; /* md:pt-24 */
    padding-bottom: 8rem; /* md:pb-32 */
  }
  .hero__left {
    grid-column: span 8 / span 8;
  }
  .hero__aside {
    grid-column: span 4 / span 4;
  }
  .hero__lead p {
    font-size: 18px; /* md:text-[18px] */
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  background: #fff;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.5rem; /* py-6 */
}

.footer__text {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(10, 10, 10, 0.5);
}

/* =========================================================
   ANIMATIONS (ported 1:1 from the original stylesheet)
   ========================================================= */
@keyframes blink { 50% { opacity: 0.25; } }

@keyframes rise {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 22px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(24px, -16px); }
  66% { transform: translate(-14px, 12px); }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 0.75; }
}

@keyframes grid-pan {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

@keyframes marker-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-28px) rotate(12deg); opacity: 0.65; }
}

@keyframes marker-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
  50% { transform: translateY(20px) rotate(-10deg); opacity: 0.5; }
}

@keyframes ring-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ring-rotate-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Animation bindings */
.hero-blob {
  animation: float 14s ease-in-out infinite, pulse-soft 10s ease-in-out infinite;
  will-change: transform;
}
.hero-orb {
  animation: drift 18s ease-in-out infinite;
  will-change: transform;
}
.hero-grid {
  animation: grid-pan 24s linear infinite;
  will-change: background-position;
}
.hero-marker {
  animation: marker-float 10s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-marker-slow {
  animation: marker-drift 16s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-ring {
  animation: ring-rotate 30s linear infinite;
  will-change: transform;
}
.hero-ring-reverse {
  animation: ring-rotate-reverse 25s linear infinite;
  will-change: transform;
}
.hero-star {
  animation: twinkle 4s ease-in-out infinite;
  will-change: transform, opacity;
}

.animate-blink {
  animation: blink 1.1s step-end infinite;
}
.animate-rise {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
