/* ========= Prolyra static — design tokens & base ========= */
:root {
  --background: 210 40% 99%;
  --foreground: 215 45% 12%;
  --card: 0 0% 100%;
  --muted: 210 30% 96%;
  --muted-foreground: 215 16% 42%;
  --primary: 212 90% 38%;
  --secondary: 168 76% 36%;
  --border: 214 32% 90%;
  --brand-blue: 212 90% 38%;
  --brand-blue-deep: 220 70% 22%;
  --brand-green: 168 76% 36%;
  --brand-cream: 40 33% 97%;
  --gradient-brand: linear-gradient(135deg, hsl(var(--brand-blue)) 0%, hsl(var(--brand-green)) 100%);
  --gradient-brand-soft: linear-gradient(135deg, hsl(212 90% 38% / 0.08) 0%, hsl(168 76% 36% / 0.08) 100%);
  --gradient-hero:
    radial-gradient(ellipse at top right, hsl(168 76% 36% / 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, hsl(212 90% 38% / 0.18), transparent 55%),
    linear-gradient(180deg, hsl(40 33% 98%), hsl(210 40% 99%));
  --shadow-elegant: 0 20px 60px -20px hsl(212 60% 30% / 0.18);
  --shadow-soft: 0 8px 24px -12px hsl(212 60% 30% / 0.12);
  --radius: 0.75rem;
}

* { box-sizing: border-box; border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1,h2,h3,h4 {
  font-family: 'Fraunces','Georgia',serif;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========= Utility ========= */
.muted { color: hsl(var(--muted-foreground)); }
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-size: 0.875rem; font-weight: 500;
  color: hsl(var(--secondary));
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.lead { font-size: 1.125rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }
@media(min-width:768px){ .lead { font-size: 1.125rem; } }

/* ========= Buttons ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.5rem; padding: 0 1rem; height: 2.5rem;
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid transparent; transition: background-color .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn-lg { height: 2.75rem; padding: 0 2rem; }
.btn-sm { height: 2.25rem; padding: 0 0.75rem; }
.btn-primary { background: hsl(var(--brand-blue-deep)); color: #fff; box-shadow: var(--shadow-elegant); }
.btn-primary:hover { background: hsl(220 70% 18%); }
.btn-outline { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--primary) / 0.3); }
.btn-outline:hover { background: hsl(var(--muted)); }
.btn .icon { width: 1rem; height: 1rem; }

/* ========= Header ========= */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: hsl(var(--background) / 0.75);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}
header.site .inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
header.site nav { display: none; gap: 1.75rem; align-items: center; }
header.site nav a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color .2s; }
header.site nav a:hover { color: hsl(var(--foreground)); }
header.site .logo { height: 2.25rem; }
@media(min-width:768px){
  header.site nav { display: flex; }
  header.site .logo { height: 2.75rem; }
}
.mobile-toggle { display: inline-flex; background: transparent; border: 0; padding: 8px; color: hsl(var(--foreground)); }
@media(min-width:768px){ .mobile-toggle { display: none; } }
.mobile-menu { display: none; flex-direction: column; padding: 1rem 2rem; gap: 0.75rem; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.95rem; color: hsl(var(--muted-foreground)); }

/* ========= Sections ========= */
section { padding: 6rem 0; }
.section-bg-muted { background: hsl(var(--muted) / 0.3); border-top: 1px solid hsl(var(--border) / 0.6); border-bottom: 1px solid hsl(var(--border) / 0.6); }
.section-bg-hero { background: var(--gradient-hero); position: relative; overflow: hidden; }
.section-bg-cream-down { background: linear-gradient(180deg, hsl(var(--background)), hsl(var(--brand-cream))); }
.section-bg-cream-up { background: linear-gradient(180deg, hsl(var(--brand-cream)), hsl(var(--background))); }
.section-bg-brand-soft { background: var(--gradient-brand-soft); }
.section-thin { padding: 5rem 0; border-top: 1px solid hsl(var(--border) / 0.6); border-bottom: 1px solid hsl(var(--border) / 0.6); }

/* ========= Hero ========= */
.hero-grid { display: grid; gap: 3rem; align-items: center; padding: 5rem 0 7rem; }
@media(min-width:1024px){ .hero-grid { grid-template-columns: 1fr 1fr; padding: 7rem 0; } }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  background: hsl(var(--primary) / 0.05);
  color: hsl(var(--primary));
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: hsl(var(--secondary)); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
h1.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.05;
}
.hero-tag { margin-top: 0.5rem; font-size: 0.95rem; font-style: italic; color: hsl(var(--muted-foreground)); letter-spacing: 0.02em; }
.hero-body { margin-top: 1.25rem; font-size: 1.125rem; color: hsl(var(--muted-foreground)); max-width: 36rem; line-height: 1.7; }
.hero-body strong { color: hsl(var(--foreground)); font-weight: 600; }
.hero-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 28rem; }
.hero-stats .k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.hero-stats .v { margin-top: 4px; font-family: 'Fraunces',serif; font-size: 1rem; font-weight: 600; }

