/* ============================================================
   Orbitelix — Coming Soon
   Stylesheet
   ------------------------------------------------------------
   Sections
     1. Design tokens (CSS custom properties)
     2. Reset & base
     3. Background (canvas, orbits, glows, grid)
     4. Layout (page, header, footer)
     5. Hero (eyebrow, title, lead)
     6. Services
     7. CTA / button
     8. Animations & motion preferences
     9. Responsive (mobile-first → desktop)
   ============================================================ */


/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  /* Brand palette — dark technological background with electric blues */
  --color-bg-0:        #04070d;
  --color-bg-1:        #070b14;
  --color-bg-2:        #0b1322;
  --color-surface:     rgba(255, 255, 255, 0.04);
  --color-surface-2:   rgba(255, 255, 255, 0.06);
  --color-border:      rgba(255, 255, 255, 0.08);
  --color-border-2:    rgba(0, 194, 255, 0.25);

  --color-text:        #e7eef7;
  --color-text-muted:  #9aa7bd;
  --color-text-dim:    #6c7a92;

  --color-accent:      #00c2ff;   /* electric blue */
  --color-accent-2:    #5b8cff;   /* deep blue */
  --color-accent-3:    #7df9ff;   /* cyan highlight */

  /* Effects */
  --shadow-soft:   0 10px 40px -12px rgba(0, 194, 255, 0.35);
  --shadow-card:   0 8px 30px -10px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-sans:     "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display:  "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Motion */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --container:     1180px;
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
}


/* ============================================================
   2. Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg-0);
  /* Layered base gradient so the page already feels deep before the canvas paints */
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 194, 255, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(91, 140, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--color-bg-0) 0%, var(--color-bg-1) 50%, var(--color-bg-0) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

::selection {
  background: rgba(0, 194, 255, 0.35);
  color: #fff;
}


/* ============================================================
   3. Background (orbits, glows, grid, canvas)
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Decorative orbital rings, centered, very subtle */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(0, 194, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* Soft conic highlight along the ring edge */
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(0, 194, 255, 0.10) 60deg,
      transparent 120deg,
      transparent 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent 0, transparent calc(50% - 1.2px), #000 calc(50% - 1.2px), #000 50%, transparent 50%);
          mask: radial-gradient(circle, transparent 0, transparent calc(50% - 1.2px), #000 calc(50% - 1.2px), #000 50%, transparent 50%);
  opacity: 0.9;
}

.orbit--1 {
  width: 520px;
  height: 520px;
  animation: spin 38s linear infinite;
}

.orbit--2 {
  width: 820px;
  height: 820px;
  border-color: rgba(91, 140, 255, 0.10);
  animation: spin 60s linear infinite reverse;
}

.orbit--3 {
  width: 1180px;
  height: 1180px;
  border-color: rgba(125, 249, 255, 0.06);
  animation: spin 90s linear infinite;
}

/* Radial glows */
.glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.glow--top {
  top: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.30), transparent 60%);
}

.glow--bottom {
  bottom: -30vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.30), transparent 60%);
}

/* Subtle technological grid */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  /* Fade out at the edges so the grid doesn't feel boxed in */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  opacity: 0.6;
}


/* ============================================================
   4. Layout
   ============================================================ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 22px 36px;
  display: flex;
  flex-direction: column;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  transition: opacity 0.3s var(--ease-out);
}

.brand:hover {
  opacity: 0.9;
}

.brand__mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(0, 194, 255, 0.35));
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.9);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
}

.footer__copy {
  margin: 0;
}

.footer__tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
}

.footer__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(0, 194, 255, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}


/* ============================================================
   5. Hero
   ============================================================ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 0 32px;
  max-width: 880px;
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--color-accent-3);
  opacity: 0.85;
}

.hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 6.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: linear-gradient(90deg, var(--color-accent-3) 0%, var(--color-accent) 45%, var(--color-accent-2) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.hero__lead {
  margin: 0 0 36px;
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}


/* ============================================================
   6. Services
   ============================================================ */
.services {
  width: 100%;
  margin: 0 0 40px;
}

.services__list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  /* Reveal animation start state (toggled by JS via .is-visible) */
  opacity: 0;
  transform: translateY(14px);
}

.service.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-2);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-card);
}

.service__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--color-accent);
  background: rgba(0, 194, 255, 0.10);
  border: 1px solid rgba(0, 194, 255, 0.20);
  flex-shrink: 0;
}

.service__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================================
   7. CTA / button
   ============================================================ */
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn {
  --btn-bg:      linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #04121a;
  background: var(--btn-bg);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    filter 0.3s var(--ease-out);
}

.btn::before {
  /* Soft halo that lights up on hover */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(125, 249, 255, 0.6), rgba(91, 140, 255, 0.6));
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn:hover::before {
  opacity: 0.7;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-3);
  outline-offset: 3px;
}

.btn__icon {
  flex-shrink: 0;
}

.cta__note {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  letter-spacing: 0.2px;
}


/* ============================================================
   8. Animations & motion preferences
   ============================================================ */
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.4); opacity: 0.4; }
}

/* Hero entry animation */
.hero__eyebrow,
.hero__title,
.hero__lead,
.cta {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s var(--ease-out) forwards;
}

.hero__eyebrow { animation-delay: 0.05s; }
.hero__title   { animation-delay: 0.18s; }
.hero__lead    { animation-delay: 0.32s; }
.cta           { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .orbit,
  .status__dot,
  .footer__pulse {
    animation: none !important;
  }
}


/* ============================================================
   9. Responsive (mobile-first → desktop)
   ============================================================ */

/* Small phones tweak */
@media (max-width: 380px) {
  .status__text { display: none; }
  .status { padding: 8px; }
}

/* Tablet portrait+ */
@media (min-width: 600px) {
  .page {
    padding: 36px 28px 40px;
  }

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

  .cta {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
}

/* Tablet landscape / small desktop */
@media (min-width: 900px) {
  .page {
    padding: 44px 40px 48px;
  }

  .hero {
    padding: 80px 0 48px;
  }

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

/* Desktop */
@media (min-width: 1200px) {
  .services__list {
    grid-template-columns: repeat(5, 1fr);
  }
}
