/* ==========================================================================
   KGES 2026 — coming-soon page (/comingsoon)
   Implements design "KGES 2026 - Coming Soon" from the same Claude Design project.
   ========================================================================== */

:root {
  --bg: #000510;
  --navy: #030D27;
  --ink: #EEF1F8;
  --accent: #F38C2E;
  --accent-hover: #f79a45;
  --ink-60: rgba(238, 241, 248, .6);
  --ink-55: rgba(238, 241, 248, .55);
  --ink-45: rgba(238, 241, 248, .45);
  --ink-40: rgba(238, 241, 248, .4);
  --gutter: max(24px, calc((100% - 1100px) / 2));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { color-scheme: dark; overscroll-behavior-y: none; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; overscroll-behavior-y: none; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
input, button { font-family: inherit; }
input::placeholder { color: rgba(238, 241, 248, .32); }
input:focus { outline: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, p { margin: 0; }

@keyframes kges-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes kges-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

.cs {
  min-height: 100vh; min-height: 100svh; position: relative; overflow: hidden; overflow: clip;
  display: grid; grid-template-rows: auto 1fr auto; background: var(--bg);
}
.cs__photo { position: absolute; inset: 0; overflow: hidden; }
.cs__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 5, 16, .85) 0%, rgba(0, 5, 16, .55) 40%, rgba(0, 5, 16, .7) 70%, var(--bg) 100%);
}
.cs__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 600px at 50% 110%, rgba(243, 140, 46, .22), transparent 65%); }
.cs__grid {
  position: absolute; inset: 0; pointer-events: none;
  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: 72px 72px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, black, transparent);
  mask-image: radial-gradient(closest-side at 50% 50%, black, transparent);
}
.cs__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.cs__ring--outer { width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border: 1px solid rgba(255, 255, 255, .05); }
.cs__ring--orbit { width: 760px; height: 760px; margin: -380px 0 0 -380px; border: 1px dashed rgba(243, 140, 46, .18); animation: kges-orbit 120s linear infinite; }
.cs__satellite { position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }

/* Header */
.cs__header {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px var(--gutter); font-size: 13px; font-weight: 600; color: var(--ink-60);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand__logo { width: 52px; height: 52px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6)); }
.brand__eyebrow { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.brand__title { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; white-space: nowrap; }
.cs__facts { display: flex; gap: 28px; font-size: 12px; font-weight: 500; color: var(--ink); }
.fact__label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-40); }
.fact__value { margin-top: 3px; white-space: nowrap; }

/* Main */
.cs__main {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px 24px 60px;
}
.cs__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); animation: kges-rise 1s .1s var(--ease) both; }
.cs__title {
  font-family: var(--font-display); font-size: clamp(52px, 8vw, 104px); line-height: .95; font-weight: 800; font-stretch: 100%;
  letter-spacing: -.03em; margin-top: 14px; white-space: nowrap; animation: kges-rise 1s .15s var(--ease) both;
}
.cs__sub { font-size: 15px; color: var(--ink-55); margin-top: 22px; animation: kges-rise 1s .25s var(--ease) both; }

.cs__countdown {
  display: flex; gap: 1px; margin-top: 40px; border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: kges-rise 1s .3s var(--ease) both;
}
.countdown__group { padding: 20px 32px; min-width: 132px; background: rgba(3, 13, 39, .72); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.countdown__digits { display: flex; justify-content: center; font-family: var(--font-mono); font-size: 54px; font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.countdown__group--accent .countdown__digits { color: var(--accent); }
.digit { height: 1em; overflow: hidden; }
.digit__reel { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.2, .9, .2, 1); will-change: transform; }
.digit__reel span { display: block; height: 1em; }
.countdown__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); margin-top: 8px; font-weight: 600; }

