/* Cool Company SAS — Coming Soon (no-scroll hero) */

:root {
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --coral: #f97316;
  --ink: #0f172a;
  --muted: rgba(255, 255, 255, 0.72);
  --glass: rgba(15, 23, 42, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --space-xs: clamp(0.35rem, 1.2vh, 0.65rem);
  --space-sm: clamp(0.5rem, 1.6vh, 0.9rem);
  --space-md: clamp(0.75rem, 2.2vh, 1.25rem);
  --space-lg: clamp(1rem, 3vh, 1.75rem);
}

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

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  font-family: var(--font);
  color: #fff;
  line-height: 1.45;
  background: #0b1220;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* —— Background —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: kenburns 28s ease-in-out infinite alternate;
}

.bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      rgba(8, 15, 30, 0.88) 0%,
      rgba(8, 15, 30, 0.72) 42%,
      rgba(13, 148, 136, 0.35) 100%
    ),
    linear-gradient(to top, rgba(8, 15, 30, 0.9) 0%, transparent 45%);
}

.bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

@keyframes kenburns {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(-1.5%, -1%);
  }
}

/* —— Layout: locked to viewport —— */
.page {
  position: relative;
  z-index: 1;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-md) clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
}

/* —— Header —— */
.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: rise 0.8s ease both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo__mark {
  width: clamp(1.75rem, 4vh, 2.25rem);
  height: clamp(1.75rem, 4vh, 2.25rem);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, #14b8a6 50%, var(--coral) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(13, 148, 136, 0.4);
  position: relative;
}

.logo__mark::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.logo__text {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.2vh, 1.05rem);
  letter-spacing: -0.02em;
}

.logo__sas {
  font-weight: 500;
  opacity: 0.65;
  font-size: 0.85em;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
}

/* —— Hero —— */
.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: var(--space-sm) 0;
  overflow: hidden;
}

.eyebrow {
  font-size: clamp(0.68rem, 1.6vh, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: var(--space-xs);
  animation: rise 0.8s 0.1s ease both;
}

.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 5.5vh, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  animation: rise 0.85s 0.18s ease both;
}

.title em {
  font-style: italic;
  background: linear-gradient(90deg, #5eead4, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(0.85rem, 2vh, 1.1rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  animation: rise 0.85s 0.28s ease both;
}

/* —— Form —— */
.notify {
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  animation: rise 0.85s 0.38s ease both;
}

.notify__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 0.4rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

@media (min-width: 520px) {
  .notify__row {
    flex-direction: row;
    align-items: stretch;
    padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  }
}

.notify input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: clamp(0.85rem, 1.8vh, 0.95rem);
  padding: clamp(0.55rem, 1.5vh, 0.8rem) 0.65rem;
  outline: none;
}

.notify input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.notify button {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vh, 0.95rem);
  color: #042f2e;
  background: linear-gradient(135deg, #2dd4bf, #5eead4);
  border-radius: var(--radius);
  padding: clamp(0.55rem, 1.5vh, 0.85rem) 1.25rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.3);
}

.notify button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(45, 212, 191, 0.4);
}

.notify button:active {
  transform: translateY(0);
}

.notify button:focus-visible,
.notify input:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

.notify__msg {
  min-height: 1.15em;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #99f6e4;
}

.notify__msg.is-error {
  color: #fdba74;
}

/* —— Features —— */
.features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  flex-shrink: 0;
  animation: rise 0.85s 0.48s ease both;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: clamp(0.55rem, 1.4vh, 0.9rem) 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.features li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(94, 234, 212, 0.25);
}

.features__icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.05rem;
}

.features strong {
  display: block;
  font-size: clamp(0.78rem, 1.7vh, 0.9rem);
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.features span:not(.features__icon) {
  display: block;
  font-size: clamp(0.7rem, 1.5vh, 0.8rem);
  color: var(--muted);
  line-height: 1.35;
}

/* —— Footer —— */
.footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: clamp(0.7rem, 1.5vh, 0.8rem);
  color: rgba(255, 255, 255, 0.5);
  animation: rise 0.8s 0.55s ease both;
}

.footer a {
  color: #99f6e4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #fff;
}

/* —— Utils —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .bg__image {
    animation: none;
  }

  .header,
  .eyebrow,
  .title,
  .lead,
  .notify,
  .features,
  .footer {
    animation: none;
  }
}

/* Extra-compact on short viewports (laptops, landscape phones) */
@media (max-height: 700px) {
  .title br {
    display: none;
  }

  .features li {
    padding: 0.45rem 0.7rem;
  }
}

@media (max-height: 560px) {
  .features {
    display: none;
  }

  .lead {
    -webkit-line-clamp: 2;
    margin-bottom: var(--space-sm);
  }
}
