/* ===== Lakshyan Academy of Sports — Coming Soon (Split Screen) ===== */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --muted-on-dark: rgba(255, 255, 255, 0.55);
  --muted-on-light: rgba(0, 0, 0, 0.55);
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(0, 0, 0, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--white); color: #000; }

/* ---- split layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.panel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.panel-inner {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
}

.panel-dark  { background: var(--black); color: var(--white); }
.panel-light { background: var(--white); color: var(--black); }

/* faint diagonal texture on the dark side */
.panel-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.035) 0px,
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 22px
  );
  pointer-events: none;
}

/* ================= LEFT PANEL ================= */
.left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
.brand .logo {
  width: clamp(140px, 18vw, 190px);
  height: auto;
  display: block;
}

.hero { padding: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.headline {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  white-space: nowrap;
}
.headline .period { color: var(--white); -webkit-text-fill-color: var(--white); }

.lead {
  margin-top: 18px;
  max-width: 38ch;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--muted-on-dark);
}
.lead strong { color: var(--white); font-weight: 600; }

/* ticker */
.ticker {
  margin-top: auto;
  padding-top: 22px;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding-top: 12px;
  animation: marquee 20s linear infinite;
}
.ticker-track span {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--muted-on-dark);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================= RIGHT PANEL ================= */
.panel-light .panel-inner { gap: 22px; }

.block { width: 100%; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-on-light);
  margin-bottom: 12px;
}

/* countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px 9px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.unit:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-4px);
}
.num {
  font-family: "Anton", sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.label {
  margin-top: 8px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: inherit;
  opacity: 0.6;
}

.rule {
  border: none;
  height: 1px;
  background: var(--line-light);
}

/* notify form */
#notify-form {
  display: flex;
  gap: 10px;
}
#email {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  outline: none;
  color: var(--black);
  font-size: 0.95rem;
  padding: 14px 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#email::placeholder { color: rgba(0,0,0,0.4); }
#email:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
#notify-form button {
  border: none;
  background: var(--black);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0 24px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
#notify-form button:hover { transform: translateY(-2px); opacity: 0.88; }
#notify-form button:active { transform: translateY(0); }

.form-msg {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.1em;
}
.form-msg.ok  { color: var(--black); font-weight: 600; }
.form-msg.err { color: #c0392b; }

/* footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--black);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social a:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
}
.copy {
  font-size: 0.72rem;
  color: var(--muted-on-light);
  letter-spacing: 0.02em;
}

/* ---- reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.brand   { animation-delay: 0.05s; }
.hero    { animation-delay: 0.16s; }
.ticker  { animation-delay: 0.3s; }
.panel-light [data-reveal]:nth-child(1) { animation-delay: 0.24s; }
.panel-light [data-reveal]:nth-child(2) { animation-delay: 0.34s; }
.panel-light [data-reveal]:nth-child(3) { animation-delay: 0.44s; }
.panel-light [data-reveal]:nth-child(4) { animation-delay: 0.54s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .eyebrow .dot { animation: none !important; }
  [data-reveal] { animation: none; opacity: 1; transform: none; }
}

/* ================= RESPONSIVE ================= */

/* Tablet / small laptop — stack the two panels */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .panel { min-height: auto; }
  .panel-dark { min-height: 64vh; }
  .panel-inner { max-width: 620px; padding: 52px clamp(24px, 7vw, 56px); }
  .left-content { gap: 26px; }
  /* full width now, so the headline can grow */
  .headline { font-size: clamp(2.8rem, 9vw, 4.6rem); }
  .lead { font-size: 1rem; max-width: 46ch; }
}

/* Phones */
@media (max-width: 560px) {
  .panel-dark { min-height: auto; padding-top: 8px; }
  .panel-inner { padding: 44px 22px; }
  .brand .logo { width: clamp(132px, 42vw, 168px); }
  .eyebrow { letter-spacing: 0.28em; font-size: 0.66rem; margin-bottom: 14px; }
  .headline { font-size: clamp(2.6rem, 13vw, 3.6rem); white-space: nowrap; }
  .lead { margin-top: 16px; }
  .ticker-track span { font-size: 0.82rem; }

  .panel-light .panel-inner { gap: 24px; }
  .num { font-size: clamp(1.7rem, 9vw, 2.4rem); }
  .label { font-size: 0.58rem; letter-spacing: 0.14em; }

  #notify-form { flex-direction: column; }
  #email { text-align: center; padding: 15px 16px; }
  #notify-form button { padding: 15px; width: 100%; }

  .foot { flex-direction: column; gap: 18px; justify-content: center; text-align: center; }
}

/* Narrow phones — keep the 4-up countdown from overflowing */
@media (max-width: 380px) {
  .panel-inner { padding: 38px 16px; }
  .countdown { gap: 6px; }
  .unit { padding: 12px 2px 9px; border-radius: 10px; }
  .num { font-size: clamp(1.5rem, 9vw, 1.9rem); }
  .label { font-size: 0.54rem; letter-spacing: 0.1em; }
  .headline { font-size: clamp(2.2rem, 13vw, 3rem); }
}

/* Short landscape phones — don't force a tall hero */
@media (max-height: 520px) and (orientation: landscape) {
  .panel-dark { min-height: auto; }
  .panel-inner { padding: 32px clamp(20px, 5vw, 48px); }
}
