/* ============ Base ============ */
:root {
  --bg: #0b0b12;
  --bg-alt: #12121c;
  --surface: #181826;
  --border: #26263a;
  --text: #ecebf5;
  --muted: #9a99b3;
  --accent: #ff5f3c;
  --accent-2: #ffb03a;
  --radius: 18px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 500; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: .95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem var(--font-body);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 95, 60, .6); }
.btn--ghost { background: transparent; border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--small { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--full { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 18, .8); backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; position: relative; }
.nav__toggle span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text); transition: transform .3s; }
.nav__toggle span:first-child { top: 11px; }
.nav__toggle span:last-child { bottom: 11px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: 9.5rem 0 6rem; min-height: 100vh; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--a { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255,95,60,.38), transparent 65%); }
.hero__glow--b { width: 520px; height: 520px; right: 280px; bottom: -260px; background: radial-gradient(circle, rgba(91,91,247,.32), transparent 65%); animation-delay: -7s; }
@keyframes drift { to { transform: translate(-40px, 40px) scale(1.08); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.8rem;
  padding: .45rem 1rem .45rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s;
}
.pill:hover { border-color: var(--accent); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 0 rgba(43,212,125,.6); animation: pulse 2s infinite; }
.pill__arrow { color: var(--muted); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(43,212,125,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,125,0); } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.hero__lead { max-width: 540px; font-size: 1.2rem; color: var(--muted); margin: 1.6rem 0 2.2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.8rem; color: var(--muted); font-size: .95rem; max-width: 460px; }
.hero__trust strong { color: var(--text); }
.avatars { display: flex; flex-shrink: 0; }
.avatars img, .avatars span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; }
.avatars span {
  margin-left: -10px; display: grid; place-items: center; font: 700 .8rem var(--font-head); color: #fff;
  background: linear-gradient(135deg, #5b5bf7, #3ad1ff);
}

/* Hero phones */
.hero__visual { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 38px; padding: 10px;
  background: #1d1d2b; border: 1px solid #34344a;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), inset 0 0 0 2px #0e0e16;
  animation: float 7s ease-in-out infinite;
}
.phone--broker { left: 4%; top: 30px; rotate: -6deg; z-index: 2; }
.phone--memory { right: 2%; top: 0; rotate: 5deg; animation-delay: -3.5s; }
@keyframes float { 50% { translate: 0 -14px; } }
.phone__screen {
  height: 100%; border-radius: 29px; overflow: hidden; padding: 2.2rem .9rem 1rem;
  display: flex; flex-direction: column; gap: .6rem; color: #1b1b28; position: relative;
}
.phone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 70px; height: 18px; border-radius: 10px; background: #1d1d2b; }
.phone--broker .phone__screen { background: #f6f4ee; }
.phone--memory .phone__screen { background: #f4f4fd; }

.float {
  position: absolute; z-index: 3; padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgba(24,24,38,.85); border: 1px solid var(--border); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite; white-space: nowrap;
}
.float--a { left: -4%; bottom: 70px; animation-delay: -2s; }
.float--b { right: -2%; top: 300px; animation-delay: -4s; }

/* ============ Sections ============ */
.section { padding: 7rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 3.5rem; }
.grid { display: grid; gap: 1.5rem; }

.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: transform .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(255,95,60,.2), rgba(255,176,58,.15)); color: var(--accent-2);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); }

/* Products */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 3.5rem 0; border-top: 1px solid var(--border);
}
.product--flip .product__text { order: 2; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); background: rgba(255, 176, 58, .12); border: 1px solid rgba(255, 176, 58, .3);
  padding: .3rem .8rem; border-radius: 999px;
}
.product__name { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; margin: 1rem 0 .4rem; }
.product__tagline { font-size: 1.25rem; color: var(--text); margin-bottom: 1rem; }
.product__text > p:not(.product__tagline) { color: var(--muted); font-size: 1.05rem; }
.checks { margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.product__visual {
  aspect-ratio: 5 / 4; border-radius: var(--radius); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2)); padding: 2rem 0;
}