/* Notify form */
.cs__form {
  display: flex; gap: 6px; margin-top: 36px; padding: 6px; border-radius: 99px; width: min(100%, 460px);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: border-color .15s; animation: kges-rise 1s .4s var(--ease) both;
}
.cs__form.has-error { border-color: var(--accent); }
.cs__input { flex: 1; height: 46px; padding: 0 18px; border: 0; background: transparent; color: var(--ink); font-size: 14px; min-width: 0; }
.cs__btn {
  height: 46px; padding: 0 22px; border-radius: 99px; border: 0; background: var(--accent); color: var(--navy);
  font-weight: 800; font-size: 13px; white-space: nowrap; transition: transform .1s ease-out, background .15s, opacity .15s;
}
.cs__btn:hover { background: var(--accent-hover); }
.cs__btn:active { transform: scale(.96); }
.cs__btn:disabled { opacity: .7; cursor: progress; transform: none; }
.cs__msg { font-size: 12px; color: var(--ink-40); margin-top: 12px; text-wrap: balance; animation: kges-rise 1s .45s var(--ease) both; }
.cs__msg.is-error { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 10px; }
.cs__done {
  display: flex; align-items: center; gap: 12px; margin-top: 36px; padding: 14px 22px; border-radius: 99px;
  background: rgba(243, 140, 46, .1); border: 1px solid rgba(243, 140, 46, .45); font-size: 14px; font-weight: 600; overflow-wrap: anywhere;
}
.cs__done-check { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; font-size: 12px; }

/* Footer */
.cs__footer {
  position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gutter); font-size: 12px; color: var(--ink-40);
}
.cs__footer a { color: var(--ink-40); text-decoration: none; }
.cs__footer a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 767px) {
  .cs__ring { display: none; }            /* the ring arcs cut through the header on a phone */
  .cs__shade { background: linear-gradient(180deg, rgba(0, 5, 16, .92) 0%, rgba(0, 5, 16, .72) 35%, rgba(0, 5, 16, .8) 70%, var(--bg) 100%); }
  .cs__header { padding: 14px 16px; gap: 12px; }
  .cs__facts { display: none; }
  .cs__main { padding: 8px 20px 20px; }
  .cs__title { font-size: clamp(42px, 11vw, 60px); white-space: normal; margin-top: 10px; }
  .cs__sub { margin-top: 12px; font-size: 14px; }
  .cs__countdown { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 420px); margin-top: 22px; }
  .countdown__group { min-width: 0; padding: 14px 16px; }
  .countdown__digits { font-size: 38px; }
  .countdown__label { margin-top: 6px; font-size: 10px; }
  /* A real field on phones instead of a translucent pill */
  .cs__form { flex-direction: column; gap: 10px; margin-top: 22px; padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cs__input { height: 52px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(3, 13, 39, .8); font-size: 16px; text-align: left; }
  .cs__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(243, 140, 46, .22); }
  .cs__form.has-error .cs__input { border-color: var(--accent); }
  .cs__btn { height: 52px; border-radius: 14px; width: 100%; font-size: 14px; }
  .cs__msg { margin-top: 10px; padding: 0 8px; }
  .cs__done { margin-top: 22px; }
  .cs__footer { padding: 14px 16px 18px; font-size: 11px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .cs__header { padding: 10px 16px; }
  .brand__logo { width: 40px; height: 40px; }
  .cs__title { font-size: clamp(38px, 10vw, 48px); }
  .countdown__digits { font-size: 32px; }
  .countdown__group { padding: 10px 14px; }
  .cs__footer-line2 { display: none; }
  .cs__msg { display: none; }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; }
  .brand { gap: 10px; }
  .brand__eyebrow { display: none; }
  .brand__title { white-space: normal; margin-top: 0; line-height: 1.15; font-size: 14px; }
  .brand__logo { width: 44px; height: 44px; }
  .countdown__digits { font-size: 36px; }
}
@media (max-height: 700px) and (max-width: 767px) {
  /* Short phones: trim vertical rhythm so the whole page needs little or no scrolling */
  .cs__main { padding-top: 8px; padding-bottom: 24px; }
  .cs__countdown { margin-top: 20px; }
  .countdown__group { padding: 12px 16px; }
  .cs__form { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
