/* Homesmartics website. Plain CSS, no framework. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0b1324;
  --ink-2: #33405a;
  --ink-3: #5d6a82;
  --line: #e2e7ef;
  --line-2: #cfd7e3;
  --bg: #ffffff;
  --bg-2: #f4f6fa;
  --bg-3: #eaeef5;
  --brand: #1a4bdb;
  --brand-ink: #1236a8;
  --brand-soft: #e8eeff;
  --navy: #0a1430;
  --navy-2: #121f45;
  --ok: #157f5b;
  --ok-soft: #e3f4ec;
  --soon: #8a5a00;
  --soon-soft: #fbf1dc;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 19, 36, .06), 0 8px 24px rgba(11, 19, 36, .08);
  --shadow-lg: 0 2px 6px rgba(11, 19, 36, .08), 0 24px 64px rgba(11, 19, 36, .16);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.022em; line-height: 1.12; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.032em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.tight { padding: clamp(56px, 7vw, 88px) 0; }
.bg-2 { background: var(--bg-2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-3); }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head .lead { margin-top: 18px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-soft); color: var(--navy); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.header-cta .btn { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

/* hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-copy { max-width: 820px; }
.hero-copy .lead { margin-top: 24px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-3); }
.hero-visual { position: relative; margin-top: 8px; padding-bottom: clamp(32px, 5vw, 64px); }
.browser {
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.browser-bar b { margin-left: 14px; font-size: .78rem; font-weight: 500; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 2px 12px; }
.phone {
  position: absolute; right: clamp(-8px, 2vw, 32px); bottom: 0; width: clamp(130px, 18vw, 230px);
  border-radius: 30px; padding: 7px; background: #0b0f19; box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 24px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; width: 100%; }

/* integration strip */
.logos { padding: 36px 0; border-bottom: 1px solid var(--line); background: #fff; }
.logos .wrap { display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap; justify-content: center; }
.logos p { font-size: .85rem; color: var(--ink-3); font-weight: 500; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; }
.logos li { font-weight: 650; font-size: 1.05rem; color: #6b778d; letter-spacing: -0.01em; white-space: nowrap; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.pillar .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar p { margin-top: 10px; color: var(--ink-2); }
.pillar ul { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pillar li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: .96rem; color: var(--ink-2); }
.pillar li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* product tour */
.tour-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-3); border-radius: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tour-tabs button { font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink-2); background: transparent; border: 0; padding: 10px 18px; border-radius: 7px; cursor: pointer; min-height: 44px; }
.tour-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11, 19, 36, .12); }
.tour-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mode-switch { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-3); margin-bottom: 28px; }
.mode-switch button { font: inherit; font-size: .9rem; font-weight: 600; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.mode-switch button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.tour-panel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-shot { background: var(--bg-3); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 40px); display: grid; place-items: center; min-height: 360px; }
.tour-shot img { border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 620px; width: auto; }
.tour-shot.phone-shot img { max-height: 640px; border-radius: 26px; border: 7px solid #0b0f19; }
.tour-copy h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.tour-copy p { margin-top: 14px; color: var(--ink-2); }
.tour-copy dl { margin: 24px 0 0; display: grid; gap: 16px; }
.tour-copy dt { font-weight: 650; }
.tour-copy dd { margin: 2px 0 0; color: var(--ink-3); font-size: .96rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.feature .ico { color: var(--brand); margin-bottom: 18px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; }
.feature p { margin-top: 8px; font-size: .95rem; color: var(--ink-2); }

/* split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 120px); }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split-media .overlay { position: absolute; width: 58%; right: -4%; bottom: -8%; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .6); }
.split.rev .split-media .overlay { right: auto; left: -4%; }
.split-copy p { margin-top: 16px; color: var(--ink-2); }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.tag.soon { color: var(--soon); background: var(--soon-soft); border-color: #f1dfb6; }

/* use cases */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.case:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.case img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.case-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.case-kicker { font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.case h3 { margin-top: 8px; font-size: 1.2rem; }
.case p { margin-top: 10px; color: var(--ink-2); font-size: .97rem; }
.case .flow { margin: 16px 0 0; padding: 14px 16px; background: var(--bg-2); border-radius: 8px; font-size: .9rem; color: var(--ink-2); display: grid; gap: 6px; }
.case .flow span { display: block; }
.case .flow b { color: var(--ink); font-weight: 650; display: inline-block; min-width: 52px; }
.case .tags { margin-top: auto; padding-top: 18px; }

/* security band */
.dark { background: var(--navy); color: #c9d3ea; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #8fb0ff; }
.dark .lead { color: #c9d3ea; }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden; }
.sec { padding: 32px; background: var(--navy); }
.sec .num { font-size: 2.4rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.sec h3 { margin-top: 16px; font-size: 1.1rem; }
.sec p { margin-top: 8px; font-size: .95rem; color: #aebbd8; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { padding-top: 24px; border-top: 2px solid var(--ink); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font-size: .85rem; font-weight: 700; color: var(--brand); letter-spacing: .08em; margin-bottom: 14px; }
.step p { margin-top: 10px; color: var(--ink-2); }

/* integrations table */
.integrations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.intg { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; background: #fff; }
.intg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.intg h3 { font-size: 1.05rem; }
.intg p { margin-top: 10px; font-size: .93rem; color: var(--ink-2); }
.status { font-size: .74rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status.ok { color: var(--ok); background: var(--ok-soft); }
.status.soon { color: var(--soon); background: var(--soon-soft); }

/* faq */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); }

/* cta */
.cta { background: linear-gradient(135deg, var(--brand) 0%, #0f2f9e 100%); color: #dfe7ff; border-radius: 20px; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { margin-top: 14px; font-size: 1.1rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: .93rem; color: var(--ink-3); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink-2); }
.foot-grid .logo { margin-bottom: 14px; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .82rem; }

/* legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); }
.todo { background: var(--soon-soft); border: 1px solid #f1dfb6; color: var(--soon); padding: 14px 18px; border-radius: 8px; margin-top: 24px; font-weight: 500; }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .case, .case:hover { transition: none; transform: none; }
}

/* responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integrations, .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-panel { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-cta .btn-secondary { display: none; }
  .menu-btn { display: block; }
  .header-cta { margin-left: 0; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; margin: 0; box-shadow: var(--shadow); }
  .site-header.open .nav a { padding: 12px; font-size: 1.05rem; }
  .pillars, .steps, .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .split, .cta { grid-template-columns: minmax(0, 1fr); }
  .split.rev .split-media { order: 0; }
  .split-media .overlay { width: 50%; right: 4%; bottom: -6%; }
  .split.rev .split-media .overlay { left: 4%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-cta .btn-primary { display: none; }
  .features, .integrations, .cases { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 34%; right: 0; }
  .hero-actions .btn { width: 100%; }
  .tour-shot { min-height: 0; padding: 12px; }
}

.mt-16 { margin-top: 16px; }
.mt-28 { margin-top: 28px; }
