/* ============================================================
   GREE SINGAPORE — LANDING PAGE SYSTEM
   Built to the Gree Overseas VI Manual (2024) + SG discovery.
   Design thesis: warranty numbers do the persuading.
   The 800-weight numeral is the signature; everything else stays quiet.
   Ratio law: ~50% white · 20% blue · 15% warmth · 10% grey · 5% support.
   ============================================================ */

/* ---------- Tokens ---------- */
:root{
  --blue:#004098;        /* Gree Blue — structure, CTAs, links, big numbers */
  --blue-logo:#0C4DA2;   /* the logo's own blue, for hairlines that sit near the mark */
  --blue-deep:#00306f;   /* pressed / footer depth */
  --orange:#EA5504;      /* accent — ONE per screen, never a background fill */
  --ink:#16202E;         /* headlines + body on light */
  --grey:#6B7280;        /* secondary text */
  --sky:#EAF2FB;         /* section washes / cards */
  --sky-line:#D8E5F6;    /* hairlines on sky */
  --line:#E7EBF0;        /* hairlines on white */
  --white:#FFFFFF;

  --wrap:1180px;
  --gutter:clamp(20px, 5vw, 64px);
  --radius:16px;
  --radius-sm:10px;
  --radius-btn:12px;
  /* hue-tinted shadows — carry the Gree blue, never flat black */
  --shadow-soft:0 34px 70px -34px rgba(0,50,120,.30), 0 10px 26px -16px rgba(0,64,152,.14);
  --shadow-card:0 22px 44px -26px rgba(0,50,120,.24);
  --shadow-press:0 4px 12px -6px rgba(0,64,152,.35);
  --ease:cubic-bezier(.22,.61,.36,1);
  --z-head:50;

  --font:'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto;}}
body{
  margin:0;
  font-family:var(--font);
  font-weight:400;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--blue);text-decoration:none;}
h1,h2,h3,p{margin:0;}
p{text-wrap:pretty;}
button{font-family:inherit;}

/* ---------- Type scale (sentence case everywhere; tight tracking on heads) ---------- */
.eyebrow{
  font-size:.82rem;font-weight:600;color:var(--blue);
  letter-spacing:.01em;display:inline-flex;align-items:center;gap:.6rem;margin:0 0 1.1rem;
}
.eyebrow::before{content:"";width:26px;height:2px;background:var(--blue);border-radius:2px;flex:none;}

h1,.h1{
  font-weight:600;letter-spacing:-.022em;line-height:1.06;
  font-size:clamp(2rem, 5.4vw, 4rem);
  overflow-wrap:break-word;text-wrap:balance;
}
h2,.h2{
  font-weight:600;letter-spacing:-.02em;line-height:1.12;
  font-size:clamp(1.8rem, 3.6vw, 2.9rem);
}
h3,.h3{
  font-weight:600;letter-spacing:-.012em;line-height:1.22;
  font-size:clamp(1.12rem, 1.8vw, 1.35rem);
}
.lede{font-size:clamp(1.05rem,1.5vw,1.28rem);color:var(--grey);max-width:46ch;}
.muted{color:var(--grey);}
strong{font-weight:600;}

/* The signature: the oversized warranty numeral */
.numeral{
  font-weight:800;line-height:.86;letter-spacing:-.03em;color:var(--blue);
  font-variant-numeric:tabular-nums;
  font-size:clamp(5rem, 15vw, 12.5rem);
  display:block;
}
.numeral--sm{font-size:clamp(3.6rem,9vw,6.5rem);}

/* the single orange accent per screen — a crisp underline mark */
.mark{
  background-image:linear-gradient(var(--orange), var(--orange));
  background-repeat:no-repeat;
  background-size:100% 4px;
  background-position:0 100%;
  padding-bottom:.06em;
}

/* ---------- Layout ---------- */
.wrap{max-width:var(--wrap);margin:0 auto;padding-inline:var(--gutter);}
/* prevent grid/flex track blow-out from media children (min-width:auto default) */
.hero__grid>*,.split>*,.enquire>*,.ledger>*,.specs>*,.cards>*,.trust-grid>*{min-width:0;}
.section{padding-block:clamp(64px, 9vw, 128px);}
.section--tight{padding-block:clamp(48px, 6vw, 84px);}
.section--sky{background:var(--sky);}
.section--white{background:var(--white);}

