/* =========================================================
   Real House Ltd. — Landing page styles
   ========================================================= */

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

:root {
  --green-950: oklch(18% 0.06 158);
  --green-900: oklch(22% 0.07 158);
  --green-800: oklch(28% 0.09 158);
  --green-700: oklch(34% 0.10 158);
  --green-600: oklch(40% 0.11 155);
  --green-500: oklch(50% 0.14 152);
  --green-400: oklch(60% 0.18 148);
  --green-300: oklch(72% 0.18 145);
  --green-200: oklch(88% 0.08 148);
  --green-100: oklch(94% 0.05 148);
  --green-50:  oklch(97% 0.02 148);
  --amber:     oklch(74% 0.19 58);

  --paper:     oklch(98.5% 0.005 148);
  --white:     oklch(100% 0 0);
  --ink:       oklch(18% 0.04 158);
  --ink-mid:   oklch(44% 0.06 155);
  --ink-light: oklch(62% 0.04 152);
  --border:    oklch(91% 0.02 148);
  --border-strong: oklch(85% 0.03 148);

  --shadow-sm: 0 2px 8px oklch(0% 0 0 / 0.05);
  --shadow-md: 0 8px 28px oklch(0% 0 0 / 0.08);
  --shadow-lg: 0 24px 60px oklch(0% 0 0 / 0.12);
  --shadow-xl: 0 40px 100px oklch(0% 0 0 / 0.18);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1240px;
}

html, body {
  font-family: 'Urbanist', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ========================================================= */
/* NAV                                                        */
/* ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: oklch(98.5% 0.005 148 / 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
}
.logo-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-50);
  border-radius: 10px;
}
.footer .logo-mark { background: oklch(28% 0.07 158); }
.brand-text { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-name {
  font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-suffix { font-weight: 600; font-size: 14px; color: var(--ink-mid); }
.footer .brand-name { color: var(--green-50); }
.footer .brand-suffix { color: var(--green-200); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-mid);
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--green-50); }
.nav-links .nav-admin {
  margin-left: 6px;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: var(--white);
}
.nav-links .nav-admin:hover { background: var(--green-100); border-color: var(--green-300); }

/* ========================================================= */
/* HERO                                                       */
/* ========================================================= */
.hero {
  position: relative;
  padding: 80px 40px 100px;
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 85% 10%, oklch(94% 0.05 148 / 0.7), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, oklch(94% 0.03 148 / 0.5), transparent 60%),
    var(--paper);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-mid);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px oklch(60% 0.18 148 / 0.18);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-500);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 10px;
  background: var(--green-100);
  z-index: -1;
  border-radius: 4px;
}

.lede {
  margin-top: 28px;
  font-size: 19px; line-height: 1.6;
  color: var(--ink-mid);
  text-wrap: pretty;
  max-width: 540px;
}
.lede strong { color: var(--ink); font-weight: 700; }

.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--green-500);
  color: white;
  box-shadow: 0 4px 14px oklch(50% 0.14 152 / 0.32);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--green-50); border-color: var(--green-300); }
.btn-light {
  background: white;
  color: var(--ink);
}
.btn-light:hover { background: var(--green-100); }

.hero-stats {
  list-style: none;
  display: flex; gap: 36px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stats strong {
  display: block;
  font-size: 28px; font-weight: 800;
  color: var(--green-600);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-stats span {
  font-size: 13px; font-weight: 500;
  color: var(--ink-mid);
  margin-top: 4px;
  display: block;
}

/* hero art */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.hero-art-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(60% 60% at 50% 50%, oklch(60% 0.18 148 / 0.18), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.ipad-frame {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 18px;
  background: var(--green-950);
  padding: 14px;
  box-shadow: var(--shadow-xl);
  transform: perspective(1600px) rotateY(-6deg) rotateX(3deg);
}
.ipad-frame img {
  border-radius: 8px;
  width: 100%; height: auto;
}
.ipad-frame-lg {
  transform: none;
  max-width: 760px;
  margin: 0 auto;
}

.floating-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  z-index: 2;
}
.card-1 {
  bottom: 10%; left: -4%;
  color: var(--green-500);
}
.card-1 .fc-icon {
  width: 36px; height: 36px;
  background: var(--green-100);
  color: var(--green-600);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.fc-label { font-size: 11px; font-weight: 600; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.fc-value { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.card-2 {
  top: 8%; right: -2%;
  padding: 16px 20px;
  flex-direction: column; align-items: flex-start; gap: 2px;
}
.fc-stat { font-size: 22px; font-weight: 800; color: var(--green-500); letter-spacing: -0.02em; }
.fc-sub { font-size: 12px; color: var(--ink-mid); font-weight: 500; }

/* ========================================================= */
/* TRUST STRIP                                                */
/* ========================================================= */
.trust {
  padding: 22px 40px;
  background: var(--green-950);
  color: oklch(85% 0.05 148);
}
.trust-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em;
}
.trust .sep { color: oklch(50% 0.08 148); }

/* ========================================================= */
/* SECTION HEAD                                               */
/* ========================================================= */
.section-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 40px;
}
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-600);
}
.kicker-light { color: var(--green-300); }

.section-head h2,
.product-headline h2 {
  margin-top: 14px;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
  max-width: 820px;
}
.section-head-center h2 { margin-left: auto; margin-right: auto; }

.section-sub {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-mid);
  max-width: 640px;
  text-wrap: pretty;
}

