/* Curavia Premium V3 — elegant, sophisticated, corrected hero cards */
:root{
  --ink:#11131d;
  --deep:#0f2b23;
  --green:#285b48;
  --sage:#dfece3;
  --mist:#f1f7f1;
  --purple:#39275f;
  --lavender:#e9ddfb;
  --lilac:#cab9ee;
  --cream:#fbf8f1;
  --white:#fffefa;
  --muted:#746f7e;
  --gold:#c5a66b;
  --line:rgba(17,19,29,.1);
  --glass:rgba(255,254,250,.72);
  --shadow:0 32px 90px rgba(15,43,35,.18);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(202,185,238,.58), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(223,236,227,.86), transparent 30%),
    radial-gradient(circle at 76% 82%, rgba(40,91,72,.17), transparent 32%),
    linear-gradient(135deg,var(--cream),var(--mist) 48%,var(--lavender));
  line-height:1.6;
  overflow-x:hidden;
}

button,input,textarea,select{font:inherit}
button{border:0;cursor:pointer}
img{display:block;max-width:100%}
.hidden{display:none!important}

.orb{
  position:fixed;
  z-index:-1;
  border-radius:999px;
  filter:blur(55px);
  opacity:.32;
}
.orb-green{width:420px;height:420px;background:#a8cdb0;right:-130px;bottom:4%}
.orb-purple{width:360px;height:360px;background:var(--lilac);left:-90px;top:12%}

.app-shell{
  width:min(1220px,calc(100% - 34px));
  margin:0 auto;
  padding:22px 0 54px;
}

.topbar{
  position:sticky;
  top:14px;
  z-index:20;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:12px;
  margin-bottom:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.76);
  background:rgba(255,254,250,.66);
  backdrop-filter:blur(24px);
  box-shadow:0 18px 48px rgba(15,43,35,.09);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  background:transparent;
  color:inherit;
  text-align:left;
}

.mark{
  width:48px;
  height:48px;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:var(--white);
  font-weight:950;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 24%),
    linear-gradient(135deg,var(--deep),var(--purple));
  box-shadow:0 18px 38px rgba(57,39,95,.25);
}

.brand strong{
  display:block;
  color:var(--deep);
  font-size:1.22rem;
  letter-spacing:-.04em;
  line-height:1;
}

.brand small{
  display:block;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:900;
  font-size:.72rem;
  margin-top:3px;
}

.top-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav-btn{
  background:transparent;
  color:var(--purple);
  font-weight:900;
  padding:10px 14px;
  border-radius:999px;
}

.btn{
  border-radius:999px;
  padding:11px 17px;
  font-weight:950;
  letter-spacing:-.02em;
  transition:.22s ease;
}

.btn:hover,.nav-btn:hover{
  transform:translateY(-2px);
}

.btn-primary{
  color:var(--white);
  background:linear-gradient(135deg,var(--deep),var(--purple));
  box-shadow:0 18px 44px rgba(15,43,35,.24);
}

.btn-soft{
  color:var(--purple);
  background:rgba(255,254,250,.72);
  border:1px solid var(--line);
}

.btn-large{padding:15px 24px}
.btn.full{width:100%;margin-top:18px}

.hero{
  min-height:calc(100vh - 130px);
  display:grid;
  grid-template-columns:1fr .93fr;
  gap:46px;
  align-items:center;
  padding:10px 0 74px;
}

.overline{
  color:var(--green);
  font-size:.78rem;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

h1,h2{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--purple);
  letter-spacing:-.08em;
}

.hero h1,.auth-story h1{
  font-size:clamp(3.6rem,8.3vw,8.4rem);
  line-height:.86;
  max-width:880px;
  margin:16px 0 24px;
}

.lead{
  color:var(--muted);
  font-size:clamp(1.08rem,1.55vw,1.25rem);
  max-width:700px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:32px 0;
}

.metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.metrics div,.panel,.auth-card,.feature-card{
  background:var(--glass);
  border:1px solid rgba(255,255,255,.78);
  border-radius:34px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(22px);
}

.metrics div{
  padding:20px;
}

.metrics strong{
  display:block;
  color:var(--purple);
}

.metrics span{
  color:var(--muted);
  font-size:.92rem;
}

.hero-media{
  position:relative;
  min-height:650px;
}

.image-card{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.78);
  box-shadow:var(--shadow);
}

.primary-image{
  position:absolute;
  inset:20px 40px 28px 0;
  border-radius:46px;
  background:var(--deep);
}

.primary-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.primary-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(15,43,35,.04) 0%,rgba(15,43,35,.08) 42%,rgba(15,43,35,.92) 100%);
}

