/*
 * mySIU - the front door to the SIU's own web apps.
 * The tokens are the travel app's (siu-travel-request-system/tailwind.config.ts),
 * so every app under mysiu.space looks like one family: SIU yellow on ink for
 * the chrome, white cards on a cool "salt" grey for the content.
 */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #FFE500;
  --yellow-bright: #FFEC4D;
  --yellow-dark: #E6CE00;
  --yellow-soft: #FFF9D1;
  --ink: #0B0E14;
  --ink-800: #151A24;
  --ink-700: #1E2532;
  --salt: #F3F5F8;
  --line: #E6E9EF;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;

  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 0 0 1px rgba(11, 14, 20, 0.03), 0 1px 2px rgba(11, 14, 20, 0.04), 0 10px 30px -14px rgba(11, 14, 20, 0.14);
  --shadow-card-hover: 0 0 0 1px rgba(11, 14, 20, 0.05), 0 2px 6px rgba(11, 14, 20, 0.05), 0 22px 44px -18px rgba(11, 14, 20, 0.26);
  --glow-sm: 0 6px 18px -8px rgba(230, 206, 0, 0.75);
  --glow: 0 0 0 1px rgba(255, 229, 0, 0.55), 0 10px 32px -8px rgba(255, 214, 0, 0.55);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  line-height: 1.5;
}

::selection { background: rgba(255, 229, 0, 0.55); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.hero :focus-visible, .cta :focus-visible { outline-color: var(--yellow); }

a { color: inherit; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p, ul { margin: 0; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px;
  background: var(--yellow); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Brand ---------- */

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px -6px rgba(255, 229, 0, 0.45);
}
.brand__logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand__name { display: block; font-size: 15px; font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; }
.brand__tag {
  display: block; margin-top: 3px;
  font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 229, 0, 0.7);
}
.brand--light .brand__logo { box-shadow: 0 0 0 1px rgba(11, 14, 20, 0.08), 0 4px 12px -4px rgba(11, 14, 20, 0.3); }
.brand--light .brand__tag { color: var(--slate-500); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn--primary:hover { background: var(--yellow-bright); box-shadow: var(--glow); transform: translateY(-1px); }

.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }
.btn--ghost:hover svg { transform: translateY(2px); }

.btn--block { width: 100%; }

.btn--waiting {
  background: #EEF1F5; border-color: var(--line); color: var(--slate-500);
  cursor: not-allowed; box-shadow: none;
}
.btn--waiting:hover svg { transform: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-bottom: 184px;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  animation: grid-pan 6s linear infinite;
}
.hero__glow {
  position: absolute; pointer-events: none; border-radius: 999px; filter: blur(64px);
  animation: float 14s ease-in-out infinite;
}
.hero__glow--yellow { right: -160px; top: -180px; width: 560px; height: 560px; background: rgba(255, 229, 0, 0.13); }
.hero__glow--sky { left: -140px; bottom: -220px; width: 420px; height: 420px; background: rgba(56, 189, 248, 0.08); animation-delay: -7s; }

.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; padding-bottom: 24px;
}
.topbar__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.7);
}
.topbar__pill svg { width: 14px; height: 14px; color: var(--yellow); }