/* ========= Photo Frame (PhotoPlaceholder analog) ========= */
.frame {
  position: relative; overflow: hidden; isolation: isolate;
  background: hsl(40 33% 98%);
  box-shadow: var(--shadow-elegant);
}
.frame.r-lg{border-radius:.5rem}.frame.r-xl{border-radius:.75rem}.frame.r-2xl{border-radius:1rem}.frame.r-3xl{border-radius:1.5rem}
.frame::before {
  content: ""; position: absolute; inset: 0; padding: 2px;
  background: var(--gradient-brand);
  border-radius: inherit;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-tall { aspect-ratio: 4 / 5; }
.aspect-wide { aspect-ratio: 16 / 7; }
figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); text-align: center; }

/* Hero photo wrapper for the floating IP card */
.hero-photo { position: relative; }
.ip-card {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border) / 0.6);
  box-shadow: var(--shadow-soft);
  border-radius: 0.75rem; padding: 0.75rem 1rem;
  display: none;
}
@media(min-width:768px){ .ip-card { display: block; } }
.ip-card .row { display: flex; align-items: center; gap: 0.75rem; }
.ip-card .bubble { height: 2.25rem; width: 2.25rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-brand); color: #fff; }
.ip-card .bubble svg { width: 1rem; height: 1rem; }
.ip-card .label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.ip-card .val { font-size: 0.875rem; font-weight: 600; }

/* ========= Cards & Grids ========= */
.card {
  background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 0.5rem; padding: 1.75rem;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-soft); }

