/* =========== GAINS Landing – css_new.css ===========
   Palette: warm beige-gray + pastel blue, with dark-mode toggle via [data-theme]
   Structure matches index.html in canvas. Place file at project root.
====================================================== */

/* ---- Light theme (default) ---- */
:root{
  --bg: #f2f1ed;          /* page background */
  --bg-2:#ebe9e3;         /* subtle section background */
  --card:#fffdf8;         /* cards */
  --muted:#5f646d;        /* muted text */
  --accent:#5aa3d6;       /* pastel blue */
  --accent-2:#9cc9e6;     /* lighter blue */
  --text:#222629;         /* main ink */
  --outline: rgba(25, 28, 32, .10);
  --shadow: 0 10px 28px rgba(0,0,0,.10);
  --radius: 16px;
  --header-bg: #ebe9e3;   /* match footer background */
  --header-border: rgba(25,28,32,.15);
  --btn-ink:#0e1720;
  --icon:#2d6fa3;
}

/* ---- Dark theme overrides ---- */
[data-theme="dark"]{
  --bg: #151b22;
  --bg-2:#1b222b;
  --card:#18222c;
  --muted:#aeb7c4;
  --accent:#7fb6e0; 
  --accent-2:#a8d0ee;
  --text:#e8eef4;
  --outline: rgba(255,255,255,.10);
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --header-bg: #1b222b;   /* match footer background */
  --header-border: rgba(255,255,255,.12);
  --btn-ink:#0b1118;
  --icon:#a8d0ee;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif; 
  color:var(--text); background:
    radial-gradient(800px 400px at 90% -10%, rgba(154, 194, 224, .20), transparent 60%),
    radial-gradient(700px 380px at -10% -10%, rgba(224, 208, 170, .18), transparent 60%),
    var(--bg);
  transition: background-color .2s ease, color .2s ease;
}

img{max-width:100%; height:auto;}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1200px; margin:0 auto; padding:24px}

/* Header bar (same tone as footer) */
header{position:sticky; top:0; z-index:20; background:var(--header-bg); border-bottom:1px solid var(--header-border)}
.nav{display:flex; align-items:center; justify-content:space-between; gap:16px}
.nav a.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; color:var(--text)}
.nav img.logo{height:34px}
.nav ul{list-style:none; display:flex; gap:20px; margin:0; padding:0}
.nav ul a{color:var(--text)}

/* Theme toggle */
.toggle{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; border:1px solid var(--outline); background:var(--card); color:var(--text); box-shadow:var(--shadow); cursor:pointer; font-weight:600; font-size:14px;
}
.toggle svg{width:18px; height:18px}

/* Buttons */
.btn{display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border-radius:12px; background:linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight:700; box-shadow:var(--shadow); border:1px solid var(--outline); color:var(--btn-ink)}
.btn.secondary{background:var(--bg-2); color:var(--text); border:1px solid var(--outline); box-shadow:none}

/* Sections */
.hero{display:grid; grid-template-columns:1.1fr .9fr; gap:32px; align-items:center; padding:56px 0}
.hero h1{font-size:clamp(28px, 5vw, 52px); line-height:1.1; margin:.2em 0 .4em}
.hero p{font-size:clamp(16px, 2.2vw, 20px); color:var(--muted)}

.glass{background:var(--card); border:1px solid var(--outline); border-radius:var(--radius); box-shadow:var(--shadow)}
.hero-card{padding:22px}

.kpi{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px}
.kpi .tile{padding:16px; border-radius:12px; background:var(--bg-2); border:1px solid var(--outline)}
.kpi h3{margin:0; font-size:22px; color:#2d6fa3}
.kpi p{margin:.3em 0 0; color:var(--muted); font-size:13px}

.tag{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px; background:#e9eef5; border:1px solid var(--outline); color:#2d6fa3; font-weight:600; font-size:12px}
[data-theme="dark"] .tag{background:#1f2a36; color:var(--icon)}

.section{padding:32px 0}
.section h2{font-size:clamp(22px, 4vw, 32px); margin:.2em 0 .6em; color:#2d6fa3}
[data-theme="dark"] .section h2{color:var(--icon)}
.grid{display:grid; gap:18px}
.grid.cards{grid-template-columns:repeat(auto-fit, minmax(260px, 1fr))}
.card{padding:22px}

.list{display:grid; grid-template-columns: 1fr; gap:10px}
.list .row{display:grid; grid-template-columns: 220px 1fr; gap:16px; padding:16px; border-radius:12px; border:1px solid var(--outline); background:var(--card)}
.list .row b{color:#2d6fa3}
[data-theme="dark"] .list .row b{color:var(--icon)}

.cta{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:20px; background:linear-gradient(90deg, rgba(154, 194, 224, .22), rgba(230, 222, 204, .22)); border:1px solid var(--outline); border-radius:var(--radius)}
[data-theme="dark"] .cta{background:linear-gradient(90deg, rgba(127,182,224,.15), rgba(80,95,110,.15))}

footer{margin-top:48px; border-top:1px solid var(--outline); background:var(--bg-2)}
[data-theme="dark"] footer{background:var(--bg-2)}
.foot{display:grid; grid-template-columns:2fr 1fr 1fr; gap:18px; padding:26px 0}
.foot h4{margin:.1em 0 .6em; color:#2d6fa3}
[data-theme="dark"] .foot h4{color:var(--icon)}
.muted{color:var(--muted)}

/* Social icons */
.social{display:flex; gap:12px; margin-top:10px}
.social a{display:inline-flex; width:36px; height:36px; border-radius:50%; background:var(--card); border:1px solid var(--outline); align-items:center; justify-content:center; transition:transform .12s ease, background .12s ease}
.social a:hover{transform:translateY(-2px); filter:saturate(120%)}
.social svg{width:20px; height:20px; stroke:var(--icon); fill:none}
.social svg.fill{fill:var(--icon); stroke:none}

/* Responsive */
@media (max-width: 960px){
  .hero{grid-template-columns:1fr}
  .list .row{grid-template-columns:1fr}
  .kpi{grid-template-columns:1fr 1fr}
  .foot{grid-template-columns:1fr}
}



.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .notice {
  background: rgba(255, 255, 255, 0.04);
}
.notice svg {
  width: 40px;
  height: 40px;
  opacity: 0.45;
  flex-shrink: 0;
}
.notice p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 3;
}