/* ---------- Header ---------- */
.site-head{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.86);backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-head__row{display:flex;align-items:center;justify-content:space-between;gap:1rem;
  height:84px;max-width:var(--wrap);margin:0 auto;padding-inline:var(--gutter);}
.logo{display:flex;align-items:center;}
.logo img{height:52px;width:auto;}
.head-cta{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--blue);color:#fff;font-weight:600;font-size:.95rem;
  padding:.7rem 1.25rem;border-radius:10px;transition:background .2s var(--ease),transform .12s var(--ease);
}
.head-cta:hover{background:var(--blue-deep);transform:translateY(-1px);}
.head-cta:active{transform:translateY(0) scale(.98);}
@media (max-width:600px){.site-head__row{height:80px;} .logo img{height:44px;}}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  font-weight:600;font-size:1.02rem;line-height:1;cursor:pointer;
  padding:1rem 1.7rem;border-radius:var(--radius-btn);border:0;
  transition:background .2s var(--ease),transform .12s var(--ease),box-shadow .2s var(--ease);
}
.btn--primary{background:var(--blue);color:#fff;box-shadow:0 14px 26px -14px rgba(0,64,152,.55);}
.btn--primary:hover{background:var(--blue-deep);transform:translateY(-2px);box-shadow:0 20px 32px -16px rgba(0,64,152,.6);}
.btn--primary:active{transform:translateY(0) scale(.985);box-shadow:var(--shadow-press);}
.btn--ghost{background:#fff;color:var(--blue);box-shadow:inset 0 0 0 1.5px var(--sky-line);}
.btn--ghost:hover{box-shadow:inset 0 0 0 1.5px var(--blue);transform:translateY(-2px);}
.btn--ghost:active{transform:translateY(0) scale(.985);}
.btn--block{width:100%;}

/* text link with arrow — replaces the generic "second ghost button" */
.link-arrow{
  display:inline-flex;align-items:center;gap:.5rem;font-weight:600;font-size:1.02rem;
  color:var(--blue);padding:1rem .2rem;position:relative;
}
.link-arrow svg{transition:transform .2s var(--ease);}
.link-arrow::after{content:"";position:absolute;left:.2rem;right:1.9rem;bottom:.75rem;height:1.5px;
  background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .28s var(--ease);}
.link-arrow:hover::after{transform:scaleX(1);}
.link-arrow:hover svg{transform:translateX(3px);}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;isolation:isolate;background:
   radial-gradient(90% 70% at 88% -18%, #DCEAFB 0%, rgba(220,234,251,0) 55%),
   radial-gradient(70% 60% at 8% 120%, #F1F6FD 0%, rgba(241,246,253,0) 60%),
   var(--white);}
/* whisper of grain, hero-only, so the clean white content areas stay crisp */
.hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");}
@media (prefers-reduced-motion: reduce){.hero::before{opacity:.35;}}
.hero__grid{
  display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(24px,4vw,56px);align-items:center;
  padding-block:clamp(40px,6vw,76px);
}
.hero__copy{max-width:34rem;}
.hero__lede{margin-top:1.25rem;}
.hero__cta-row{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:2rem;align-items:center;}
.hero__trust{margin-top:1.5rem;font-size:.9rem;color:var(--grey);display:flex;align-items:center;gap:.55rem;}
.hero__trust svg{flex:none;color:var(--blue);}

.hero__stage{position:relative;display:flex;justify-content:center;align-items:center;}
.hero__product{
  width:100%;max-width:640px;filter:drop-shadow(0 40px 44px rgba(22,32,46,.16));
}
.hero__roundel{
  position:absolute;bottom:-6px;right:2%;width:clamp(88px,13vw,138px);
  filter:drop-shadow(0 12px 22px rgba(0,64,152,.28));
}

/* warranty pill inside first viewport */
.warranty-pill{
  display:inline-flex;align-items:center;gap:.7rem;max-width:100%;
  background:#fff;border:1px solid var(--sky-line);border-radius:999px;
  padding:.5rem 1rem;box-shadow:var(--shadow-card);
  font-size:.9rem;font-weight:600;color:var(--ink);line-height:1.3;
}
.warranty-pill svg{flex:none;}
.warranty-pill b{color:var(--blue);}
.warranty-pill .dot{width:6px;height:6px;border-radius:50%;background:var(--orange);flex:none;}

/* ---------- Warranty ledger (the numeric spine) ---------- */
.ledger{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,4vw,48px);align-items:end;}
.ledger__item{border-top:2px solid var(--ink);padding-top:1.1rem;}
.ledger__num{display:flex;align-items:baseline;gap:.4rem;}
.ledger__unit{font-weight:600;font-size:clamp(1rem,2vw,1.4rem);color:var(--ink);letter-spacing:-.01em;}
.ledger__label{margin-top:.4rem;font-weight:600;color:var(--ink);}
.ledger__note{color:var(--grey);font-size:.95rem;margin-top:.15rem;}
.ledger__lead{max-width:30ch;}

/* ---------- Spec band (editorial — replaces generic icon-card row) ---------- */
.specs{display:grid;grid-template-columns:repeat(4,1fr);border-top:2px solid var(--ink);}
.spec{padding:1.75rem 1.5rem 0;border-left:1px solid var(--sky-line);}
.spec:first-child{border-left:0;padding-left:0;}
.spec__k{font-size:.78rem;font-weight:600;color:var(--blue);letter-spacing:.03em;margin-bottom:.6rem;}
.spec__v{font-weight:600;font-size:clamp(1.15rem,1.7vw,1.42rem);letter-spacing:-.015em;color:var(--ink);line-height:1.14;}
.spec__d{color:var(--grey);font-size:.92rem;margin-top:.45rem;}

/* ---------- Tick list (custom Gree marker — no Feather icons) ---------- */
.ticks{list-style:none;padding:0;margin:1.6rem 0 0;display:grid;gap:.95rem;}
.ticks li{position:relative;padding-left:2.1rem;color:var(--ink);}
.ticks li::before{content:"";position:absolute;left:0;top:.1rem;width:1.15rem;height:1.15rem;border-radius:6px;
  background:var(--sky);box-shadow:inset 0 0 0 1.5px var(--sky-line);}
.ticks li::after{content:"";position:absolute;left:.36rem;top:.34rem;width:.34rem;height:.62rem;
  border:solid var(--blue);border-width:0 2px 2px 0;transform:rotate(42deg);}
.section--white .ticks li::before{background:#fff;}

/* ---------- Hardware / component cards ---------- */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.6vw,30px);}
.card{
  background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-card);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
}
.card:hover{transform:translateY(-5px);box-shadow:0 30px 56px -28px rgba(0,50,120,.32);}
.card__media{background:var(--sky);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:1.4rem;border-radius:var(--radius) var(--radius) 0 0;}
.card__media img{max-height:100%;width:auto;object-fit:contain;}
.card__body{padding:1.3rem 1.4rem 1.5rem;}
.card__body h3{margin-bottom:.35rem;}
.card__body p{color:var(--grey);font-size:.95rem;}

