/* evolutiv.ai — main stylesheet */

:root {
  --ground: #F3F5EF;
  --soft: #E7ECE3;
  --white: #FFFFFF;
  --ink: #14281D;
  --text: #3D4F44;
  --muted: #4A5A50;
  --line: #D9E0D5;
  --green: #1F6F43;
  --green-tint: #E4EFE6;
  --amber: #B54708;
  --amber-dark: #8A3505;
  --dark: #14281D;
  --dark-2: #1B3326;
  --dark-3: #24402F;
  --dark-line: #3A5446;
  --on-dark: #F3F5EF;
  --on-dark-2: #C6D1C9;
  --amber-light: #F5A35C;
  --radius: 16px;
  --wrap: 1200px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { color: var(--amber); }
a:hover { color: var(--amber-dark); }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--on-dark); padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header { background: var(--dark); color: var(--on-dark); }
.site-header.light { background: var(--ground); color: var(--ink); border-bottom: 1px solid var(--line); }

.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 12px; padding-bottom: 12px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: inherit; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 20px;
}
.site-header:not(.light) .brand svg { color: var(--amber-light); }
.brand-green svg { color: var(--green); }
.brand-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }

.header-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.main-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.main-nav a { color: #E3E9E4; text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--amber-light); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--dark-line); background: transparent; color: var(--on-dark);
  font: 600 14px var(--body); cursor: pointer;
}