.image-caption{
  position:absolute;
  left:30px;
  right:30px;
  bottom:26px;
  z-index:1;
  color:var(--white);
  max-width:calc(100% - 220px);
  padding-right:10px;
}

.image-caption span{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.76rem;
  font-weight:950;
  color:rgba(255,254,250,.78);
}

.image-caption strong{
  display:block;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.25rem,4.2vw,3.15rem);
  letter-spacing:-.06em;
  line-height:.95;
  margin:8px 0;
}

.image-caption p{
  color:rgba(255,254,250,.82);
  font-size:.95rem;
}

.floating-note{
  position:absolute;
  right:0;
  width:245px;
  padding:20px;
  border-radius:28px;
  color:var(--deep);
  background:rgba(255,254,250,.84);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 24px 70px rgba(15,43,35,.18);
  backdrop-filter:blur(22px);
  z-index:5;
}

.top-note{top:72px}
.bottom-note{bottom:70px; right:0}

.floating-note span{
  color:var(--green);
  font-size:.78rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.floating-note strong{
  display:block;
  color:var(--purple);
  line-height:1.22;
  margin-top:4px;
  font-size:.98rem;
}

.feature-strip{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding:30px 0;
  border-top:1px solid rgba(17,19,29,.08);
  border-bottom:1px solid rgba(17,19,29,.08);
}

.feature-strip span{
  padding:12px 18px;
  border-radius:999px;
  background:rgba(255,254,250,.65);
  border:1px solid rgba(255,255,255,.78);
  color:var(--purple);
  font-weight:950;
}

.features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  padding:76px 0;
}

.section-heading{
  grid-column:1/-1;
  max-width:860px;
}

.section-heading h2,.panel h2{
  font-size:clamp(2.6rem,5vw,5.3rem);
  line-height:.92;
  margin:12px 0;
}

.section-heading p,.feature-card p,.panel p{
  color:var(--muted);
}

.feature-card{
  padding:26px;
  min-height:270px;
}

.feature-card.wide{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:26px;
  padding:18px;
  align-items:stretch;
}

.feature-card.wide img{
  width:100%;
  height:360px;
  object-fit:cover;
  border-radius:26px;
}

.feature-card.wide div{
  padding:24px 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.feature-card span{
  color:var(--green);
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-size:.78rem;
}

.feature-card h3{
  color:var(--purple);
  font-size:2rem;
  line-height:1;
  letter-spacing:-.055em;
  margin:12px 0;
}

.auth{
  display:grid;
  grid-template-columns:1fr .88fr;
  gap:24px;
  min-height:calc(100vh - 140px);
  align-items:start;
}

.auth-story{
  min-height:620px;
  border-radius:42px;
  padding:42px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:var(--white);
  background:
    linear-gradient(145deg,rgba(15,43,35,.92),rgba(57,39,95,.72)),
    url("https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=1300&q=80");
  background-size:cover;
  background-position:center;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.78);
}

.auth-story h1,.auth-story p{color:var(--white)}
.auth-story p{
  max-width:620px;
  color:rgba(255,254,250,.82);
  font-size:1.08rem;
}

.auth-card{
  padding:30px;
}

.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:6px;
  border-radius:999px;
  background:rgba(17,19,29,.05);
  margin-bottom:22px;
}

.auth-tabs button{
  padding:12px;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-weight:950;
}

.auth-tabs button.active{
  color:var(--white);
  background:linear-gradient(135deg,var(--deep),var(--purple));
}

label{
  display:block;
  margin:14px 0 7px;
  color:var(--deep);
  font-size:.88rem;
  font-weight:950;
}

input,select,textarea{
  width:100%;
  border:1px solid rgba(17,19,29,.12);
  border-radius:18px;
  padding:13px 14px;
  background:rgba(255,254,250,.78);
  color:var(--ink);
  outline:none;
}

textarea{
  resize:vertical;
  min-height:96px;
}

.helper{
  margin-top:14px;
  text-align:center;
  color:var(--muted);
}

.helper button{
  background:transparent;
  color:var(--green);
  font-weight:950;
}

.studio{
  display:grid;
  grid-template-columns:310px 1fr;
  gap:20px;
  align-items:start;
}

.sidebar,.workspace{
  display:grid;
  gap:18px;
}

.panel{
  padding:28px;
}

.profile-card{
  display:flex;
  align-items:center;
  gap:14px;
}

.avatar{
  width:58px;
  height:58px;
  border-radius:22px;
  display:grid;
  place-items:center;
  color:var(--white);
  font-weight:950;
  font-size:1.35rem;
  background:linear-gradient(135deg,var(--deep),var(--purple));
}