/* ---------- Split feature ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px);align-items:center;}
.split__media{border-radius:var(--radius);overflow:hidden;background:var(--sky);box-shadow:var(--shadow-card);}
.split__media img{width:100%;height:100%;object-fit:cover;display:block;}
.split ul{list-style:none;padding:0;margin:1.4rem 0 0;display:grid;gap:.9rem;}
.split li{display:flex;gap:.7rem;align-items:flex-start;color:var(--ink);}
.split li svg{color:var(--blue);flex:none;margin-top:.2rem;}

/* ---------- Trust photos ---------- */
.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.6vw,30px);}
.trust-card{border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:var(--shadow-card);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);}
.trust-card:hover{transform:translateY(-4px);box-shadow:0 30px 56px -28px rgba(0,50,120,.3);}
.trust-card__img{aspect-ratio:4/3;overflow:hidden;}
.trust-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease);}
.trust-card:hover .trust-card__img img{transform:scale(1.04);}
.trust-card__cap{padding:1.1rem 1.25rem 1.35rem;}
.trust-card__cap h3{font-size:1.05rem;margin-bottom:.2rem;}
.trust-card__cap p{color:var(--grey);font-size:.92rem;}

/* ---------- Quote / regret line ---------- */
.stmt{max-width:22ch;font-weight:600;letter-spacing:-.02em;line-height:1.1;
  font-size:clamp(1.9rem,4.4vw,3.2rem);}
