@import url("tokens.css");

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

html,
body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

button,
a {
  font: inherit;
}

.coming-soon {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem 1.5rem 5rem;
}

.gradient-definitions {
  position: absolute;
}

.language-switch {
  position: absolute;
  inset-block-start: max(1rem, env(safe-area-inset-top));
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, var(--clear));
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(10px);
}

.language-switch button {
  min-width: 2.35rem;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--clear);
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}

.language-switch button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.language-switch button:focus-visible,
.instagram-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.balloon-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.balloon-rise {
  position: absolute;
  bottom: -30svh;
  left: var(--left);
  opacity: var(--opacity);
  animation: balloon-rise var(--rise-duration) linear var(--delay) infinite;
  will-change: transform;
}

.balloon-sway {
  animation: balloon-sway var(--sway-duration) var(--ease-in-out) infinite;
  will-change: transform;
}

.balloon-sway svg {
  display: block;
  width: var(--size);
  height: calc(var(--size) * 1.55);
  overflow: visible;
  fill: none;
}

.balloon-body {
  stroke-width: 0.8;
}

.balloon-body--gold { fill: url("#baluneGold"); stroke: var(--gold-string); }
.balloon-body--blush { fill: url("#baluneBlush"); stroke: var(--blush-string); }
.balloon-body--cream { fill: url("#baluneCream"); stroke: var(--cream-string); }
.balloon-body--outline { fill: none; stroke: var(--gold-string); stroke-width: 1.6; }

.balloon-string {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
}

.balloon-string--gold { stroke: var(--gold-string); }
.balloon-string--blush { stroke: var(--blush-string); }
.balloon-string--cream { stroke: var(--cream-string); }

.content {
  position: relative;
  z-index: 10;
  width: min(100%, 42rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 15rem;
  height: auto;
  overflow: visible;
  color: var(--primary);
}

.logo-art {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.logo-letter,
.logo-name {
  fill: currentColor;
  font-family: var(--font-display);
  font-weight: 400;
}

.logo-letter { font-size: 138px; }
.logo-name { font-size: 43px; letter-spacing: 0.22em; }
.logo-tagline path { fill: none; stroke: currentColor; stroke-width: 1; }
.logo-tagline text { fill: var(--foreground); font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.07em; }

.eyebrow {
  margin: 1.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.headline {
  margin: 1rem 0 0;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 6vw, 3.625rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.headline span,
.headline em { display: block; }

.headline em {
  color: var(--primary);
  font-style: italic;
  font-weight: 400;
}

.description {
  max-width: 26rem;
  margin: 1.25rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.cta-wrap { margin-top: 2.5rem; }

.instagram-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid color-mix(in oklch, var(--primary) 40%, var(--clear));
  border-radius: 999px;
  background: var(--card);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), color 300ms var(--ease-out), transform 120ms var(--ease-out);
}

.instagram-link svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.instagram-link:active { transform: translateY(1px); }

.footer {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1rem max(1.5rem, env(safe-area-inset-bottom));
  color: color-mix(in oklch, var(--muted-foreground) 70%, var(--clear));
}

.footer p {
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.35em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer span {
  width: 2rem;
  height: 1px;
  flex: 0 0 auto;
  background: color-mix(in oklch, var(--primary) 40%, var(--clear));
}

.fade-in { animation: fade-in 800ms var(--ease-out) var(--fade-delay, 0s) both; }

.screen-reader-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 balloon-rise {
  from { transform: translateY(0); }
  to { transform: translateY(-160svh); }
}

@keyframes balloon-sway {
  0%, 100% { transform: translateX(0) rotate(-2.5deg); }
  50% { transform: translateX(14px) rotate(2.5deg); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .language-switch button:not([aria-pressed="true"]):hover { color: var(--primary); }
  .instagram-link:hover { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
}

@media (min-width: 40rem) {
  .language-switch { inset-block-start: max(1.5rem, env(safe-area-inset-top)); inset-inline-end: max(1.5rem, env(safe-area-inset-right)); }
  .logo { width: 21rem; }
  .eyebrow { font-size: 0.6875rem; }
  .description { font-size: 0.875rem; }
}

@media (min-width: 48rem) {
  .logo { width: 23rem; }
}

@media (max-height: 47rem) {
  .coming-soon { padding-bottom: 4rem; }
  .logo { width: 11.5rem; }
  .eyebrow { margin-top: 1rem; }
  .headline { margin-top: 0.5rem; font-size: clamp(2rem, 5.5vw, 3.25rem); }
  .description { margin-top: 0.75rem; }
  .cta-wrap { margin-top: 1rem; }
}

@media (max-width: 24rem) {
  .coming-soon { padding-inline: 1rem; }
  .footer { gap: 0.5rem; }
  .footer span { width: 1rem; }
  .footer p { font-size: 0.5625rem; letter-spacing: 0.25em; }
}

@media (prefers-reduced-motion: reduce) {
  .balloon-rise,
  .balloon-sway,
  .fade-in { animation: none; }
}
