:root{
  --bg: #e9edf5;
  --frame: rgba(255,255,255,.72);
  --surface: rgba(255,255,255,.86);
  --text: #0f1f33;
  --muted: #4d5e73;
  --line: rgba(12, 28, 54, .10);
  --shadow: 0 20px 60px rgba(12, 28, 54, .18);
  --shadow-soft: 0 10px 26px rgba(12, 28, 54, .10);
  --radius: 18px;

  --primary: #1d3e72;
  --primary-2: #2f7fb8;
  --primary-3: #7fb9e6;

  --btn: linear-gradient(180deg, #2f7fb8 0%, #1d3e72 100%);
  --btn-hover: linear-gradient(180deg, #3890cd 0%, #214a86 100%);

  --max: 980px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 360px at 20% 0%, rgba(47,127,184,.20), transparent 58%),
    radial-gradient(900px 420px at 90% 10%, rgba(29,62,114,.18), transparent 55%),
    linear-gradient(180deg, #f4f7fc 0%, var(--bg) 100%);
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--primary); }
a:focus-visible{
  outline: 3px solid rgba(47,127,184,.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.page{
  padding: 44px 18px 64px;
}

.frame{
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--radius);
  background: var(--frame);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.65);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.frame::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(800px 280px at 15% 0%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(800px 320px at 95% 15%, rgba(255,255,255,.65), transparent 55%);
  opacity:.55;
}

.header{
  position: relative;
  z-index: 2;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.55));
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 220px;
}
.brand svg{ width: 34px; height:34px; flex: 0 0 auto; }
.brand .name{
  font-weight: 750;
  letter-spacing: .2px;
  color: var(--primary);
}
.brand .name span{
  font-weight: 700;
  color: rgba(29,62,114,.55);
}

.nav{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: .95rem;
  color: rgba(15,31,51,.78);
}
.nav a:hover{
  background: rgba(47,127,184,.10);
  color: var(--primary);
}
.nav a[aria-current="page"]{
  background: rgba(29,62,114,.10);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(12,28,54,.06);
}

.hero{
  position: relative;
  z-index: 1;
  padding: 56px 22px 42px;
  min-height: 320px;
  background:
    radial-gradient(1200px 420px at 10% 20%, rgba(255,255,255,.95), rgba(255,255,255,.65) 60%, rgba(255,255,255,.35) 100%);
}
.hero::after{
  content:"";
  position:absolute;
  inset: 0;
  background-image: url("../images/waves.svg");
  background-repeat: no-repeat;
  background-position: 0%;
  background-size: 100% auto;
  opacity: .95;
  pointer-events:none;
}

.hero-inner{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: center;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}
.hero h1 .light{
  color: rgba(47,127,184,.85);
  font-weight: 750;
}
.hero p{
  margin: 0 0 18px;
  color: rgba(15,31,51,.68);
  font-size: 1.05rem;
  max-width: 54ch;
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.55);
  background: var(--btn);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 10px 20px rgba(29,62,114,.22);
}
.cta:hover{ background: var(--btn-hover); color: #fff; }
.cta:active{ transform: translateY(1px); }

/* content */
.content{
  position: relative;
  z-index: 2;
  padding: 22px;
  background: rgba(255,255,255,.10);
}

.section-title{
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: rgba(29,62,114,.92);
  letter-spacing: -0.01em;
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.card{
  background: var(--surface);
  border: 1px solid rgba(12,28,54,.10);
  border-radius: 14px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-soft);
  display:flex;
  gap: 12px;
}
.card .icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(47,127,184,.12);
  display:grid;
  place-items:center;
  color: var(--primary);
  border: 1px solid rgba(47,127,184,.16);
  flex: 0 0 auto;
}
.card .icon svg{ width: 22px; height: 22px; }
.card h3{
  margin: 0 0 4px;
  font-size: 1.02rem;
}
.card p{
  margin: 0;
  color: rgba(15,31,51,.66);
  font-size: .98rem;
}

.surface{
  margin-top: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(12,28,54,.10);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(12,28,54,.10);
}

.surface p{ margin: 0; color: rgba(15,31,51,.70); }

.footer{
  position: relative;
  z-index: 2;
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: rgba(15,31,51,.62);
  font-size: .92rem;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.40));
}

.footer a{
  color: rgba(15,31,51,.62);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer a:hover{ color: var(--primary); }

/* page header (non-home) */
.page-hero{
  padding: 40px 22px 18px;
  min-height: 200px;
  background:
    radial-gradient(1200px 420px at 10% 20%, rgba(255,255,255,.95), rgba(255,255,255,.65) 60%, rgba(255,255,255,.35) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("../images/waves.svg");
  background-repeat:no-repeat;
  background-position: right bottom;
  background-size: 100% auto;
  opacity: .70;
  pointer-events:none;
}
.page-hero h1{
  position: relative;
  z-index: 2;
  margin:0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.01em;
}
.page-hero p{
  position: relative;
  z-index: 2;
  margin:0;
  color: rgba(15,31,51,.68);
  max-width: 72ch;
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(15,31,51,.70);
}
.list li{ margin: 6px 0; }

@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero::after{ background-size: 100% auto; opacity: .75; }
  .page-hero::after{ background-size: 100% auto; }
  .brand{ min-width: auto; }
}

@media (max-width: 720px){
  .nav{ justify-content: flex-start; }
  .grid{ grid-template-columns: 1fr; }
  .page{ padding: 28px 14px 48px; }
}
.nav-mobile{ display:none; }

@media (max-width: 720px){
  .nav-desktop{ display:none; }
  .nav-mobile{ display:block; }
}

/* Hamburger button */
.nav-mobile summary{
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(12,28,54,.10);
  background: rgba(255,255,255,.65);
  box-shadow: 0 6px 16px rgba(12,28,54,.10);
}
.nav-mobile summary::-webkit-details-marker{ display:none; }

.hamburger{
  width: 22px;
  height: 14px;
  display: inline-block;
  position: relative;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position: absolute;
  left:0; right:0;
  height: 2px;
  background: rgba(15,31,51,.78);
  border-radius: 999px;
}
.hamburger::before{ top:0; box-shadow: 0 6px 0 rgba(15,31,51,.78); }
.hamburger::after{ bottom:0; }

/* Dropdown panel */
.nav-panel{
  position: absolute;
  right: 22px;
  top: 64px;
  width: min(260px, calc(100vw - 44px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(12,28,54,.10);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(12,28,54,.18);
  padding: 8px;
  display: grid;
  gap: 4px;
  z-index: 50;
}

.nav-panel a{
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(15,31,51,.78);
}
.nav-panel a:hover{
  background: rgba(47,127,184,.10);
  color: var(--primary);
}

.nav-mobile[open] summary{
  background: rgba(47,127,184,.10);
}

@media (max-width: 640px) {
  .header{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav{
    width: 100%;
    justify-content: flex-start; /* or center if you prefer */
    gap: 10px;
  }

  .nav a{
    flex: 0 0 auto;
  }
}