:root {
  --white: #ffffff;
  --ice: #dceeff;
  --baby-blue: #80cfff;
  --electric-blue: #168cff;
  --navy: #061440;
  --muted: rgba(225, 239, 255, 0.76);
  --line: rgba(182, 222, 255, 0.22);
  --glass: rgba(5, 24, 79, 0.53);
  --shell: min(1180px, calc(100% - 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--white); background: var(--navy); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--baby-blue); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #071c60; }
.hero__image { position: absolute; z-index: -3; inset: 0; background: #082b80 url("assets/melexme-night-lighthouse-bg.png") center 70% / cover no-repeat; animation: image-in 1.4s var(--ease) both; }
.hero__overlay { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(2, 10, 44, .87) 0%, rgba(3, 18, 66, .68) 38%, rgba(3, 22, 76, .15) 70%, rgba(2, 11, 44, .3) 100%), linear-gradient(180deg, rgba(2, 10, 40, .44) 0%, transparent 28%, rgba(2, 9, 35, .42) 68%, rgba(2, 8, 29, .88) 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle at 10% 50%, rgba(22, 140, 255, .18), transparent 35%); }

.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: max(26px, env(safe-area-inset-top)); padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand__badge { display: grid; place-items: center; width: 43px; height: 39px; border: 1px solid rgba(255,255,255,.48); border-radius: 13px; color: var(--navy); background: linear-gradient(145deg, #fff, #a9dcff); box-shadow: 0 8px 25px rgba(21, 135, 255, .35), inset 0 -2px 5px rgba(28, 116, 214, .23); font-size: .79rem; font-weight: 900; letter-spacing: -.1em; }
.brand__name { font-size: 1.22rem; font-weight: 760; letter-spacing: -.045em; text-shadow: 0 2px 16px rgba(0,0,30,.4); }
.language-switcher { display: flex; gap: 3px; min-height: 46px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 19, 68, .48); box-shadow: 0 12px 30px rgba(0,0,30,.16); backdrop-filter: blur(16px); }
.language-switcher__button { min-width: 43px; min-height: 36px; border: 0; border-radius: 999px; color: rgba(255,255,255,.62); background: transparent; font: 750 .72rem/1 inherit; letter-spacing: .08em; cursor: pointer; transition: color .25s, background .25s, box-shadow .25s; }
.language-switcher__button:hover { color: white; }
.language-switcher__button.is-active { color: #061440; background: linear-gradient(145deg, #fff, #8cd1ff); box-shadow: 0 5px 16px rgba(44, 162, 255, .35); }

.hero__content { display: flex; flex-direction: column; justify-content: center; padding-top: clamp(30px, 5vh, 70px); }
.hero__copy { max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 23px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ice); background: rgba(8, 38, 111, .45); backdrop-filter: blur(10px); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow__pulse { width: 8px; height: 8px; border-radius: 50%; background: #8cd9ff; box-shadow: 0 0 0 5px rgba(65, 174, 255, .14), 0 0 15px #41aeff; }
h1 { max-width: 800px; margin: 0; font-size: clamp(3.35rem, 7.5vw, 7rem); font-weight: 700; line-height: .9; letter-spacing: -.067em; text-wrap: balance; text-shadow: 0 5px 30px rgba(0, 8, 45, .32); }
h1 span { display: block; }
.headline-accent { color: transparent; background: linear-gradient(100deg, #fff 5%, #b7e4ff 48%, #65c3ff 100%); -webkit-background-clip: text; background-clip: text; }
.hero__lead { margin: 30px 0 0; font-size: clamp(1.18rem, 2vw, 1.52rem); font-weight: 650; line-height: 1.4; letter-spacing: -.025em; }
.hero__support { max-width: 480px; margin: 8px 0 0; color: var(--muted); font-size: clamp(.95rem, 1.25vw, 1.06rem); line-height: 1.6; }
.access-card { display: inline-flex; align-items: center; gap: 13px; margin-top: 27px; padding: 11px 18px 11px 11px; border: 1px solid rgba(175, 219, 255, .28); border-radius: 17px; background: var(--glass); box-shadow: 0 18px 45px rgba(0, 5, 35, .25), inset 0 1px rgba(255,255,255,.06); backdrop-filter: blur(18px); }
.access-card__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: #e7f6ff; background: linear-gradient(145deg, #249bff, #126ce3); box-shadow: 0 8px 21px rgba(24, 130, 255, .35); }
.access-card svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.access-card strong, .access-card small { display: block; }
.access-card strong { font-size: .86rem; line-height: 1.3; }
.access-card small { margin-top: 3px; color: var(--muted); font-size: .7rem; }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 7vh, 82px); border: 1px solid var(--line); border-radius: 22px; background: rgba(3, 17, 61, .38); box-shadow: 0 20px 50px rgba(0,7,37,.2); backdrop-filter: blur(16px); overflow: hidden; }
.service-item { display: flex; gap: 15px; min-width: 0; padding: 20px 23px; }
.service-item + .service-item { border-left: 1px solid var(--line); }
.service-item__number { padding-top: 3px; color: var(--baby-blue); font: 800 .65rem/1 inherit; letter-spacing: .1em; }
.service-item h2 { margin: 0; font-size: .93rem; line-height: 1.3; }
.service-item p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: max(22px, env(safe-area-inset-bottom)); color: rgba(225,239,255,.5); font-size: .68rem; letter-spacing: .025em; }
.site-footer p { margin: 0; }
.reveal { animation: reveal .9s var(--ease) both; }
.reveal--delayed { animation-delay: .18s; }
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes image-in { from { opacity: .65; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 700px) {
  :root { --shell: min(100% - 30px, 620px); }
  .hero { min-height: max(100svh, 780px); }
  .hero__image { background-position: 52% 70%; }
  .hero__overlay { background: linear-gradient(180deg, rgba(2, 9, 38, .42) 0%, rgba(3, 16, 60, .08) 28%, rgba(2, 11, 44, .55) 54%, rgba(2, 8, 30, .95) 82%); }
  .site-header { padding-bottom: 12px; }
  .brand__badge { width: 40px; height: 37px; }
  .hero__content { justify-content: flex-end; padding-top: 32vh; }
  .hero__copy { max-width: 540px; }
  .eyebrow { margin-bottom: 17px; }
  h1 { font-size: clamp(3.05rem, 15vw, 4.8rem); line-height: .91; }
  .hero__lead { margin-top: 22px; }
  .hero__support { max-width: 420px; }
  .access-card { margin-top: 21px; }
  .service-strip { grid-template-columns: 1fr; margin-top: 30px; border-radius: 18px; }
  .service-item { padding: 13px 16px; }
  .service-item + .service-item { border-left: 0; border-top: 1px solid var(--line); }
  .service-item p { display: none; }
  .site-footer { margin-top: 10px; }
  .site-footer p:last-child { display: none; }
}
@media (max-width: 390px) { .hero__content { padding-top: 28vh; } .hero__support { font-size: .9rem; } .access-card strong { font-size: .79rem; } }
@media (min-width: 1000px) { .hero__image { background-position: 65% 68%; } }
@media (max-height: 740px) and (min-width: 701px) { .hero__content { padding-top: 10px; } .eyebrow { margin-bottom: 14px; } h1 { font-size: clamp(3.4rem, 6.5vw, 5rem); } .hero__lead { margin-top: 18px; } .access-card { margin-top: 16px; } .service-strip { margin-top: 25px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
