/* =========
   Base
   ========= */
:root{
  --bg: #0b1020;
  --bg-soft: #0e1530;
  --card: #101935;
  --text: #e6eaf2;
  --muted: #96a0b8;
  --brand: #7c5cff;
  --brand-2: #00d1b2;
  --outline: #24304d;
  --ring: rgba(124,92,255,.45);
  --shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 12px;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #f8fafc;
    --bg-soft: #eef2ff;
    --card: #ffffff;
    --text: #0b1220;
    --muted: #596380;
    --brand: #5b43ff;
    --brand-2: #0ea5a4;
    --outline: #e8ecf7;
    --ring: rgba(91,67,255,.35);
    --shadow: 0 10px 30px rgba(2, 6, 23, .06);
  }
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(124,92,255,.15), transparent 60%),
              radial-gradient(1000px 600px at 110% 10%, rgba(14,165,164,.12), transparent 55%),
              var(--bg);
  line-height: 1.6;
}

/* Containers & layout */
.container{
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section-head{
  margin-bottom: 1rem;
}
.section-head h2{
  margin: 0 0 .35rem 0;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  letter-spacing: -0.02em;
}
.muted{ color: var(--muted); }

/* =========
   Header
   ========= */
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(120%) blur(10px);
}

.brand{
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__logo svg .logo-bg{ fill: var(--brand); }
.brand__logo svg .logo-mark{ fill: #fff; }
.brand__text{ font-size: 1.05rem; }

.site-nav{
  display: flex; gap: .8rem; align-items: center;
}
.site-nav a{
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: .55rem .8rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.site-nav a:hover{ background: rgba(255,255,255,.06); }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  will-change: transform;
}
.btn:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.btn--primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(124,92,255,.22);
}
.btn--primary:hover{ transform: translateY(-1px); }
.btn--outline{
  border-color: var(--outline);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover{ background: rgba(255,255,255,.06); }
.btn--ghost{
  border-color: transparent;
  background: transparent;
  color: var(--text);
}
.btn--ghost:hover{ background: rgba(255,255,255,.06); }
.btn--card{
  width: 100%;
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--text);
}
.btn--card:hover{
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(14,165,164,.12));
  border-color: transparent;
}

/* =========
   Hero
   ========= */
.hero{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 48px 0 32px;
  align-items: center;
}
.hero__content h1{
  margin: 0 0 .6rem 0;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.grad{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  color: var(--muted);
  max-width: 58ch;
}
.hero__cta{
  margin-top: 1.2rem;
  display: flex; gap: .8rem; flex-wrap: wrap;
}
/* Abstract art block */
.hero__art{
  min-height: 260px;
  height: 100%;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(400px 220px at 80% 20%, rgba(124,92,255,.35), transparent 50%),
    radial-gradient(380px 240px at 20% 80%, rgba(14,165,164,.35), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  border: 1px solid var(--outline);
  position: relative;
  overflow: hidden;
}
.hero__art::after{
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='320' height='320' viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23ffffff' stop-opacity='.12'/%3E%3Cstop stop-color='%23ffffff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='80' cy='80' r='60' fill='url(%23g)'/%3E%3Ccircle cx='240' cy='240' r='60' fill='url(%23g)'/%3E%3C/svg%3E");
  opacity: .6;
  mix-blend-mode: overlay;
  filter: blur(.3px);
}

/* =========
   Cards
   ========= */
.portals{ padding: 24px 0 8px; }
.card-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 1fr auto;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: transparent;
  background: linear-gradient(180deg, rgba(124,92,255,.10), rgba(14,165,164,.10));
}
.card__top{
  display: grid;
  gap: .65rem;
}
.card h3{
  margin: .25rem 0 0 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.card p{ margin: 0; color: var(--muted); }
.card__icon{ display: flex; align-items: center; }
.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(124,92,255,.25);
}

/* =========
   About
   ========= */
.about{ padding: 28px 0 12px; }
.about__content{
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}

/* =========
   Footer
   ========= */
.site-footer{
  margin-top: 32px;
  border-top: 1px solid var(--outline);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.footer__content{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px 0;
}
.footer__links{
  display: flex; gap: .9rem; flex-wrap: wrap;
}
.footer__links a{
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--outline);
  padding: .45rem .7rem;
  border-radius: 10px;
}
.footer__links a:hover{ background: rgba(255,255,255,.06); }
.footer__copy{
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  padding: 10px 0 20px;
}

/* =========
   Background ornaments
   ========= */
.bg-ornament{
  position: fixed;
  filter: blur(80px);
  opacity: .35;
  z-index: -1;
  pointer-events: none;
}
.bg-ornament--one{
  width: 48vmax; height: 48vmax;
  top: -10vmax; left: -10vmax;
  background: radial-gradient(closest-side, rgba(124,92,255,.5), transparent 60%);
}
.bg-ornament--two{
  width: 48vmax; height: 48vmax;
  bottom: -12vmax; right: -10vmax;
  background: radial-gradient(closest-side, rgba(14,165,164,.45), transparent 60%);
}

/* =========
   Responsive
   ========= */
@media (max-width: 1024px){
  .card-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 784px){
  .hero{ grid-template-columns: 1fr; }
  .hero__art{ min-height: 200px; }
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .site-nav{ display: none; } /* simple mobile header */
}
@media (max-width: 480px){
  .card-grid{ grid-template-columns: 1fr; }
}

/* =========
   Accessibility & motion
   ========= */
a, button, .btn { cursor: pointer; }
a:focus-visible, .btn:focus-visible{
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Logo images */
.brand__image {
  height: 90px;       /* Adjust main company logo size */
  width: auto;
  display: block;
}

/* Card logos */
.card__logo {
  height: 80px;       /* Container height for portal logo */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.card__logo img {
  max-height: 70px;
  max-width: 90%;
  object-fit: contain; /* Keep proportions without distortion */
}

.section-head h2 {
  color: #0b3d91; /* dark blue */
}