.profile-card strong,.profile-card span,.profile-card small{
  display:block;
}

.profile-card strong{
  color:var(--purple);
  line-height:1.1;
}

.profile-card span,.profile-card small{
  color:var(--muted);
  font-size:.88rem;
}

.menu{
  display:grid;
  gap:10px;
}

.menu-btn{
  padding:14px 15px;
  border-radius:18px;
  text-align:left;
  color:var(--purple);
  font-weight:950;
  background:rgba(255,254,250,.58);
  border:1px solid var(--line);
}

.menu-btn.active{
  color:var(--white);
  background:linear-gradient(135deg,var(--deep),var(--purple));
}

.dashboard-hero{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
}

.dashboard-hero h2{
  max-width:760px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:18px 0;
}

.stats div{
  padding:22px;
  border-radius:28px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 18px 50px rgba(15,43,35,.09);
}

.stats strong{
  display:block;
  font-size:2.2rem;
  color:var(--purple);
  line-height:1;
}

.stats span{
  color:var(--muted);
  font-weight:850;
}

.cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.life-card{
  padding:22px;
  border-radius:30px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 18px 50px rgba(15,43,35,.09);
}

.life-card h3{
  color:var(--purple);
  line-height:1.15;
  margin-bottom:7px;
}

.life-card p,.life-card ul{
  color:var(--muted);
}

.life-card ul{
  margin-top:10px;
  padding-left:18px;
}

.life-card li{margin:7px 0}

.era-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin:20px 0;
}

.era{
  padding:18px;
  border-radius:24px;
  text-align:left;
  background:rgba(255,254,250,.64);
  border:1px solid var(--line);
}

.era.selected{
  background:linear-gradient(135deg,rgba(223,236,227,.88),rgba(233,221,251,.88));
  outline:3px solid rgba(40,91,72,.24);
}

.era strong{
  display:block;
  color:var(--purple);
}

.era span{
  color:var(--muted);
  font-size:.9rem;
}

.plan-list{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.plan-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border-radius:22px;
  background:rgba(255,254,250,.62);
  border:1px solid var(--line);
}

.plan-item strong{
  color:var(--purple);
}

.plan-item span{
  color:var(--green);
  font-weight:950;
  white-space:nowrap;
}

.share-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:18px;
}

.share-card{
  min-height:480px;
  padding:32px;
  border-radius:34px;
  color:var(--white);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:
    linear-gradient(145deg,rgba(15,43,35,.86),rgba(57,39,95,.82)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80");
  background-size:cover;
  background-position:center;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.78);
}

.share-card span{
  width:max-content;
  padding:9px 13px;
  border-radius:999px;
  background:rgba(255,254,250,.16);
  border:1px solid rgba(255,255,255,.24);
  font-weight:950;
}

.share-card h2{
  font-size:clamp(3rem,5vw,5.4rem);
  line-height:.88;
  color:var(--white);
}

.share-card p,.share-card small{
  color:rgba(255,254,250,.82);
}

.caption{
  min-height:170px;
  padding:16px;
  margin-top:14px;
  border-radius:20px;
  white-space:pre-line;
  color:var(--muted);
  background:rgba(255,254,250,.64);
  border:1px solid var(--line);
}

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  z-index:50;
  color:var(--white);
  background:linear-gradient(135deg,var(--deep),var(--purple));
  padding:12px 18px;
  border-radius:999px;
  box-shadow:var(--shadow);
  font-weight:950;
}

@media(max-width:980px){
  .topbar{border-radius:30px}
  .nav-btn{display:none}
  .hero,.auth,.studio,.share-grid,.feature-card.wide{
    grid-template-columns:1fr;
  }
  .hero{min-height:auto}
  .hero-media{min-height:560px}
  .primary-image{inset:0 0 40px 0}
  .image-caption{max-width:calc(100% - 34px)}
  .floating-note{right:20px}
  .top-note{top:28px}
  .bottom-note{bottom:0}
  .metrics,.features,.stats,.cards,.era-grid{
    grid-template-columns:1fr;
  }
  .dashboard-hero{display:grid}
}

@media(max-width:620px){
  .app-shell{width:min(100% - 22px,1220px)}
  .top-actions{gap:6px}
  .btn{padding:10px 13px}
  .hero h1,.auth-story h1{font-size:3.55rem}
  .auth-story{min-height:470px;padding:28px}
  .auth-card,.panel{padding:24px}
  .feature-card.wide img{height:280px}
  .hero-media{min-height:520px}
  .floating-note{width:220px}
  .bottom-note{bottom:-8px}
}
