/* NOETIC — brand tokens from Brand Book v1.0 */
:root {
  --navy: #142C3B;
  --navy-2: #1d3b4d;
  --teal: #007F78;
  --teal-bright: #00a79d;
  --warm: #F7F5F0;
  --gray: #D5DDE0;
  --white: #FFFFFF;
  --text: #142C3B;
  --text-2: #4a5d69;
  --line: #D5DDE0;

  --font-head: "Manrope", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 44, 59, .06), 0 8px 24px rgba(20, 44, 59, .08);
  --shadow-lg: 0 2px 6px rgba(20, 44, 59, .08), 0 24px 60px rgba(20, 44, 59, .18);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: #5fd1c9; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.accent { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--teal); box-shadow: 0 8px 20px rgba(0, 127, 120, .25); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 245, 240, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(247, 245, 240, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; color: var(--navy); }
.logo { width: 160px; height: 32px; color: var(--navy); }
.logo-accent { fill: var(--teal); }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--teal); transition: right .25s var(--ease); }
.nav a:hover, .nav a.active { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav-contact-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang button {
  border: 0; background: transparent; font: 600 12px var(--font-body); letter-spacing: .06em;
  color: var(--text-2); padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--warm); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav a { font-size: 20px; font-family: var(--font-head); font-weight: 600; color: var(--navy); padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-contact-mobile { display: block; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .logo { width: 132px; height: 27px; }
}

/* Hero */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-pillars { list-style: none; padding: 20px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--line); }
.hero-pillars li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.dot { width: 7px; height: 7px; background: var(--teal); transform: skewX(-30deg); }

.hero-visual { position: relative; }
.panel {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 28px; overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.panel-band {
  position: absolute; z-index: -1;
  width: 38%; height: 170%; top: -35%; left: 48%;
  background: var(--teal);
  transform: rotate(-38deg);
}
.panel-band.thin { width: 5%; left: 30%; background: rgba(255, 255, 255, .06); }

.card { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.listing { width: 50%; top: 7%; left: 6%; overflow: hidden; animation: float 7s ease-in-out infinite; }
.listing-img { height: 96px; background: linear-gradient(180deg, #2b566e, #3b7189); overflow: hidden; }
.listing-img svg { width: 100%; height: 100%; }
.listing-body { padding: 12px 14px 14px; display: grid; gap: 2px; font-size: 14px; }
.listing-body strong { font-family: var(--font-head); font-size: 15px; }
.tag { justify-self: start; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--teal); background: rgba(0, 127, 120, .1); padding: 3px 10px; border-radius: 999px; }

.chat { width: 62%; right: 6%; bottom: 7%; padding: 14px; animation: float 8s ease-in-out -2s infinite; }
.chat-head { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #eef1f2; font-size: 14px; }
.chat-head strong { display: block; font-family: var(--font-head); font-size: 14px; line-height: 1.2; }
.chat-avatar { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--navy); color: #fff; flex: none; }
.online { color: var(--teal); display: inline-flex; align-items: center; gap: 5px; }
.online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; height: 200px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.45; padding: 9px 12px; border-radius: 14px; animation: pop .35s var(--ease) both; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #eef3f3; color: var(--navy); border-bottom-left-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8aa3ad; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.metric { top: 11%; right: 6%; width: 34%; padding: 12px 14px; animation: float 6s ease-in-out -4s infinite; }
.metric-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.metric strong { font-family: var(--font-head); font-size: 26px; letter-spacing: -0.02em; }
.spark { width: 56%; height: 30px; }
.visual-caption { font-size: 12.5px; color: var(--text-2); margin-top: 14px; text-align: center; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .panel { aspect-ratio: 1 / 1.25; }
  .listing { width: 62%; }
  .metric { width: 40%; top: 5%; }
  .listing { top: 16%; }
  .chat { width: 88%; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: #fff; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 720px; }
.section-head h2, .proptech h2, .contact h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--teal);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--warm); display: grid; place-items: center; margin-bottom: 22px; }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-num { position: absolute; top: 28px; right: 26px; font: 600 13px var(--font-body); color: #9aabb3; letter-spacing: .08em; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--text-2); font-size: 15.5px; margin-bottom: 20px; }
.service ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.service li { font-size: 14.5px; padding-left: 20px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--teal); }

@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* PropTech (reversed) */
.proptech { background: var(--navy); color: #fff; overflow: hidden; }
.proptech .lead { color: #b9c8cf; margin-bottom: 32px; }
.diag { position: absolute; width: 420px; height: 200%; top: -50%; right: -120px; background: var(--teal); opacity: .9; transform: rotate(-38deg); pointer-events: none; }
.diag::after { content: ""; position: absolute; top: 0; bottom: 0; left: -90px; width: 26px; background: rgba(255, 255, 255, .06); }
.proptech-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.pt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-item {
  background: rgba(20, 44, 59, .72); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, transform .3s var(--ease);
}
.pt-item:hover { border-color: rgba(95, 209, 201, .6); transform: translateY(-3px); }
.pt-item h3 { font-size: 18px; margin-bottom: 8px; }
.pt-item p { color: #b9c8cf; font-size: 15px; }
@media (max-width: 960px) {
  .proptech-grid { grid-template-columns: 1fr; gap: 40px; }
  .diag { width: 260px; right: -160px; }
}
@media (max-width: 600px) { .pt-list { grid-template-columns: 1fr; } }

/* Approach */
.steps { list-style: none; padding: 0; margin: 0 0 clamp(56px, 8vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: var(--line); }
.step { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  font: 700 17px var(--font-head); color: #fff; background: var(--navy);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}
.step:first-child .step-num { background: var(--teal); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 32px 32px 0 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle h3 { font-size: 19px; margin-bottom: 8px; }
.principle p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 600 18px/1.35 var(--font-head); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--teal);
  transition: transform .3s var(--ease);
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { color: var(--text-2); padding: 0 40px 24px 0; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section-head { position: static; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact .lead { margin-bottom: 36px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list span:not(.small) { font: 600 18px var(--font-head); text-decoration: none; color: var(--navy); }
.contact-list a:hover { color: var(--teal); }

.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 20px; border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field em { font-style: normal; color: var(--text-2); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 400 16px var(--font-body); color: var(--navy);
  background: var(--warm); border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field .invalid { border-color: #b3261e; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; transition: all .2s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.chip:hover span { border-color: var(--navy); }
.form-status { font-size: 14px; min-height: 1.2em; margin-top: -6px; }
.form-status.error { color: #b3261e; }
.form-status.ok { color: var(--teal); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer (reversed treatment) */
.site-footer { position: relative; background: var(--navy); color: #c6d3d9; padding: 72px 0 28px; overflow: hidden; }
.diag-footer { width: 180px; right: -40px; opacity: .5; }
.footer-grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.logo-footer { width: 190px; height: 38px; color: #fff; margin-bottom: 20px; }
.footer-tag { font: 600 20px var(--font-head); color: #fff; margin-bottom: 4px; }
.footer-desc { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.site-footer h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #fff; font-family: var(--font-body); font-weight: 500; margin-bottom: 16px; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer nav a { text-decoration: none; font-size: 15px; transition: color .2s; }
.site-footer nav a:hover { color: #5fd1c9; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