.product__cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.about__text p:not(.eyebrow) { color: var(--muted); margin-top: 1.2rem; font-size: 1.05rem; }
.founder {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.4rem; align-items: center;
}
.founder__avatar {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; object-fit: cover;
  border: 2px solid var(--border);
  font: 700 1.5rem var(--font-head); color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.founder strong { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.founder span { color: var(--muted); font-size: .95rem; }
.founders { display: grid; gap: 1rem; }
.founder__avatar--b { background: linear-gradient(135deg, #5b5bf7, #3ad1ff); }
.founder__bio { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }
.founder__links { grid-column: 1 / -1; display: flex; gap: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.founder__links a { border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1.1rem; font-size: .9rem; transition: border-color .2s; }
.founder__links a:hover { border-color: var(--accent); }

/* Contact */
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact__info > p:not(.eyebrow) { color: var(--muted); margin: 1.2rem 0 2rem; font-size: 1.05rem; }
.contact__list li { padding: 1rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; }
.contact__list span { color: var(--muted); width: 90px; flex-shrink: 0; }
.contact__list a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .45rem; font-size: .9rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: .85rem 1rem; font: 400 1rem var(--font-body); transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .is-invalid { border-color: #ff4d6d; }
.form__status { font-size: .95rem; min-height: 1.4em; color: var(--accent-2); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }

.footer p { color: var(--muted); font-size: .9rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow, .phone, .float, .pill__dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .about, .contact__inner, .product { grid-template-columns: 1fr; gap: 3rem; }
  .product--flip .product__text { order: 0; }
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 540px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: flex-start; gap: 1.4rem;
    padding: 2rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { font-size: 1.2rem; }
  .grid--4, .form__row { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; }
  .hero__visual { height: 440px; }
  .phone { scale: .74; }
  .phone--broker { left: 0; transform-origin: top left; }
  .phone--memory { right: 0; transform-origin: top right; }
  .float--a { left: 0; bottom: 10px; }
  .float--b { right: 0; top: 230px; }
  .section { padding: 5rem 0; }
}

/* Real app screenshots */
.phone__screen--img { padding: 0; height: auto; display: block; }
.phone__screen--img::before { display: none; }
.phone__screen img, .shot img { display: block; width: 100%; height: auto; }
.shot {
  width: 56%; max-width: 280px; border-radius: 34px; padding: 9px; background: #1d1d2b; border: 1px solid #34344a;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); transition: transform .5s;
}
.shot img { border-radius: 26px; }
.product:hover .shot { transform: translateY(-6px) scale(1.02); }

/* BrokerDesk: three fanned screenshots */
.shots { position: relative; width: 100%; display: grid; place-items: center; padding: 1rem 0; }
.shots .shot { grid-area: 1 / 1; }
.shot--main { width: 44%; z-index: 2; }
.shot--side { width: 36%; opacity: .92; }
.shot--left { translate: -62% 4%; rotate: -7deg; }
.shot--right { translate: 62% 4%; rotate: 7deg; }
.product:hover .shot--side { transform: none; }

/* Founder bios */
.founder__bio { line-height: 1.65; }
.founder .founder__bio strong { display: inline; font: inherit; font-weight: 600; color: var(--text); }
.founder__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.founder__tags li { font-size: .78rem; color: var(--accent-2); background: rgba(255,176,58,.1); padding: .25rem .7rem; border-radius: 999px; }

/* Form extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: .85rem; color: var(--muted); text-align: center; }
.form__note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form__status.is-error { color: #ff6b81; }
.form__status.is-ok { color: #2bd47d; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Footer */
.footer { padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer__brand p { color: var(--muted); font-size: .92rem; margin-top: .9rem; max-width: 280px; }
.footer__col { display: flex; flex-direction: column; gap: .65rem; }
.footer__col h4 { font: 600 .78rem var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: .3rem; }
.footer__col a { color: var(--muted); font-size: .92rem; transition: color .2s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer__bottom p { color: var(--muted); font-size: .85rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Product logos */
.product__name { display: flex; align-items: center; gap: .9rem; }
.product__logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; }
@media (max-width: 720px) { .product__logo { width: 44px; height: 44px; } }
