/* =========================================================
   Octapus Solution — Coming Soon
   ========================================================= */

:root {
  --bg:       #05070f;
  --ink:      #f2f6ff;
  --muted:    #8d9bbd;
  --dim:      #5d6a8a;
  --cyan:     #22d3ee;
  --violet:   #8b5cf6;
  --hair:     rgba(255, 255, 255, 0.09);
  --hair-2:   rgba(255, 255, 255, 0.05);

  --pad-x:    clamp(22px, 5vw, 84px);
  --pad-y:    clamp(24px, 4.5vh, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   Ambient background
   ========================================================= */

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
}

.aurora-1 {
  width: 62vw; height: 62vw;
  min-width: 480px; min-height: 480px;
  top: -26vw; left: -18vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.42), transparent 68%);
  animation: float-a 24s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 58vw; height: 58vw;
  min-width: 440px; min-height: 440px;
  bottom: -28vw; right: -16vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 68%);
  animation: float-b 30s ease-in-out infinite alternate;
}

@keyframes float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vw, 5vh, 0) scale(1.18); }
}
@keyframes float-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-6vw, -6vh, 0) scale(1); }
}

/* thin light band along the bottom — grounds the composition */
.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45vh;
  background: linear-gradient(to top,
    rgba(34, 211, 238, 0.10),
    rgba(139, 92, 246, 0.05) 42%,
    transparent 100%);
}

.grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--hair-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-2) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 10%, transparent 75%);
}

/* film grain — kills gradient banding, adds tactility */
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 60% at 50% 45%, transparent 40%, rgba(5, 7, 15, 0.75) 100%);
}

/* =========================================================
   Frame
   ========================================================= */

.frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
}

/* hairline inset rule — print-margin feel */
.frame::before {
  content: "";
  position: absolute;
  inset: calc(var(--pad-y) * 0.55) calc(var(--pad-x) * 0.5);
  border: 1px solid var(--hair-2);
  border-radius: 4px;
  pointer-events: none;
}

.tick {
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  pointer-events: none;
}
.tick.tl { top: calc(var(--pad-y) * 0.55); left: calc(var(--pad-x) * 0.5); border-right: 0; border-bottom: 0; }
.tick.tr { top: calc(var(--pad-y) * 0.55); right: calc(var(--pad-x) * 0.5); border-left: 0;  border-bottom: 0; }
.tick.bl { bottom: calc(var(--pad-y) * 0.55); left: calc(var(--pad-x) * 0.5); border-right: 0; border-top: 0; }
.tick.br { bottom: calc(var(--pad-y) * 0.55); right: calc(var(--pad-x) * 0.5); border-left: 0;  border-top: 0; }

.stage {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 56px);
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hair);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}

.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
}
.wordmark .thin { font-weight: 400; color: var(--muted); margin-left: 6px; }

.meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(12px, 3vh, 40px) 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 7px 16px 7px 13px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #7ce7f7;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  60%  { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

h1 {
  margin: clamp(20px, 3.4vh, 34px) 0 clamp(22px, 3vh, 32px);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 15vw, 11rem);
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

h1 span { display: block; }

/* line 1 solid, line 2 gradient-swept — creates the focal accent
   and finally puts the violet on screen */
.l1 { color: var(--ink); }

.l2 {
  padding-left: clamp(24px, 7vw, 130px);   /* staircase indent */
  background: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 45%, var(--cyan) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep 9s linear infinite;
}

@keyframes sweep {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}

.tagline {
  max-width: 30ch;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tagline em {
  font-style: normal;
  color: var(--cyan);
}

.lede {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.15vw, 1.02rem);
  line-height: 1.72;
}

/* =========================================================
   Capabilities
   ========================================================= */

.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
}

.caps article {
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--hair-2);
  transition: background 0.35s ease;
}
.caps article:last-child { border-right: 0; }
.caps article + article { padding-left: 22px; }
.caps article:hover { background: rgba(255, 255, 255, 0.022); }

.idx {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--cyan);
  opacity: 0.65;
}

.caps h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #cfd9ef;
}

/* =========================================================
   Bottom bar
   ========================================================= */

.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
}

.domain {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  letter-spacing: 0.05em;
  color: var(--ink);
}

.copy {
  font-size: 0.78rem;
  color: var(--dim);
}

/* =========================================================
   Entrance
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
  .caps article { border-bottom: 1px solid var(--hair-2); }
  .caps article:nth-child(2n) { border-right: 0; }
  .caps article:nth-child(2n+1) { padding-left: 0; }
  .caps article:nth-child(2n)   { padding-left: 22px; }
  .caps article:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 560px) {
  .meta { display: none; }
  .tagline { max-width: 100%; }
  .l2 { padding-left: 0; }
  .bottombar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .caps article { padding: 18px 16px 18px 0; }
  .caps article:nth-child(2n) { padding-left: 16px; }
}

@media (max-height: 700px) and (min-width: 900px) {
  h1 { font-size: clamp(3rem, 9vw, 6rem); }
  .lede { display: none; }
}

/* =========================================================
   Motion preference
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
