/* styles.css */

.domain-suffix{
  display:inline;
  font-weight:700;
  opacity:.85;
  margin-left:.35em;
  font-size:.72em;
  white-space:nowrap;
}

@media (prefers-color-scheme: dark){
  .domain-suffix{ opacity:.9; }
}

:root{
  --bg0: #070A12;
  --bg1: #0B1224;
  --fg: #0b1020;
  --fg2: rgba(11,16,32,.72);
  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.62);
  --stroke: rgba(15, 23, 42, .12);
  --stroke2: rgba(255,255,255,.18);
  --accent: #1f6feb;
  --accent2: #18a1ff;
  --shadow: 0 18px 55px rgba(0,0,0,.18);
  --radius: 22px;
  --radius2: 16px;
  --focus: 0 0 0 3px rgba(31,111,235,.35);
  --max: 980px;
  color-scheme: light dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.45;
  color: var(--fg);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(31,111,235,.16), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(24,161,255,.12), transparent 60%),
              linear-gradient(180deg, rgba(245,247,255,1) 0%, rgba(235,242,255,1) 100%);
  min-height:100%;
}

.bg{
  position: fixed;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(1000px 500px at 30% 0%, rgba(31,111,235,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(24,161,255,.10), transparent 65%),
    radial-gradient(600px 380px at 50% 100%, rgba(31,111,235,.08), transparent 55%);
  filter: blur(0px);
}

.wrap{
  min-height:100%;
  display:grid;
  place-items:center;
  padding: 22px 14px;
}

.card{
  width: min(var(--max), 100%);
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.2vw, 30px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header{
  display:grid;
  gap: 16px;
  align-items:center;
}

.brand{
  display:flex;
  justify-content:center;
}

.logo-shell{
  position: relative;
  width: min(240px, 72vw);
  height: 84px;
  display:grid;
  place-items:center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  border: 1px solid rgba(15,23,42,.10);
  overflow:hidden;
}

.logo{
  max-width: 92%;
  max-height: 72px;
  width:auto;
  height:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.10));
  mix-blend-mode: multiply;
}

.logo-fallback{
  position:absolute;
  inset:0;
  display:none;
  place-items:center;
  padding: 8px 12px;
}

.logo-placeholder{
  font-weight: 800;
  letter-spacing:.2px;
  font-size: 18px;
  color: rgba(11,16,32,.82);
  text-align:center;
}

.headline{
  text-align:center;
  padding-top: 2px;
}

h1{
  margin: 0;
  font-size: clamp(30px, 4.8vw, 46px);
  letter-spacing: -0.02em;
}

.subtitle{
  margin: 8px 0 0;
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--fg2);
}

.quick-access{
  margin-top: clamp(18px, 3vw, 26px);
}

.quick-access h2{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(11,16,32,.72);
  letter-spacing: .2px;
}

.grid{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.service{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(255,255,255,.60));
  border: 1px solid rgba(15,23,42,.10);
  text-decoration:none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  outline: none;
}

.service:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,235,.35);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.service:focus-visible{
  box-shadow: var(--focus), 0 14px 30px rgba(0,0,0,.10);
  border-color: rgba(31,111,235,.55);
}

.icon{
  width: 42px;
  height: 42px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: radial-gradient(60px 60px at 30% 30%, rgba(31,111,235,.16), transparent 60%),
              linear-gradient(180deg, rgba(31,111,235,.10), rgba(24,161,255,.06));
  border: 1px solid rgba(31,111,235,.18);
  flex: 0 0 auto;
}

.icon svg{
  width: 22px;
  height: 22px;
  fill: rgba(11,16,32,.78);
}

.service-text{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.service-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: rgba(11,16,32,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-desc{
  font-size: 13px;
  color: rgba(11,16,32,.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chev{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.52);
  flex: 0 0 auto;
}

.chev svg{
  width: 18px;
  height: 18px;
  fill: rgba(11,16,32,.66);
}

.footer{
  margin-top: clamp(18px, 3vw, 26px);
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.10);
}

.footer-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
  justify-content:center;
  font-size: 13px;
}

.muted{ color: rgba(11,16,32,.62); }
.dot{ color: rgba(11,16,32,.35); }

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top: 10px;
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.15);
  text-decoration:none;
}
.skip-link:focus{ left: 10px; }

/* Responsive */
@media (min-width: 720px){
  .header{
    grid-template-columns: 1fr;
  }
  .grid{
    grid-template-columns: 1fr 1fr;
  }
  .logo-shell{
    width: 280px;
    height: 92px;
  }
  .logo{
    max-height: 78px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark){
  body{
    color: rgba(243,246,255,.94);
    background: radial-gradient(1100px 700px at 15% 10%, rgba(31,111,235,.22), transparent 55%),
                radial-gradient(900px 600px at 85% 10%, rgba(24,161,255,.18), transparent 60%),
                linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  }

  .card{
    background: rgba(12, 17, 33, .62);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
  }

  .logo-shell{
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.10);
  }

  .logo{
    mix-blend-mode: normal;
    filter: drop-shadow(0 14px 24px rgba(0,0,0,.35));
  }

  .logo-placeholder{
    color: rgba(243,246,255,.88);
  }

  .subtitle,
  .quick-access h2,
  .muted,
  .dot{
    color: rgba(243,246,255,.70);
  }

  .service{
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.10);
  }

  .service:hover{
    border-color: rgba(31,111,235,.55);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }

  .icon{
    border: 1px solid rgba(31,111,235,.30);
    background: radial-gradient(60px 60px at 30% 30%, rgba(31,111,235,.28), transparent 60%),
                linear-gradient(180deg, rgba(31,111,235,.16), rgba(24,161,255,.08));
  }

  .icon svg{
    fill: rgba(243,246,255,.86);
  }

  .service-title{
    color: rgba(243,246,255,.92);
  }

  .service-desc{
    color: rgba(243,246,255,.70);
  }

  .chev{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
  }

  .chev svg{
    fill: rgba(243,246,255,.72);
  }

  .footer{
    border-top: 1px solid rgba(255,255,255,.10);
  }

  .skip-link{
    background: rgba(12, 17, 33, .95);
    color: rgba(243,246,255,.95);
    border: 1px solid rgba(255,255,255,.12);
  }
}

/* Logo fallback toggle (handled by JS) */
.has-logo-fallback .logo{ display:none; }
.has-logo-fallback .logo-fallback{ display:grid; }
