:root{
  --outer:#1a1d22;
  --text:#eef2f7;
  --muted:#c7cfdb;
  --muted2:#9aa6b6;
  --frame-bg:rgba(8,10,12,.65);
  --frame-border:rgba(255,255,255,.10);
  --panel:rgba(20,23,28,.78);
  --panel2:rgba(28,32,38,.80);
  --panel-border:rgba(255,255,255,.08);
  --shadow:0 18px 50px rgba(0,0,0,.55);
  /* slight different blue than reference */
  --accent:#2b78ff;
  --accent2:#1e98d6;
  --container:1120px;
  --radius:10px;
  --radius2:14px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html[data-theme="light"]{
  --outer:#f1f3f6;
  --text:#0f172a;
  --muted:#334155;
  --muted2:#475569;
  --frame-bg:rgba(255,255,255,.82);
  --frame-border:rgba(15,23,42,.12);
  --panel:rgba(255,255,255,.86);
  --panel2:rgba(255,255,255,.92);
  --panel-border:rgba(15,23,42,.12);
  --shadow:0 18px 50px rgba(2,6,23,.18);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background-color:var(--outer);
  background-image:
    radial-gradient(900px 450px at 50% -120px, rgba(43,120,255,.22), transparent 60%),
    radial-gradient(700px 420px at 10% 10%, rgba(30,152,214,.12), transparent 60%),
    url('bg_texture.jpg');
  background-size:auto, auto, 420px 420px;
  background-repeat:no-repeat, no-repeat, repeat;
}

a{color:inherit; text-decoration:none}

/* =========================
   Frame (wie Screenshot)
========================= */
.site-frame{
  max-width:calc(var(--container) + 140px);
  margin:26px auto;
  padding:0;
  border:1px solid var(--frame-border);
  border-radius:var(--radius);
  overflow:hidden;
  background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25));
  box-shadow:var(--shadow);
}
html[data-theme="light"] .site-frame{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
}

.container{max-width:var(--container); margin:0 auto; padding:0 26px}

/* =========================
   Header
========================= */
.site-header{
  position:relative;
  z-index:10;
  background:linear-gradient(180deg, rgba(18,21,26,.92), rgba(18,21,26,.70));
  border-bottom:1px solid rgba(255,255,255,.06);
}
html[data-theme="light"] .site-header{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86));
  border-bottom:1px solid rgba(15,23,42,.10);
}

.header-inner{
  display:flex;
  align-items:center;
  gap:22px;
  height:68px;
}

.brand{display:flex; align-items:center; gap:12px; min-width:280px}
.brand img{height:34px; width:auto; display:block}
.brand span{display:block; line-height:1.1}
.brand span span:first-child{font-weight:720; letter-spacing:.2px}
.brand .brand-sub{font-size:12px; letter-spacing:.22em; color:var(--muted2); margin-top:2px}

.nav{display:flex; gap:18px; flex:1; justify-content:center}
.nav a{
  font-size:13px;
  color:rgba(238,242,247,.85);
  padding:8px 10px;
  border-radius:8px;
}
.nav a:hover{background:rgba(255,255,255,.06)}
.nav a.active{color:#fff; background:rgba(255,255,255,.08)}
html[data-theme="light"] .nav a{color:rgba(15,23,42,.78)}
html[data-theme="light"] .nav a:hover{background:rgba(15,23,42,.06)}
html[data-theme="light"] .nav a.active{color:#0f172a; background:rgba(15,23,42,.08)}

.actions{display:flex; align-items:center; gap:10px}
.iconbtn{
  width:38px; height:38px; border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  display:grid; place-items:center;
  cursor:pointer;
}
.iconbtn:hover{background:rgba(255,255,255,.10)}
.iconbtn svg{width:18px;height:18px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  font-weight:650;
  font-size:13px;
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.10)}
.btn.primary{
  background:linear-gradient(180deg, rgba(43,120,255,.95), rgba(30,152,214,.75));
  border-color:rgba(43,120,255,.55);
  color:#fff;
  box-shadow:0 10px 26px rgba(43,120,255,.20);
}
.btn.primary:hover{filter:brightness(1.04)}

/* =========================
   Hero
========================= */
.hero{position:relative; min-height:420px;}
.hero-bg{
  position:absolute; inset:0;
  background-position:center;
  background-size:cover;
  filter:saturate(.95) contrast(1.05);
}
/* Overlay wie im Screenshot: links dunkler, rechts klarer */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.18) 62%, rgba(0,0,0,.10) 100%),
    radial-gradient(900px 500px at 10% 35%, rgba(43,120,255,.20), transparent 60%),
    radial-gradient(900px 500px at 100% 50%, rgba(255,255,255,.06), transparent 55%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:110px;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  pointer-events:none;
}

