/* enelgee landing page
   Layout from the GPT mockup, restyled with the enelgee brand:
   teal, coral, cream, mint, yellow, pink; League Spartan wordmark,
   DM Serif Display headlines, Source Serif 4 body, Anton labels. */

:root {
  --cream: #f7f1e5;
  --paper: #fbf8f1;
  --teal: #083d44;
  --ink: #051621;
  --coral: #ff7a5c;
  --orange: #f26f48;
  --mint: #bdefd0;
  --pink: #f7c4d1;
  --yellow: #f3dc62;
  --muted: #3d5560;
  --rule: rgba(5, 22, 33, .14);
  --wordmark: "League Spartan", "Arial Black", Arial, sans-serif;
  --headline: "DM Serif Display", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --label: Anton, Impact, "Arial Narrow", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: var(--ink); }
body { font-family: var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { -webkit-tap-highlight-color: transparent; }

/* ---------- page frame: fits one screen on laptops and desktops ---------- */
.page-shell {
  width: min(100%, 1760px);
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vh, 30px) clamp(20px, 4.5vw, 64px) 0;
  position: relative;
  z-index: 3;
}
.brand { text-decoration: none; color: var(--teal); }
.wordmark { font: 800 clamp(38px, 5.6vh, 56px)/1 var(--wordmark); letter-spacing: -.03em; display: inline-flex; }
.wordmark .tm { font: 700 .26em/1 var(--body); color: var(--teal); vertical-align: top; position: relative; top: .25em; margin-left: .06em; letter-spacing: 0; }
.wordmark b { color: var(--coral); display: inline-block; animation: dot-pulse 3.2s ease-in-out infinite; transform-origin: 50% 80%; }

.login-button--top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 20px;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  text-decoration: none;
  font: 400 13px/1 var(--label);
  letter-spacing: .2em;
  text-transform: uppercase;
  background: transparent;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.login-button--top img { width: 16px; height: 16px; transition: transform .25s var(--ease), filter .25s; }
.login-button--top:hover, .login-button--top:focus-visible { background: var(--teal); color: #fff; transform: translateY(-1px); }
.login-button--top:hover img, .login-button--top:focus-visible img { transform: translateX(4px); filter: brightness(0) invert(1); }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(12px, 3vh, 40px) clamp(8px, 2vw, 32px) clamp(12px, 3vh, 40px) clamp(20px, 4.5vw, 64px);
}
.eyebrow {
  margin: 0 0 clamp(10px, 1.8vh, 18px);
  font: 400 clamp(13px, calc(min(1.8vh, 1vw) + 1px), 18px)/1.2 var(--label);
  letter-spacing: .2em;
  color: var(--teal);
}
.eyebrow span { color: var(--orange); }

.hero h1 {
  margin: 0;
  font: 400 clamp(44px, min(9.4vh, 5.3vw), 120px)/1 var(--headline);
  letter-spacing: -.025em;
  color: var(--ink);
}
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--coral); position: relative; display: inline-block; }
.swoosh { position: absolute; left: 2%; bottom: -.08em; width: 94%; height: .22em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1s var(--ease) 1.2s forwards; }

.hero-description {
  margin: clamp(14px, 2.4vh, 24px) 0 clamp(30px, 5vh, 52px);
  max-width: 62ch;
  font: 400 clamp(17px, min(2.7vh, 1.5vw), 25px)/1.45 var(--body);
  color: var(--muted);
}
.hero-description br { display: none; }

