:root{
  --navy:#101827;        /* Deep Midnight Navy */
  --darkblue:#203653;    /* Dark Blue */
  --steel:#71849A;       /* Steel Blue */
  --gold:#C5A66A;        /* Muted Gold */
  --white:#F0F1F3;       /* Soft White */
  --card:#16233A;
  --line:rgba(113,132,154,.35);
  --muted:#A9BAC9;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{color-scheme:dark; scroll-behavior:smooth;}
body{
  background:var(--navy);
  color:var(--white);
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{max-width:100%; display:block;}
a{color:inherit;}
.wrap{max-width:1140px; margin:0 auto; padding:0 24px;}
.wrap.narrow{max-width:760px; text-align:center;}
.wrap.narrow .section-sub{margin-left:auto; margin-right:auto;}
.muted{color:var(--muted);}
.small{font-size:13px;}
.eyebrow{letter-spacing:.35em; font-size:11px; font-weight:700; color:var(--gold); text-transform:uppercase;}
.card-eyebrow{letter-spacing:.25em; font-size:11px; font-weight:700; color:var(--gold); text-transform:uppercase; margin-bottom:10px;}

h2{font-family:'Cormorant Garamond',serif; font-weight:600; font-size:40px; line-height:1.15; color:var(--white); margin:10px 0 8px; letter-spacing:.04em;}
h3{font-family:'Cormorant Garamond',serif; font-weight:600; font-size:26px; line-height:1.2; color:var(--white);}

/* ---------- Buttons ---------- */
.btn-gold{
  display:inline-block; background:linear-gradient(180deg,#D6BC85, var(--gold)); color:#101827;
  padding:15px 32px; border-radius:12px; font-weight:700; letter-spacing:.1em; font-size:14px;
  text-decoration:none; border:none; cursor:pointer; text-align:center;
  box-shadow:0 8px 30px rgba(197,166,106,.22);
}
.btn-gold:active{transform:scale(.99);}
.btn-ghost{
  display:inline-block; background:none; border:1px solid var(--line); color:var(--white);
  padding:13px 22px; border-radius:12px; font-weight:600; letter-spacing:.05em; font-size:13px;
  text-decoration:none; cursor:pointer; text-align:center;
}
.btn-ghost:hover{border-color:var(--gold); color:var(--gold);}

/* ---------- Nav ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:10px 24px; background:rgba(16,24,39,.88); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-brand{display:flex; align-items:center; gap:12px; text-decoration:none;}
.nav-brand img{width:42px; height:42px; border-radius:50%; object-fit:cover; border:1.5px solid var(--gold);}
.nav-brand span{font-family:'Cormorant Garamond',serif; font-weight:600; letter-spacing:.22em; font-size:17px; color:var(--gold); line-height:1.1;}
.nav-brand em{display:block; font-style:normal; font-family:'Inter',sans-serif; letter-spacing:.45em; font-size:9px; color:var(--white); margin-top:3px;}
.nav-links{display:flex; align-items:center; gap:30px;}
.nav-links a{text-decoration:none; font-size:13px; letter-spacing:.08em; color:var(--white); font-weight:500; text-transform:uppercase;}
.nav-links a:hover{color:var(--gold);}
.nav-toggle{display:none; background:none; border:1px solid var(--line); border-radius:10px; color:var(--white); font-size:18px; padding:7px 13px; cursor:pointer;}

/* ---------- Hero ---------- */
.hero{position:relative; overflow:hidden; text-align:center; padding:170px 24px 120px; background:var(--navy);}
.hero-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.hero-shade{position:absolute; inset:0; background:linear-gradient(180deg, rgba(16,24,39,.62), rgba(16,24,39,.45) 45%, var(--navy));}
.hero-inner{position:relative; max-width:860px; margin:0 auto;}
.hero-logo{width:118px; height:118px; border-radius:50%; object-fit:cover; border:2px solid var(--gold); margin:0 auto 22px; box-shadow:0 0 44px rgba(197,166,106,.25);}
.hero-logo.small{width:92px; height:92px;}
.hero-brand{letter-spacing:.55em; text-indent:.55em; font-size:17px; color:var(--white); font-weight:600;}
.hero-sub{letter-spacing:.5em; text-indent:.5em; font-size:11px; color:var(--gold); font-weight:700; margin-top:8px;}
.hero-title{font-family:'Cormorant Garamond',serif; font-size:52px; font-weight:600; color:var(--white); margin-top:40px; line-height:1.18; letter-spacing:.03em;}
.hero-support{font-size:17.5px; color:#D8DEE6; max-width:600px; margin:20px auto 0;}
.hero-cta{margin-top:36px;}

/* ---------- Sections ---------- */
.section{padding:96px 0; background:linear-gradient(180deg,#0C1322, var(--navy) 40%, #0C1322);}
.section-alt{background:linear-gradient(180deg,#0C1322, var(--darkblue) 55%, #0C1322);}
.section-sub{color:var(--muted); font-size:16.5px; max-width:640px; margin-bottom:24px;}
.card{background:var(--card); border:1px solid var(--line); border-radius:16px; padding:28px;}

/* About Mario */
.about-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:22px; align-items:start; margin-top:12px;}
.founder-photo{width:100%; border-radius:16px; border:1px solid var(--line); object-fit:cover;}
.why-card{margin-top:22px;}
.why-card p{margin-top:8px; font-size:15.5px;}
.why-card p:first-of-type{margin-top:0;}
.bio-card h3{font-size:30px;}
.bio-title{font-family:'Cormorant Garamond',serif; letter-spacing:.14em; color:var(--gold); font-weight:600; font-size:17px; margin:18px 0 12px;}
.bio-text p{margin-top:13px; font-size:15.5px; line-height:1.7;}
.bio-text p:first-child{margin-top:0; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; color:var(--white);}

/* Discover the app */
.app-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:44px; align-items:center; margin-top:12px;}
.highlights{list-style:none; margin:6px 0 32px;}
.highlights li{
  font-family:'Cormorant Garamond',serif; font-size:22px; letter-spacing:.05em; color:var(--white);
  padding:11px 2px 11px 26px; border-bottom:1px solid var(--line); position:relative;
}
.highlights li:last-child{border-bottom:none;}
.highlights li::before{content:""; position:absolute; left:2px; top:50%; width:7px; height:7px; margin-top:-3.5px; border-radius:50%; background:var(--gold);}

/* Phone mockup (static presentation of the app's home) */
.phone{display:flex; justify-content:center;}
.phone-frame{
  width:300px; border-radius:44px; padding:11px;
  background:linear-gradient(160deg,#2A3950, #0B111E);
  border:1px solid rgba(197,166,106,.45);
  box-shadow:0 34px 70px rgba(0,0,0,.55), 0 0 60px rgba(197,166,106,.08);
}
.phone-notch{width:96px; height:20px; border-radius:0 0 12px 12px; background:#05080F; margin:0 auto 6px;}
.phone-screen{background:#0D1524; border-radius:34px; padding:20px 16px 22px; overflow:hidden; text-align:left;}
.ph-brand{font-family:'Cormorant Garamond',serif; letter-spacing:.35em; font-size:12px; color:var(--gold); font-weight:600; text-align:center;}
.ph-eyebrow{letter-spacing:.22em; font-size:8.5px; font-weight:700; color:var(--steel); margin-top:16px;}
.ph-greeting{font-family:'Cormorant Garamond',serif; font-size:21px; font-weight:600; color:var(--white); line-height:1.2; margin-top:4px;}
.ph-sub{font-size:10.5px; color:var(--muted); margin-top:3px;}
.ph-card{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:13px 14px; margin-top:14px;}
.ph-card-title{font-family:'Cormorant Garamond',serif; font-size:14.5px; font-weight:600; color:var(--white); line-height:1.25;}
.ph-bar{height:6px; border-radius:99px; background:#0A101D; margin-top:10px; overflow:hidden;}
.ph-fill{width:14%; height:100%; border-radius:99px; background:linear-gradient(90deg,#8C7443, var(--gold));}
.ph-card-note{font-size:9.5px; color:var(--muted); margin-top:7px;}
.ph-btn{margin-top:11px; background:linear-gradient(180deg,#D6BC85, var(--gold)); color:#101827; font-size:9.5px; font-weight:700; letter-spacing:.1em; text-align:center; padding:8px 6px; border-radius:8px;}
.ph-game{padding:0; overflow:hidden;}
.ph-game img{width:100%; height:86px; object-fit:cover;}
.ph-game .ph-card-title, .ph-game .ph-card-note{margin-left:14px; margin-right:14px;}
.ph-game .ph-card-title{margin-top:10px;}
.ph-game .ph-card-note{margin-bottom:12px; margin-top:2px;}
.ph-spaces{list-style:none; margin-top:14px;}
.ph-spaces li{display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:7px 1px; border-bottom:1px solid rgba(113,132,154,.22);}
.ph-spaces li:last-child{border-bottom:none;}
.ph-spaces strong{font-size:10px; letter-spacing:.16em; color:var(--white); font-weight:600; white-space:nowrap;}
.ph-spaces span{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:11.5px; color:var(--gold); text-align:right;}

/* Final CTA */
.cta{position:relative; overflow:hidden; text-align:center; padding:110px 24px; background:var(--navy);}
.cta-shade{position:absolute; inset:0; background:radial-gradient(ellipse at 50% 115%, rgba(197,166,106,.28), transparent 55%), linear-gradient(180deg, var(--navy), rgba(16,24,39,.55) 50%, var(--navy));}
.cta-inner{position:relative; max-width:760px; margin:0 auto;}
.cta-title{font-family:'Cormorant Garamond',serif; font-size:44px; font-weight:600; color:var(--white); line-height:1.15; letter-spacing:.03em; margin:0;}
.cta-text{font-size:17px; color:#D8DEE6; max-width:540px; margin:18px auto 0;}
.join-options{display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:42px;}
.join-card{background:rgba(22,35,58,.88); border:1px solid var(--line); border-radius:16px; padding:30px 36px; min-width:252px; display:flex; flex-direction:column; align-items:center;}
.join-card.featured{border-color:var(--gold); box-shadow:0 12px 38px rgba(197,166,106,.20);}
.join-plan{letter-spacing:.3em; font-size:11px; font-weight:700; color:var(--gold); text-transform:uppercase;}
.join-price{font-family:'Cormorant Garamond',serif; font-size:40px; font-weight:600; color:var(--white); line-height:1.1; margin-top:10px;}
.join-price span{font-family:'Inter',sans-serif; font-size:14px; font-weight:500; color:var(--muted); letter-spacing:.03em;}
.join-note{color:var(--gold); font-size:13.5px; letter-spacing:.04em; margin-top:5px; min-height:21px;}
.join-card .btn-gold{margin-top:20px;}

/* Footer */
.footer{padding:64px 0; background:#0A0F1B; border-top:1px solid var(--line); text-align:center;}
.footer .hero-logo{margin-bottom:18px;}
.footer-brand{font-family:'Cormorant Garamond',serif; letter-spacing:.35em; text-indent:.35em; color:var(--gold); font-weight:600; font-size:17px;}
.footer-tag{font-family:'Cormorant Garamond',serif; font-style:italic; font-size:16px; color:var(--white); margin-top:6px;}
.footer-name{font-size:13px; letter-spacing:.14em; color:var(--muted); text-transform:uppercase; margin-top:4px;}
.footer-contact{margin-top:18px; font-size:14.5px;}
.footer-contact a{color:var(--gold); text-decoration:none;}
.footer-contact a:hover{text-decoration:underline;}
.footer-links{margin-top:10px;}
.footer-links a{color:var(--white); font-size:13.5px; letter-spacing:.06em;}
.footer-links a:hover{color:var(--gold);}
.footer-links svg{width:14px; height:14px; vertical-align:-2px; margin-right:5px;}
.footer p{max-width:720px; margin:10px auto 0;}

/* Privacy modal */
.modal{position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:20px;}
.modal[hidden]{display:none;}
.modal-backdrop{position:absolute; inset:0; background:rgba(5,8,15,.78); backdrop-filter:blur(4px);}
.modal-card{position:relative; background:var(--card); border:1px solid var(--gold); border-radius:18px; max-width:560px; width:100%; max-height:84vh; overflow:auto; padding:32px;}
.modal-card h3{margin-bottom:10px;}
.modal-card p{margin-top:12px; font-size:15.5px;}
.modal-card a{color:var(--gold);}
.modal-close{position:absolute; top:14px; right:14px; background:none; border:1px solid var(--line); border-radius:10px; color:var(--white); font-size:14px; padding:6px 11px; cursor:pointer;}
.modal-close:hover{border-color:var(--gold); color:var(--gold);}

/* Reveal on scroll */
.reveal{opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:none;}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1; transform:none; transition:none;}
  html{scroll-behavior:auto;}
}

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .about-grid, .app-grid{grid-template-columns:1fr;}
  .app-grid{gap:34px;}
}
@media (max-width: 680px){
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0; padding:10px 20px 18px;
    background:rgba(16,24,39,.97); border-bottom:1px solid var(--line);
  }
  .nav-links.open{display:flex;}
  .nav-links a{padding:11px 2px; border-bottom:1px solid var(--line);}
  .nav-toggle{display:block;}
  .hero{padding:130px 20px 84px;}
  .hero-title{font-size:34px;}
  h2{font-size:31px;}
  .cta-title{font-size:32px;}
  .section{padding:64px 0;}
}