.hero__content {
  position: relative;
  max-width: 820px; margin: 0 auto; padding-top: 72px;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 229, 0, 0.9);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--yellow); box-shadow: 0 0 10px rgba(255, 229, 0, 0.9); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6.2vw, 68px); font-weight: 650; line-height: 1.04; letter-spacing: -0.035em;
}
.highlight {
  white-space: nowrap;
  background: linear-gradient(90deg, var(--yellow) 0%, #FCD34D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  max-width: 600px; margin: 20px auto 0;
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: rgba(255, 255, 255, 0.62);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- App cards ---------- */

.apps { position: relative; margin-top: -128px; }
.apps__grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none; padding: 0;
}

.app {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  padding: 26px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.app--live::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--yellow) 0%, #FCD34D 100%);
}
.app--live:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.app__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--ink); color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 24px -12px rgba(11, 14, 20, 0.7);
}
.app__icon svg { width: 24px; height: 24px; }
.app--soon .app__icon { background: var(--ink-700); color: rgba(255, 229, 0, 0.75); }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.status__dot { position: relative; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.status--live { color: #15803D; background: #F0FDF4; border-color: #BBF7D0; }
.status--live .status__dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 999px; background: currentColor;
  animation: pulse-ring 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.status--soon { color: var(--slate-600); background: #F8FAFC; border-color: #E2E8F0; }

.app h3 { margin-top: 22px; font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.app__url { margin-top: 3px; font-family: var(--mono); font-size: 12.5px; color: var(--slate-500); }
.app__desc { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--slate-600); }

.app__list { display: grid; gap: 11px; margin: 20px 0 26px; padding: 0; list-style: none; }
.app__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--slate-700); }
.tick {
  display: grid; place-items: center; width: 20px; height: 20px; margin-top: -1px; border-radius: 999px;
  background: var(--yellow-soft); box-shadow: inset 0 0 0 1px rgba(230, 206, 0, 0.45); color: var(--ink);
}
.tick svg { width: 12px; height: 12px; }

.app__note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 20px 0 26px; padding: 14px 16px; border-radius: 14px;
  border: 1px dashed #CBD5E1; background: #F8FAFC;
  font-size: 14px; line-height: 1.5; color: var(--slate-600);
}
.app__note svg { width: 18px; height: 18px; margin-top: 1px; color: var(--slate-400); }

.app__cta { margin-top: auto; }

/* ---------- How it works ---------- */

.how { padding: 104px 0 96px; }
.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-500);
}
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--yellow-dark); }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; line-height: 1.12; letter-spacing: -0.03em; }
.section-head p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--slate-600); }

.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin-top: 56px; padding: 0; list-style: none;
}
.steps::before {
  content: ''; position: absolute; top: 24px; left: calc(16.66% + 28px); right: calc(16.66% + 28px); height: 1px;
  background: linear-gradient(90deg, rgba(11, 14, 20, 0.08), rgba(11, 14, 20, 0.22), rgba(11, 14, 20, 0.08));
}
.step { position: relative; text-align: center; }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto;
  border-radius: 14px; background: var(--ink); color: var(--yellow);
  font-size: 16px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--salt), 0 12px 24px -12px rgba(11, 14, 20, 0.7);
}
.step h3 { margin-top: 20px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.step p { max-width: 300px; margin: 8px auto 0; font-size: 15px; line-height: 1.6; color: var(--slate-600); }

/* ---------- Closing call to action ---------- */

.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px; border-radius: 28px;
  background: var(--ink); color: #fff;
  box-shadow: 0 24px 60px -24px rgba(11, 14, 20, 0.45);
}
.cta .hero__grid { -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, transparent 70%); }
.cta__glow { position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 999px; background: rgba(255, 229, 0, 0.14); filter: blur(60px); pointer-events: none; }
.cta__text { position: relative; max-width: 560px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 650; line-height: 1.15; letter-spacing: -0.025em; }
.cta p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.cta .btn { position: relative; }

/* ---------- Footer ---------- */

.footer { padding: 72px 0 40px; }
.footer__row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; font-size: 14px; }
.footer__links a { color: var(--slate-600); text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__note { margin-top: 20px; font-size: 12.5px; color: var(--slate-500); }

/* ---------- Motion ---------- */

.rise { animation: fade-up 0.6s var(--ease) both; }
.rise--1 { animation-delay: 80ms; }
.rise--2 { animation-delay: 160ms; }
.rise--3 { animation-delay: 240ms; }
.rise--4 { animation-delay: 320ms; }
.rise--5 { animation-delay: 400ms; }

@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grid-pan { from { background-position: 0 0; } to { background-position: 40px 40px; } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-14px, 10px, 0); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
  .apps__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps::before { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .topbar__pill { display: none; }
  .hero { padding-bottom: 152px; }
  .hero__content { padding-top: 40px; }
  .hero__actions .btn { width: 100%; }
  .apps { margin-top: -104px; }
  .app { padding: 22px; }
  .how { padding: 80px 0 72px; }
  .cta .btn { width: 100%; }
}