.stmt em{font-style:normal;color:var(--blue);}

/* ---------- Enquiry form ---------- */
.enquire{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(28px,5vw,64px);align-items:center;}
.enquire__aside .numeral--sm{margin-bottom:.4rem;}
.form-card{
  background:#fff;border:1px solid var(--sky-line);border-radius:var(--radius);
  padding:clamp(22px,3vw,36px);box-shadow:var(--shadow-soft);
}
.field{margin-bottom:1rem;}
.field label{display:block;font-size:.9rem;font-weight:600;margin-bottom:.4rem;color:var(--ink);}
.field input,.field select{
  width:100%;font-family:inherit;font-size:1rem;color:var(--ink);
  padding:.85rem 1rem;border:1.5px solid var(--ink);border-radius:var(--radius-sm);
  background:#fff;transition:border-color .18s var(--ease),box-shadow .18s var(--ease);
}
.field input:focus,.field select:focus{
  outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,64,152,.12);
}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.form-consent{font-size:.82rem;color:var(--grey);margin-top:.9rem;line-height:1.5;}
.form-note{font-size:.8rem;color:var(--grey);margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line);}

/* ---------- Footer ---------- */
.site-foot{background:var(--blue);color:#eaf1fb;}
.site-foot__top{display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between;align-items:center;
  padding-block:clamp(40px,6vw,64px);border-bottom:1px solid rgba(255,255,255,.16);}
.foot-logo{background:#fff;border-radius:12px;padding:.8rem 1.1rem;display:inline-flex;}
.foot-logo img{height:48px;width:auto;}
.site-foot__promise{font-weight:600;font-size:clamp(1.15rem,2.2vw,1.55rem);letter-spacing:-.01em;color:#fff;max-width:22ch;}
.site-foot__bottom{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;
  padding-block:1.6rem;font-size:.82rem;color:rgba(234,241,251,.72);}
.site-foot__bottom a{color:rgba(234,241,251,.9);}

/* ---------- Reveal animation (polish; reduced-motion safe) ---------- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease);}
.reveal.in{opacity:1;transform:none;}
.reveal[data-d="1"]{transition-delay:.08s;}
.reveal[data-d="2"]{transition-delay:.16s;}
.reveal[data-d="3"]{transition-delay:.24s;}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .card,.btn,.head-cta,.trust-card__img img{transition:none;}
}

/* ---------- Focus visibility (a11y floor) ---------- */
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px;}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .hero__grid{grid-template-columns:1fr;padding-block:32px 8px;}
  .hero__stage{order:-1;}
  .hero__product{max-width:440px;}
  .specs{grid-template-columns:1fr 1fr;}
  .spec{padding:1.4rem 1.4rem 0;}
  .spec:nth-child(odd){border-left:0;padding-left:0;}
  .cards{grid-template-columns:1fr;max-width:440px;margin-inline:auto;}
  .split{grid-template-columns:1fr;}
  .split__media{order:-1;}
  .trust-grid{grid-template-columns:1fr;max-width:440px;margin-inline:auto;}
  .enquire{grid-template-columns:1fr;}
  .ledger{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .specs{grid-template-columns:1fr;}
  .spec{border-left:0;border-top:1px solid var(--sky-line);padding:1.35rem 0 0;}
  .spec:first-child{border-top:0;}
  .field-row{grid-template-columns:1fr;}
  .site-foot__top{flex-direction:column;align-items:flex-start;}
}