.hero-inner{
  position:relative;
  padding:72px 0 46px;
  display:flex;
  align-items:flex-start;
}
.hero-inner > div:first-child{max-width:660px}

.hero h1{
  margin:0;
  font-size:clamp(34px, 4.2vw, 54px);
  line-height:1.05;
  letter-spacing:-.02em;
  text-shadow:0 8px 22px rgba(0,0,0,.55);
}
.hero h1 .sub{
  display:block;
  margin-top:10px;
  font-size:clamp(20px, 2.4vw, 30px);
  font-weight:650;
  color:rgba(238,242,247,.90);
}
.hero p{
  margin:16px 0 0;
  max-width:560px;
  color:rgba(238,242,247,.78);
  font-size:14px;
  line-height:1.55;
}

.hero-cta{margin-top:18px; display:flex; gap:12px; flex-wrap:wrap}

/* optional card in old template: hide to match reference */
.hero-card{display:none !important}
.badge{display:none !important}

/* =========================
   Content
========================= */
main.container{padding:26px 26px 10px}

.notice{background:var(--panel); border:1px solid var(--panel-border); padding:14px; border-radius:10px}

.lead{
  margin:0 auto 26px;
  max-width:860px;
  text-align:center;
  color:rgba(238,242,247,.82);
  padding:18px 18px;
}

.section{margin:34px 0}
.section h2{
  text-align:center;
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:.01em;
}
.section p{max-width:880px; margin:0 auto; text-align:center; color:rgba(238,242,247,.74); line-height:1.6}

/* Cards wie im Screenshot */
.cards.three{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  margin:22px 0 10px;
}
.card{
  background:linear-gradient(180deg, rgba(40,44,52,.70), rgba(22,25,30,.78));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius2);
  padding:24px 22px;
  text-align:center;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
}
html[data-theme="light"] .card{
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.90));
  box-shadow:0 16px 40px rgba(2,6,23,.12);
}

.card-icon{
  width:56px; height:56px;
  margin:0 auto 12px;
  border-radius:14px;
  display:grid; place-items:center;
  background:rgba(43,120,255,.14);
  border:1px solid rgba(43,120,255,.28);
  font-size:24px;
}
.card h3{margin:0 0 10px; font-size:18px}
.card p{margin:0; color:rgba(238,242,247,.74); font-size:13px; line-height:1.55}

/* Team */
.team.two{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:22px;
  margin-top:22px;
}
.team-card{
  background:linear-gradient(180deg, rgba(40,44,52,.58), rgba(22,25,30,.78));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius2);
  overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
}
.team-photo{
  height:320px;
  background-size:cover;
  background-position:center;
  filter:saturate(.95) contrast(1.05);
}
.team-body{padding:18px 18px 16px}
.team-body h3{margin:0; font-size:20px}
.team-body .muted{color:rgba(238,242,247,.70); margin:4px 0 10px}
.team-body ul{margin:10px 0 0; padding-left:18px; color:rgba(238,242,247,.72)}
.team-body li{margin:6px 0; font-size:13px; line-height:1.4}

/* Split / Forms */
.split.two{display:grid; grid-template-columns:1fr 1fr; gap:20px}

.form{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:var(--radius2);
  padding:16px;
}
.form label{display:block; font-size:13px; color:var(--muted); margin:10px 0 6px}
.form input,.form textarea,.form select{
  width:100%;
  padding:10px 11px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:var(--text);
}
html[data-theme="light"] .form input,
html[data-theme="light"] .form textarea,
html[data-theme="light"] .form select{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.12);
  color:#0f172a;
}

/* =========================
   Footer
========================= */
.site-footer{
  background:linear-gradient(180deg, rgba(12,14,18,.75), rgba(12,14,18,.92));
  border-top:1px solid rgba(255,255,255,.06);
}
html[data-theme="light"] .site-footer{
  background:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.94));
  border-top:1px solid rgba(15,23,42,.10);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:26px;
  padding:18px 0;
  align-items:flex-start;
}
.footer-col{min-width:220px}
.small{font-size:12px}
.muted{color:var(--muted2)}
.footer-links{display:flex; gap:14px; justify-content:flex-end}
.social{display:flex; gap:10px; margin-top:12px}
.social a{width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10)}
.social a svg{width:18px;height:18px}
.embed{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.10); padding:10px; border-radius:12px; overflow:hidden}

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .nav{display:none}
  .brand{min-width:0}
  .hero-inner{padding:54px 0 38px}
  .cards.three{grid-template-columns:1fr}
  .team.two{grid-template-columns:1fr}
  .split.two{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .site-frame{margin:0; border-radius:0}
  .header-inner{height:62px}
  .brand img{height:30px}
  .hero{min-height:380px}
}