.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media(min-width:768px){ .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media(min-width:768px){ .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2-lg { display: grid; gap: 3.5rem; grid-template-columns: 1fr; }
@media(min-width:1024px){ .grid-2-lg { grid-template-columns: 1fr 1fr; align-items: center; } }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media(min-width:768px){ .grid-4 { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px){ .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card .top-row { display: flex; align-items: center; justify-content: space-between; }
.card .step-n { font-family: ui-monospace,Menlo,monospace; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.card .icon-tile {
  height: 2.25rem; width: 2.25rem; border-radius: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: hsl(var(--primary)); background: var(--gradient-brand-soft);
}
.card h3 { margin-top: 1.25rem; font-size: 1.25rem; }
.card .body { margin-top: 0.75rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.card .small-label { margin-top: 1.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: hsl(var(--secondary)); font-weight: 500; }
.card .small-label + h3 { margin-top: .25rem; }

/* Two-column prose */
.prose-cols { display: grid; gap: 2rem; margin-top: 2rem; }
@media(min-width:768px){ .prose-cols { grid-template-columns: 1fr 1fr; } }
.prose-cols p { color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 1rem; }

/* Section heading block */
.hd { max-width: 42rem; }
.hd.lg { max-width: 48rem; }
.hd h2 { margin-top: 0.75rem; font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem); line-height: 1.15; }
.hd p { margin-top: 1.25rem; }

/* Arrows between cards on desktop */
.arrows-overlay { display: none; }
@media(min-width:768px){
  .grid-3.with-arrows { position: relative; }
  .arrows-overlay {
    display: flex; pointer-events: none;
    position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%);
    justify-content: space-between; padding: 0 30%;
  }
  .arrow-dot {
    width: 2rem; height: 2rem; border-radius: 999px;
    background: hsl(var(--background)); border: 1px solid hsl(var(--border) / 0.7);
    display: flex; align-items: center; justify-content: center;
    color: hsl(var(--muted-foreground));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  }
}

/* Steps (How Alevyra Works) */
.step-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.step-card .img-wrap { position: relative; aspect-ratio: 4 / 3; background: hsl(var(--muted)); overflow: hidden; }
.step-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: hsl(var(--background) / 0.9); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid hsl(var(--border) / 0.6);
  font: 500 0.75rem ui-monospace,Menlo,monospace; color: hsl(var(--foreground));
}
.step-card .pad { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.step-card h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.step-card .body { margin-top: 0.75rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }
.step-wrap { position: relative; }
.step-arrow { display: none; }
@media(min-width:1024px){
  .step-arrow { display: block; position: absolute; top: 28%; right: -1rem; color: hsl(var(--secondary) / 0.6); z-index: 10; width: 1.5rem; height: 1.5rem; }
}

/* Indication cards */
.ind-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ind-card .pad-top { padding: 1rem; }
.ind-card .body-pad { padding: 0.5rem 1.75rem 1.75rem; }
.ind-card h3 { font-family: 'Fraunces',serif; font-size: 1.5rem; font-weight: 600; }
.ind-card p { margin-top: 0.75rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* Team */
.team-grid { display: grid; gap: 2.5rem; margin-top: 3.5rem; grid-template-columns: 1fr; }
@media(min-width:768px){ .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card { background: hsl(var(--card) / 0.9); backdrop-filter: blur(8px); padding: 2rem; box-shadow: var(--shadow-soft); border-radius: 0.5rem; border: 1px solid hsl(var(--border) / 0.7); }
@media(min-width:768px){ .team-card { padding: 2.5rem; } }
.team-head { display: flex; flex-direction: column; gap: 1.25rem; }
@media(min-width:768px){ .team-head { flex-direction: row; align-items: flex-start; } }
.avatar {
  position: relative; height: 10rem; width: 10rem; border-radius: 999px;
  padding: 3px; background: var(--gradient-brand); flex-shrink: 0;
}
.avatar .inner { height: 100%; width: 100%; border-radius: 999px; overflow: hidden; background: hsl(var(--brand-cream)); position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-head h3 { font-family: 'Fraunces',serif; font-size: 1.5rem; font-weight: 600; }
.team-head .role { color: hsl(var(--primary)); font-weight: 500; font-size: 0.875rem; margin-top: 2px; }
.team-bio { margin-top: 1.5rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }
.team-bio p + p { margin-top: 1rem; }
.team-card .mail { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; color: hsl(var(--primary)); font-size: 0.875rem; }
.team-card .mail:hover { text-decoration: underline; }

/* Bullets (Platform vision) */
.bullets { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.bullets li { display: flex; gap: 0.75rem; align-items: flex-start; }
.bullets .marker { margin-top: 0.5rem; height: 0.5rem; width: 0.5rem; border-radius: 999px; background: var(--gradient-brand); flex-shrink: 0; }
.bullets li span:last-child { color: hsl(var(--foreground) / 0.85); }

/* Why now */
.why-now { text-align: center; max-width: 48rem; margin: 0 auto; }
.why-now h2 { margin-top: 0.75rem; font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); line-height: 1.2; }
.why-now .grid-3 { margin-top: 2rem; text-align: left; }
.why-now .post { margin-top: 2.5rem; color: hsl(var(--muted-foreground)); line-height: 1.7; max-width: 36rem; margin-left: auto; margin-right: auto; }

/* Contact form */
.contact-grid { display: grid; gap: 3.5rem; grid-template-columns: 1fr; }
@media(min-width:1024px){ .contact-grid { grid-template-columns: 1fr 1fr; } }
.mail-row { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mail-row a { display: inline-flex; align-items: center; gap: 0.75rem; color: hsl(var(--foreground)); transition: color .2s; }
.mail-row a:hover { color: hsl(var(--primary)); }
.form-card { padding: 2rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / 0.7); border-radius: 0.5rem; box-shadow: var(--shadow-soft); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media(min-width:640px){ .form-row { grid-template-columns: 1fr 1fr; } }
label.fld { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.input, .textarea {
  display: block; width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem; padding: 0.625rem 0.875rem;
  font: inherit; background: hsl(var(--background)); color: hsl(var(--foreground));
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18); }
.textarea { resize: vertical; min-height: 8rem; }
.form > * + * { margin-top: 1.25rem; }

/* Collapsible */
.collapsible {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; background: transparent; border: 0; padding: 0;
}
.collapsible .left { display: flex; align-items: center; gap: 0.75rem; }
.collapsible .left .icon-tile { color: hsl(var(--primary)); background: var(--gradient-brand-soft); width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; }
.collapsible .left small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: hsl(var(--muted-foreground)); }
.collapsible .left strong { display: block; font-family: 'Fraunces',serif; font-size: 1.125rem; font-weight: 600; }
.chev { transition: transform .25s; color: hsl(var(--muted-foreground)); }
.collapsible[aria-expanded="true"] .chev { transform: rotate(180deg); }
.collapse-panel {
  margin-top: 1.25rem; background: hsl(var(--muted) / 0.4);
  border: 1px solid hsl(var(--border) / 0.6); border-radius: 0.75rem;
  padding: 1.25rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7;
  display: none;
}
.collapse-panel.open { display: block; }
.collapse-panel strong { color: hsl(var(--foreground)); }
.collapse-panel p + p { margin-top: 0.75rem; }

/* Footer */
footer.site {
  background: hsl(var(--brand-blue-deep));
  color: rgb(255 255 255 / 0.85);
  border-top: 1px solid hsl(var(--border) / 0.6);
}
footer.site .pad { padding: 3.5rem 0; }
footer.site .grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media(min-width:768px){ footer.site .grid { grid-template-columns: repeat(3, 1fr); } }
footer.site .brand { display: flex; align-items: center; }
footer.site .footer-logo { height: 2rem; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
footer.site .tagline { margin-top: 1rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.6); max-width: 20rem; }
footer.site h4 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.5); font-family: 'Inter',sans-serif; font-weight: 500; }
footer.site ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
footer.site a:hover { color: #fff; }
footer.site .disclaimer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.75rem; color: rgb(255 255 255 / 0.55); line-height: 1.7; }
footer.site .disclaimer strong { color: rgb(255 255 255 / 0.8); }

/* Toast */
.toast-region { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 0.5rem; padding: 0.875rem 1rem; box-shadow: var(--shadow-elegant);
  min-width: 18rem; max-width: 22rem;
  animation: toast-in .25s ease-out;
}
.toast strong { display: block; font-size: 0.875rem; }
.toast span { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
@keyframes toast-in { from{transform:translateY(8px); opacity:0} to{transform:translateY(0); opacity:1} }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* Misc */
.mt-3 { margin-top: 0.75rem; } .mt-5 { margin-top: 1.25rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-14 { margin-top: 3.5rem; } .mt-16 { margin-top: 4rem; }
.disclaimer-italic { margin-top: 2rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); font-style: italic; max-width: 36rem; }
.section-headline-small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: hsl(var(--muted-foreground)); }
.advisors { margin-top: 4rem; }
.advisors h3 { font-family: 'Fraunces',serif; font-size: 1.5rem; font-weight: 600; }
.advisors p { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