.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 38px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink);
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--on-dark); }
.lang-switch.dark { background: transparent; border-color: var(--dark-line); }
.lang-switch.dark a { color: #E3E9E4; }
.lang-switch.dark a[aria-current="true"] { background: var(--on-dark); color: var(--ink); }

@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .header-menu { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 12px; }
  .js .header-menu.open { display: flex; }
  .main-nav { flex-direction: column; gap: 0; }
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: #22402F; color: var(--on-dark); }
.btn-amber { background: var(--amber-light); color: var(--ink); }
.btn-amber:hover { background: #F7B67D; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-outline-light { border-color: var(--on-dark-2); color: var(--on-dark); }
.btn-outline-light:hover { background: var(--dark-2); color: var(--on-dark); }

/* ---------- Sections ---------- */

.dark-band { background: var(--dark); color: var(--on-dark); }
.soft-band { background: var(--soft); }
.border-top { border-top: 1px solid var(--line); }

.section { padding-top: 88px; padding-bottom: 88px; }
.section-top { padding-top: 72px; padding-bottom: 64px; }
.section-pad-bottom { padding-bottom: 80px; }

.eyebrow { margin-bottom: 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow.amber { color: var(--amber-light); }
.eyebrow.green { color: var(--green); }

.section-title { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.1; margin-bottom: 14px; }
.section-intro { font-size: 19px; color: var(--text); max-width: 56ch; margin-bottom: 40px; }
.dark-band .section-intro, .muted-light { color: var(--on-dark-2); }

.lead { margin-top: 28px; font-size: 20px; color: #2E4136; max-width: 60ch; }
.mt { margin-top: 16px; }
.small { font-size: 15px; }
.strong { font-weight: 600; }
.note { margin-top: 28px; font-size: 14px; color: #A9B8AE; }
.terms { margin-top: 28px; color: var(--text); max-width: 70ch; }

/* ---------- Hero ---------- */

.hero .hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 112px;
}
.hero-title { font-size: clamp(44px, 7vw, 88px); line-height: 1; font-weight: 700; max-width: 12ch; }
.hero-sub { margin-top: 28px; font-size: 21px; color: var(--on-dark-2); max-width: 54ch; }
.bio-title { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; font-weight: 700; max-width: 15ch; }

@media (max-width: 900px) {
  .hero .hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
}

/* ---------- Glance strip ---------- */

.glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: -48px; position: relative;
}
.glance-item { background: var(--white); padding: 26px 24px; }
.glance-value { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; }
.glance-label { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.gap-wide { gap: 48px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; color: var(--text); overflow: hidden; }
.card h3 { color: var(--ink); font-size: 22px; margin-bottom: 10px; }
.card-pad { padding: 30px; }
.card-h { font-size: 21px !important; margin-bottom: 18px !important; }
.card-body { padding: 26px 30px 30px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.focus-card { display: flex; flex-direction: column; }
.focus-card h3 { font-size: 26px; margin: 4px 0 0; }
.focus-card .ph { border-radius: 0; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-top: auto; }

.tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green); background: var(--green-tint);
  padding: 5px 10px; border-radius: 999px;
}
.num { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--amber); margin-bottom: 8px; }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack .small { margin-top: 4px; }
.list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.list strong { color: var(--ink); }

.h2-sm { font-size: 30px; margin-bottom: 14px; }
.h2-card { font-size: 26px; margin-bottom: 20px; color: var(--ink); }

.principles blockquote {
  margin: 0; padding: 26px; border-radius: var(--radius); background: var(--white);
  border: 1px solid #D0D8CB; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.3;
}
.phil-notes { margin-top: 36px; gap: 24px 48px; color: var(--text); }

.dark-tile { border: 1px solid var(--dark-line); border-radius: 14px; padding: 22px; background: var(--dark-2); color: #E3E9E4; }
.dark-tile.highlight { border-color: var(--amber-light); background: var(--dark-3); }
.step-title { font-family: var(--display); font-weight: 700; color: var(--amber-light); margin-bottom: 6px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.cta-row > div:first-child { flex: 1 1 440px; }
.cta-row .btn-row { margin-top: 0; }

/* ---------- Image placeholders (replace with <img>) ---------- */

.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, #E4EAE0, #E4EAE0 12px, #DCE3D7 12px, #DCE3D7 24px);
  border: 1px dashed #AEBBA8; border-radius: var(--radius); color: var(--muted);
  font-size: 13px; font-weight: 600; line-height: 1.5;
}
.ph-dark { background: repeating-linear-gradient(45deg, #1F392B, #1F392B 12px, #1B3326 12px, #1B3326 24px); border-color: var(--dark-line); color: var(--on-dark-2); }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-wide { margin-top: 48px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: var(--on-dark-2); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }

/* ---------- Contact page ---------- */

.contact-page { min-height: 100vh; }
.form-card { max-width: 680px; margin: 56px auto 88px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.form-card h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.form-card .intro { color: var(--text); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #B9C4B4; border-radius: 12px;
  font: 16px var(--body); color: var(--ink); background: var(--white);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 3px solid var(--amber-light); outline-offset: 1px; border-color: var(--ink); }
.req { color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card button[type="submit"] { width: 100%; justify-content: center; cursor: pointer; font: 600 17px var(--body); }
.privacy { margin-top: 14px; font-size: 14px; color: var(--muted); }
.message { padding: 14px 16px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; }
.message.success { background: #E4EFE6; color: #14532D; border: 1px solid #B7D3BE; }
.message.error { background: #FBEAE5; color: #7A2E0E; border: 1px solid #F0C3B4; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 28px 20px; margin-top: 32px; }
}

/* ---------- Investors page ---------- */

.inv-hero { padding-top: 88px; padding-bottom: 96px; }
.inv-title { font-size: clamp(40px, 6vw, 72px); max-width: 16ch; }
.mt-lg { margin-top: 32px; }
.milestone-card { display: flex; flex-direction: column; gap: 10px; }
.milestone-card h3 { margin-bottom: 0; }
.milestone {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink); font-weight: 600;
}
.milestone span {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 4px;
}
.dark-quote {
  margin: 0; padding: 26px; border-radius: var(--radius); border: 1px solid var(--dark-line);
  background: var(--dark-2); font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.3;
}
.legal { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; max-width: 90ch; }
.legal h2 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }
