/* api.caitech.ro — minimal landing
   CAI Technology · 2026
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #02030a;
  color: #e5e7eb;
  overflow: hidden;
  position: relative;
}
::selection { background: rgba(168, 85, 247, 0.35); color: #fff; }

:root {
  --c-cyan: #22d3ee;
  --c-blue: #0ea5e9;
  --c-purple: #a855f7;
  --c-pink: #ec4899;
  --c-green: #22c55e;
  --c-red: #ef4444;
}

/* Animated background */
#bg {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse at top left, rgba(14, 165, 233, 0.20) 0%, transparent 45%),
    radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.20) 0%, transparent 45%),
    radial-gradient(ellipse at center, rgba(236, 72, 153, 0.08) 0%, transparent 35%),
    linear-gradient(135deg, #02030a 0%, #0a0a1f 50%, #02030a 100%);
  background-size: 200% 200%;
  animation: bgshift 18s ease-in-out infinite;
}
@keyframes bgshift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Grid overlay */
#grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

/* Floating orbs */
.orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); opacity: 0.55; pointer-events: none; z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.orb-1 { width: 480px; height: 480px; background: var(--c-blue);   top: -120px;  left: -120px; }
.orb-2 { width: 580px; height: 580px; background: var(--c-purple); bottom: -180px; right: -180px; animation-delay: -5s; }
.orb-3 { width: 360px; height: 360px; background: var(--c-pink);   top: 40%; left: 60%; animation-delay: -2.5s; opacity: 0.35; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-25px, 40px) scale(0.92); }
}

/* Particle canvas */
#particles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  mix-blend-mode: screen;
}

/* Hero — full viewport, single screen */
.hero {
  height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 600;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.9s cubic-bezier(.4,0,.2,1) both;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); }  to { opacity: 1; transform: translateY(0); } }

h1.hero-title {
  font-size: clamp(3.5rem, 14vw, 11rem);
  font-weight: 900; letter-spacing: -0.045em;
  line-height: 0.9;
  background: linear-gradient(135deg, #fff 0%, #a5f3fc 35%, #c084fc 70%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
  animation: titleGlow 4s ease-in-out infinite alternate, fadeInUp 1s cubic-bezier(.4,0,.2,1) both;
}
@keyframes titleGlow {
  from { filter: drop-shadow(0 0 25px rgba(34, 211, 238, 0.45)); }
  to   { filter: drop-shadow(0 0 50px rgba(168, 85, 247, 0.7)); }
}

.hero-sub {
  margin-top: 1.5rem; max-width: 600px;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 300;
  color: rgba(229, 231, 235, 0.75); line-height: 1.6;
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1) 0.3s both;
}
.hero-sub strong {
  color: #fff; font-weight: 700;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

#typewriter {
  margin-top: 2rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: rgba(103, 232, 249, 0.85);
  letter-spacing: 0.32em; text-transform: uppercase;
  min-height: 1.5em;
  animation: fadeInUp 1.4s cubic-bezier(.4,0,.2,1) 0.6s both;
}
#typewriter::after {
  content: '▊'; margin-left: 4px;
  animation: blink 1s step-start infinite; color: var(--c-cyan);
}
@keyframes blink { 50% { opacity: 0; } }

.status-line {
  margin-top: 3rem;
  animation: fadeInUp 1.6s cubic-bezier(.4,0,.2,1) 0.9s both;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.7);
}
#status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: pulse 1.6s ease-in-out infinite;
}
#status-dot.ok  { background: var(--c-green); box-shadow: 0 0 12px var(--c-green); }
#status-dot.err { background: var(--c-red);   box-shadow: 0 0 12px var(--c-red); }

/* Footer */
footer.foot {
  position: fixed; bottom: 1.25rem; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(229, 231, 235, 0.4);
  z-index: 1;
}
footer.foot .copy a {
  color: rgba(229, 231, 235, 0.55); text-decoration: none;
  transition: color 0.2s;
}
footer.foot .copy a:hover { color: #fff; }
#clock {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.65rem; letter-spacing: 0.18em;
  color: var(--c-cyan); opacity: 0.7;
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 1.5rem; }
  .eyebrow { font-size: 0.65rem; padding: 0.45rem 1rem; }
  #typewriter { font-size: 0.7rem; letter-spacing: 0.2em; }
  footer.foot { font-size: 0.62rem; bottom: 0.8rem; }
}