.team-login {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 20px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font: 400 16px/1 var(--label);
  letter-spacing: .24em;
  text-transform: uppercase;
  position: relative;
  box-shadow: 0 8px 20px rgba(255, 122, 92, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.team-login > img { width: 22px; height: 22px; }
.team-login__arrow { font: 400 20px/1 var(--body); transition: transform .3s var(--ease); }
.team-login:hover, .team-login:focus-visible { background: #d9573a; transform: translateY(-2px); }
.team-login:hover .team-login__arrow, .team-login:focus-visible .team-login__arrow { transform: translateX(6px); }
.team-login:focus-visible, .login-button--top:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* the laptop scene fills the right side and fades into the page */
.hero-media {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* the whole scene always shows, never cropped */
  object-position: right center;
  animation: slow-zoom 22s ease-in-out infinite alternate;
  transform-origin: 55% 45%;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: clamp(12px, 2.2vh, 22px) clamp(20px, 4.5vw, 64px);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.feature { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding-right: 24px; }
.feature + .feature { border-left: 1px solid var(--rule); padding-left: 28px; }
.feature-icon { width: clamp(48px, 6.4vh, 62px); height: clamp(48px, 6.4vh, 62px); border-radius: 50%; display: grid; place-items: center; animation: bob 4.5s ease-in-out infinite; }
.feature:nth-child(2) .feature-icon { animation-delay: .6s; }
.feature:nth-child(3) .feature-icon { animation-delay: 1.2s; }
.feature-icon--mint { background: var(--mint); }
.feature-icon--coral { background: var(--pink); }
.feature-icon--yellow { background: var(--yellow); }
.feature-icon img { width: 52%; height: 52%; }
.feature-icon--coral img { animation: twinkle 3s ease-in-out infinite; }
.feature h2 { margin: 0 0 4px; font: 400 clamp(19px, 2.4vh, 23px)/1.1 var(--headline); color: var(--ink); }
.feature p { margin: 0; font: 400 clamp(14px, 1.8vh, 16px)/1.4 var(--body); color: var(--muted); }
.feature p br { display: none; }

/* ---------- words that light up in turn, then the footer ---------- */
.themes {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 9vw, 150px);
  padding: clamp(8px, 1.4vh, 14px) 0;
  font: 400 12px/1 var(--label);
  letter-spacing: .26em;
  color: var(--teal);
  background: var(--paper);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(20px, 4.5vw, 64px) 16px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  font: 400 13px/1.3 var(--body);
  position: relative;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.site-footer a:hover { color: var(--orange); }
.site-footer a img { width: 14px; height: 14px; }
.site-footer::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--coral); }

/* ---------- arrival: things settle in as the page opens ---------- */
.site-header { animation: rise .7s var(--ease) both; }
.eyebrow { animation: rise .7s var(--ease) .15s both; }
.hero h1 .l1 { animation: rise .8s var(--ease) .25s both; }
.hero h1 .l2 { animation: rise .8s var(--ease) .38s both; }
.hero h1 .l3 { animation: rise .8s var(--ease) .51s both; }
.hero-description { animation: rise .8s var(--ease) .7s both; }
.team-login { animation: rise .8s var(--ease) .85s both, cta-ring 3.6s ease-out 2.4s infinite; }
.hero-media { animation: fade-in 1.2s var(--ease) .2s both; }
.feature:nth-child(1) { animation: rise .7s var(--ease) 1s both; }
.feature:nth-child(2) { animation: rise .7s var(--ease) 1.12s both; }
.feature:nth-child(3) { animation: rise .7s var(--ease) 1.24s both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(14deg) scale(1.1); } }
@keyframes dot-pulse { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.5); } 90% { transform: scale(.9); } }
@keyframes cta-ring { 0% { box-shadow: 0 8px 20px rgba(255,122,92,.28), 0 0 0 0 rgba(255,122,92,.45); } 60% { box-shadow: 0 8px 20px rgba(255,122,92,.28), 0 0 0 14px rgba(255,122,92,0); } 100% { box-shadow: 0 8px 20px rgba(255,122,92,.28), 0 0 0 0 rgba(255,122,92,0); } }

/* ---------- tablets, phones and short windows: stack and scroll ---------- */
@media (max-width: 1000px), (max-height: 600px) {
  .page-shell { height: auto; min-height: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px clamp(20px, 5vw, 48px) 24px; }
  .hero h1 { font-size: clamp(44px, 9vw, 76px); }
  .hero-description { font-size: 18px; }
  .hero-media { margin-left: 0; aspect-ratio: 16 / 11; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%); mask-image: linear-gradient(to bottom, transparent 0, #000 10%); }
  .features { grid-template-columns: 1fr; padding: 8px clamp(20px, 5vw, 48px); }
  .feature { padding: 16px 0; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}
@media (max-width: 600px) {
  .wordmark { font-size: 36px; }
  .eyebrow { font-size: 11px; letter-spacing: .16em; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .team-login { width: 100%; justify-content: center; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 60% 50%; }
  .themes { gap: 0; justify-content: space-around; font-size: 11px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding-bottom: 20px; }
}

/* ---------- people who prefer less motion get a still page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .swoosh path { stroke-dashoffset: 0; }
}
