/* codecloud.guru — static futuristic landing page */

:root {
  --bg: #050816;
  --bg-soft: #0a1022;
  --card: rgba(11, 18, 39, 0.58);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5f7ff;
  --muted: #8e9ab8;
  --cyan: #65f7ff;
  --blue: #667cff;
  --purple: #a06bff;
  --green: #75ffb3;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(102, 124, 255, 0.14), transparent 36%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

.orb {
  position: fixed;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .18;
  pointer-events: none;
  z-index: -2;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-one {
  top: 12%;
  left: -170px;
  background: var(--blue);
}

.orb-two {
  top: 24%;
  right: -180px;
  background: var(--purple);
  animation-delay: -5s;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5,8,22,.86), rgba(5,8,22,.45));
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

.logo.small {
  font-size: .98rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(101,247,255,.35);
  background: rgba(101,247,255,.06);
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: .76rem;
  box-shadow: 0 0 25px rgba(101,247,255,.10);
}

.accent {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: .88rem;
}

.nav-links a,
.nav-cta {
  transition: .25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9e0f8;
}

.nav-cta:hover {
  border-color: rgba(101,247,255,.42);
  color: var(--cyan);
  background: rgba(101,247,255,.05);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 50px;
  padding-top: 70px;
  padding-bottom: 90px;
}

.hero-copy {
  animation: enterUp .9s ease both;
}

.eyebrow,
.section-label {
  font-family: "JetBrains Mono", monospace;
  color: var(--cyan);
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(117,255,179,.7);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(4rem, 7.4vw, 7.8rem);
  line-height: .89;
  letter-spacing: -.075em;
  max-width: 760px;
}

.gradient-text {
  background: linear-gradient(100deg, #ffffff 0%, var(--cyan) 38%, var(--blue) 70%, var(--purple) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.hero-text {
  max-width: 620px;
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.07rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), #91a7ff);
  color: #041018;
  box-shadow: 0 12px 40px rgba(101,247,255,.12);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px rgba(101,247,255,.22);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: #dce4ff;
  background: rgba(255,255,255,.025);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
}

.hero-meta {
  display: flex;
  gap: 30px;
  margin-top: 44px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.hero-meta div:last-child {
  border-right: 0;
}

.hero-meta strong {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  color: var(--cyan);
}

.hero-meta span {
  color: #b5bfd8;
  font-size: .79rem;
}

.visual-shell {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  animation: enterScale 1.1s .15s ease both;
}

.terminal-card {
  position: relative;
  z-index: 3;
  width: min(100%, 520px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(145deg, rgba(16,25,52,.88), rgba(7,12,29,.83));
  box-shadow:
    0 40px 100px rgba(0,0,0,.38),
    0 0 0 1px rgba(101,247,255,.03) inset,
    0 0 70px rgba(102,124,255,.08);
  backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  animation: terminalFloat 6s ease-in-out infinite alternate;
}

.terminal-top,
.terminal-footer {
  display: flex;
  align-items: center;
}

.terminal-top {
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51607f;
}

.dots span:nth-child(1) { background: #ff6780; }
.dots span:nth-child(2) { background: #ffc55f; }
.dots span:nth-child(3) { background: #69e79e; }

.terminal-title {
  color: #71809f;
  font: 500 .68rem "JetBrains Mono", monospace;
}

.terminal-body {
  min-height: 300px;
  padding: 26px 24px;
  font: 500 .84rem/2 "JetBrains Mono", monospace;
  color: #d7e2ff;
}

.terminal-body p {
  opacity: 0;
  transform: translateY(6px);
  animation: terminalLine .45s ease forwards;
}

.terminal-body p:nth-child(1) { animation-delay: .6s; }
.terminal-body .delay-1 { animation-delay: 1.15s; }
.terminal-body .delay-2 { animation-delay: 1.7s; }
.terminal-body .delay-3 { animation-delay: 2.25s; }
.terminal-body .delay-4 { animation-delay: 2.8s; }
.terminal-body .delay-5 { animation-delay: 3.35s; }
.terminal-body .cursor-line { animation-delay: 3.85s; }

.muted { color: #66718d; }
.ok { color: var(--green); }
.accent-code { color: var(--cyan); }

.status {
  color: var(--green);
  border: 1px solid rgba(117,255,179,.25);
  background: rgba(117,255,179,.07);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .72rem;
  box-shadow: 0 0 16px rgba(117,255,179,.08);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  vertical-align: middle;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

.terminal-footer {
  justify-content: space-between;
  gap: 15px;
  min-height: 46px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: #687690;
  font: 500 .62rem "JetBrains Mono", monospace;
  letter-spacing: .08em;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(101,247,255,.13);
  z-index: 1;
}

.ring-one {
  width: 430px;
  height: 430px;
  animation: spin 22s linear infinite;
}

.ring-two {
  width: 560px;
  height: 560px;
  border-style: dashed;
  border-color: rgba(160,107,255,.12);
  animation: spinReverse 32s linear infinite;
}

.ring::before,
.ring::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.ring-one::before {
  top: 14%;
  left: 14%;
}

.ring-one::after {
  right: 2%;
  bottom: 40%;
  background: var(--purple);
  box-shadow: 0 0 16px var(--purple);
}

.data-chip {
  position: absolute;
  z-index: 5;
  padding: 8px 10px;
  font: 600 .62rem "JetBrains Mono", monospace;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 9px;
  background: rgba(8,13,30,.72);
  backdrop-filter: blur(10px);
  color: #aebbd4;
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}

.chip-one {
  top: 10%;
  right: 5%;
  animation: chipFloat 5s ease-in-out infinite;
}

.chip-two {
  bottom: 13%;
  left: 4%;
  color: var(--cyan);
  animation: chipFloat 6s -2s ease-in-out infinite;
}

.chip-three {
  bottom: 5%;
  right: 15%;
  color: #cfaeff;
  animation: chipFloat 4.7s -1s ease-in-out infinite;
}

.marquee-section {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,.018);
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  width: max-content;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 34px;
  color: #5f6b86;
  font: 600 .69rem "JetBrains Mono", monospace;
  letter-spacing: .13em;
  animation: marquee 25s linear infinite;
}

.marquee-track i {
  color: var(--cyan);
  font-style: normal;
  opacity: .5;
}

.section {
  padding-block: 120px;
}

.section-label {
  margin-bottom: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(101,247,255,.07), transparent 25%),
    rgba(255,255,255,.022);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(101,247,255,.22);
  background: rgba(255,255,255,.04);
}

.feature-card.large {
  grid-row: span 2;
  min-height: 540px;
}

.card-number {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #56617a;
  font: 500 .7rem "JetBrains Mono", monospace;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid rgba(101,247,255,.16);
  color: var(--cyan);
  background: rgba(101,247,255,.04);
}

.feature-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.055em;
  max-width: 500px;
  line-height: .98;
}

.feature-card h3 {
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.feature-card p {
  margin-top: 16px;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
  font-size: .92rem;
}

.split-head {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 44px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.split-head > p {
  color: var(--muted);
  line-height: 1.75;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stack-item {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}

.stack-item:hover {
  background: rgba(101,247,255,.025);
}

.stack-item span {
  margin-bottom: auto;
  color: #57637d;
  font: 500 .66rem "JetBrains Mono", monospace;
}

.stack-item strong {
  font-size: 1.2rem;
}

.stack-item small {
  margin-top: 6px;
  color: var(--muted);
  font-size: .75rem;
}

.contact-section {
  padding-top: 20px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  padding: 56px;
  border: 1px solid rgba(101,247,255,.13);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(101,247,255,.035), rgba(160,107,255,.03)),
    rgba(255,255,255,.025);
}

.contact-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(120px);
  opacity: .12;
}

.contact-card h2 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: .9;
  letter-spacing: -.065em;
}

.contact-right {
  align-self: end;
  position: relative;
  z-index: 2;
}

.contact-right p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.footer {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #67728d;
  font-size: .78rem;
}

@keyframes enterUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes enterScale {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(117,255,179,.55); }
  70% { box-shadow: 0 0 0 8px rgba(117,255,179,0); }
  100% { box-shadow: 0 0 0 0 rgba(117,255,179,0); }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

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

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes terminalFloat {
  from { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) translateY(-5px); }
  to { transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes orbFloat {
  from { transform: translate3d(-20px, -10px, 0) scale(.95); }
  to { transform: translate3d(40px, 50px, 0) scale(1.1); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-text {
    margin-inline: auto;
  }

  .visual-shell {
    min-height: 480px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.large {
    min-height: 430px;
  }

  .split-head,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    font-size: .7rem;
    padding-inline: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5.5rem);
  }

  .hero-meta {
    gap: 12px;
  }

  .hero-meta div {
    padding-right: 12px;
  }

  .visual-shell {
    min-height: 390px;
  }

  .terminal-card {
    transform: none;
  }

  .terminal-body {
    min-height: 260px;
    padding-inline: 18px;
    font-size: .75rem;
  }

  .ring-one { width: 330px; height: 330px; }
  .ring-two { width: 410px; height: 410px; }

  .section {
    padding-block: 86px;
  }

  .feature-card {
    min-height: 240px;
  }

  .feature-card.large {
    min-height: 360px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 34px 24px;
    gap: 40px;
  }

  .footer {
    padding-block: 32px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
