/* ============================================================
   Izythings — feuille de style partagée
   ============================================================ */

:root {
  --paper: #F6F3EC;
  --paper-2: #EFEBE1;
  --ink: #12181C;
  --ink-soft: #3A434A;
  --ink-faint: #6B747B;
  --turquoise: #0BA99A;
  --turquoise-deep: #07897D;
  --sand: #E4C9A0;
  --line: #D9D2C4;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(18,24,28,.04), 0 12px 32px -12px rgba(18,24,28,.16);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(246,243,236,0);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(246,243,236,.82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.brand span { color: var(--turquoise); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.nav-links a.lnk:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(18,24,28,.5); }
.btn-accent { background: var(--turquoise); color: #fff; }
.btn-accent:hover { background: var(--turquoise-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

@media (max-width: 720px) { .nav-links a.lnk { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 84px; overflow: hidden; }
.hero-contours {
  position: absolute; top: -60px; right: -180px; width: 760px; max-width: 90vw;
  color: var(--turquoise); opacity: .16; z-index: 0; pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--turquoise-deep); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--turquoise); display: inline-block; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--turquoise); }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); max-width: 56ch; margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* staggered load */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 84px 0; }
.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); margin-top: 16px; }

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.value .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--turquoise-deep); margin-bottom: 20px; }
.value h3 { font-size: 21px; margin-bottom: 10px; }
.value p { font-size: 16px; color: var(--ink-soft); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.product {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(18,24,28,.04), 0 24px 50px -18px rgba(18,24,28,.28); }
.product.soon { background: var(--paper-2); box-shadow: none; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.product h3 { font-size: 28px; }
.badge { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge-live { background: rgba(11,169,154,.14); color: var(--turquoise-deep); }
.badge-soon { background: rgba(18,24,28,.07); color: var(--ink-faint); }
.product .tag { font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.product .desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 26px; }
.product .foot { margin-top: auto; }
.product .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--turquoise-deep); }
.product .more svg { transition: transform .2s ease; }
.product:hover .more svg { transform: translateX(4px); }
.product .more.disabled { color: var(--ink-faint); cursor: default; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }

/* about */
.about { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.about .eyebrow { color: var(--sand); }
.about .eyebrow::before { background: var(--sand); }
.about h2 { font-size: clamp(28px, 4vw, 44px); max-width: 18ch; }
.about p { color: #C7CBC9; max-width: 60ch; margin-top: 22px; font-size: 18px; }
.about-contours { position: absolute; bottom: -220px; left: -120px; width: 560px; color: var(--turquoise); opacity: .18; }

/* contact */
.contact { text-align: center; padding: 96px 0; }
.contact h2 { font-size: clamp(32px, 5vw, 56px); }
.contact p { color: var(--ink-soft); margin: 18px auto 34px; max-width: 48ch; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 14px; color: var(--ink-faint); transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.copy { font-size: 14px; color: var(--ink-faint); }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; max-width: 760px; }
.legal .back { font-size: 15px; color: var(--turquoise-deep); font-weight: 600; display: inline-flex; gap: 7px; align-items: center; margin-bottom: 36px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.legal .updated { color: var(--ink-faint); font-size: 15px; margin-bottom: 44px; }
.legal h2 { font-size: 24px; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 17px; margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--turquoise-deep); text-decoration: underline; text-underline-offset: 3px; }
.ph { background: rgba(228,201,160,.35); border-bottom: 1px dashed var(--sand); padding: 0 4px; border-radius: 3px; font-style: italic; }