/* ========================================================= */
/* ABOUT                                                      */
/* ========================================================= */
.about { padding: 120px 0 100px; }
.about-grid {
  max-width: var(--maxw); margin: 64px auto 0;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all 0.2s;
}
.about-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.about-num {
  font-size: 14px; font-weight: 700;
  color: var(--green-500);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}
.about-card h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.about-card p {
  font-size: 15px; color: var(--ink-mid);
  text-wrap: pretty;
}

/* ========================================================= */
/* PRODUCT                                                    */
/* ========================================================= */
.product {
  padding: 100px 0;
  background:
    linear-gradient(180deg, var(--green-50), var(--paper) 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 40px;
}
.product-headline {
  display: flex; align-items: baseline; gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.product-headline h2 {
  margin-top: 0;
  font-size: clamp(40px, 4.6vw, 60px);
  color: var(--green-700);
}
.product-tag {
  font-size: 18px; font-weight: 500;
  color: var(--ink-mid);
  max-width: 560px;
}

.product-feature {
  max-width: var(--maxw); margin: 72px auto 0;
  padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.product-feature-copy h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.product-feature-copy p {
  font-size: 17px;
  color: var(--ink-mid);
  text-wrap: pretty;
}

.check-list {
  list-style: none;
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  background: var(--green-500);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}

.product-feature-art {
  position: relative;
}
.product-feature-art .ipad-frame {
  transform: none;
  box-shadow: var(--shadow-xl);
}

/* ========================================================= */
/* iPHONES                                                    */
/* ========================================================= */
.iphones { padding: 120px 0 100px; }
.iphone-grid {
  max-width: var(--maxw); margin: 64px auto 0;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.iphone-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 20px 24px;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.iphone-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}


.iphone-shot {
  width: 100%;
  aspect-ratio: 9 / 18;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.iphone-shot img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px oklch(0% 0 0 / 0.18));
}

.iphone-card figcaption h4 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.iphone-card figcaption p {
  font-size: 14px;
  color: var(--ink-mid);
  text-wrap: pretty;
}

/* Feature Card Override */
.iphone-card-feature {
  background: var(--green-950);
  border-color: var(--green-950);
}
.iphone-card-feature figcaption h4 { color: var(--green-50); }
.iphone-card-feature figcaption p { color: #cfd6cf !important; } /* Force bright gray color */
.iphone-card-feature:hover { border-color: var(--green-700); }

/* ========================================================= */
/* MISSION                                                    */
/* ========================================================= */
.mission {
  padding: 120px 40px;
  background:
    radial-gradient(600px 500px at 80% 30%, oklch(34% 0.10 158), transparent 70%),
    radial-gradient(600px 500px at 10% 90%, oklch(40% 0.11 155), transparent 70%),
    var(--green-950);
  color: var(--green-50);
}
.mission-inner {
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.mission h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.mission h2 em {
  font-style: italic;
  color: var(--green-300);
  font-weight: 400;
  font-family: 'Urbanist', serif;
}
.mission p {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--green-100);
  text-wrap: pretty;
}
.mission .btn-light {
  margin-top: 40px;
}

/* ========================================================= */
/* FOOTER                                                     */
/* ========================================================= */
.footer {
  background: var(--green-950);
  color: oklch(80% 0.04 148);
  padding: 80px 40px 32px;
}
.footer-top {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-blurb {
  font-size: 14px; line-height: 1.65;
  color: var(--green-100);
  max-width: 320px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-200);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--green-100);
  padding: 5px 0;
  font-weight: 500;
}
.footer-col a:hover { color: var(--white); }
.footer-col address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--green-100);
}

.footer-bottom {
  max-width: var(--maxw); margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid oklch(30% 0.05 158);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
  color: var(--green-200);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-legal strong { color: var(--white); font-weight: 700; }
.footer-legal .sep { color: oklch(40% 0.05 148); }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { color: var(--green-100); font-weight: 500; }
.footer-legal-links a:hover { color: var(--white); }

/* ========================================================= */
/* RESPONSIVE                                                 */
/* ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero-art { max-width: 600px; margin: 0 auto; }
  .product-feature { grid-template-columns: 1fr; gap: 48px; }
  .iphone-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero { padding: 60px 20px 80px; }
  .product { padding: 80px 0; }
  .product-head, .product-feature, .about-grid,
  .iphone-grid, .section-head { padding-left: 20px; padding-right: 20px; }
  .iphones { padding: 80px 0; }
  .about { padding: 80px 0 60px; }
  .iphone-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer { padding: 60px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}
