/*
  Futurvy Landing Styles
  Brand: blue-green gradient, professional, modern, accessible.
*/

:root {
  --bg: #ffffff;
  --text: #0b1b2b;
  --muted: #617289;
  --card: #f6f8fb;
  --border: #e5eaf1;
  --brand-start: #1aa1e7; /* blue */
  --brand-end: #20c997;   /* green */
  --brand: #1783c8;
  --shadow: 0 10px 30px rgba(10, 22, 38, 0.08);
}

[data-theme="dark"] {
  --bg: #0a1626;
  --text: #e6eef7;
  --muted: #a9b7c7;
  --card: #0e2035;
  --border: #1f334a;
  --brand-start: #2ab0f9;
  --brand-end: #32e7b2;
  --brand: #54d2ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Global Resets */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow { width: min(860px, 92%); }

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: 0.5px; font-size: 1.1rem; }

.primary-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--text); opacity: 0.9; }
.nav-list a:hover { opacity: 1; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle .bar { width: 24px; height: 2px; background: var(--text); display: block; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Theme switch */
.theme-switch { position: relative; width: 48px; height: 28px; display: inline-block; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-switch .slider {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.theme-switch .slider::before {
  content: "";
  position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
  background: var(--bg); border-radius: 50%; transition: transform 0.25s ease;
}
.theme-switch input:checked + .slider::before { transform: translateX(20px); }

/* Buttons */
.btn { --btn-bg: var(--card); --btn-text: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); color: var(--btn-text); background: var(--btn-bg); transition: transform .06s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: linear-gradient(135deg, var(--brand-start), var(--brand-end)); --btn-text: #ffffff; border: none; box-shadow: var(--shadow); }
.btn-outline { --btn-bg: transparent; border: 1px solid color-mix(in oklab, var(--brand-start) 40%, var(--border)); color: var(--text); }
.btn-ghost { --btn-bg: transparent; border: 1px dashed var(--border); color: var(--text); }
.btn-sm { padding: 8px 12px; font-size: .9rem; }

/* Hero */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 12px; }
.lead { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--muted); margin: 0 0 20px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art { position: relative; min-height: 280px; }
.orb { position: absolute; border-radius: 50%; filter: blur(24px); opacity: .6; }
.orb-1 { width: 260px; height: 260px; right: 5%; top: 10%; background: radial-gradient(circle at 30% 30%, var(--brand-end), transparent 60%), radial-gradient(circle at 70% 70%, var(--brand-start), transparent 55%); }
.orb-2 { width: 180px; height: 180px; right: 40%; bottom: 0; background: radial-gradient(circle at 30% 30%, var(--brand-start), transparent 60%), radial-gradient(circle at 70% 70%, var(--brand-end), transparent 55%); }
.orb-3 { width: 120px; height: 120px; right: 0; bottom: 10%; background: radial-gradient(circle at 30% 30%, var(--brand-start), transparent 60%), radial-gradient(circle at 70% 70%, var(--brand-end), transparent 55%); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, color-mix(in oklab, var(--card) 70%, transparent), transparent); }
.section-head { margin-bottom: 28px; }
.section-head.center { text-align: center; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.muted { color: var(--muted); }
.xl { font-size: 1.12rem; color: var(--muted); }

/* Products */
.products-grid {
  display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr);
}
.product { grid-column: span 6; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; isolation: isolate; }
.product::after { content: ""; position: absolute; inset: -1px; background: radial-gradient(1200px 200px at 100% -10%, color-mix(in oklab, var(--brand-start) 24%, transparent), transparent 60%); opacity: .35; pointer-events: none; z-index: -1; }
.product .card-body { padding: 22px; }
.product h3 { margin: 0 0 6px; font-size: 1.25rem; }
.product p { margin: 0 0 14px; color: var(--muted); }

/* Per-product accent hints */
.product.homieai { border-top: 3px solid #6fd3ff; }
.product.insureagent { border-top: 3px solid #6af0c2; }
.product.procuremart { border-top: 3px solid #9ad1ff; }
.product.brandloop { border-top: 3px solid #b1f0d3; }

.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Cards general */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.card-body { padding: 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form-card { background: var(--card); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in oklab, var(--brand-start) 45%, transparent); border-color: color-mix(in oklab, var(--brand-end) 45%, var(--border)); }
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-status { color: var(--muted); min-height: 1.2em; }

.contact-card .contact-list { list-style: none; margin: 0 0 12px; padding: 0; }
.contact-card .contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.contact-card .label { color: var(--muted); }
.contact-card .value { color: var(--text); text-decoration: none; }

/* Socials */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.social svg { width: 18px; height: 18px; fill: var(--text); opacity: .9; }
.social:hover svg { opacity: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--bg) 90%, transparent); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: 20px; align-items: center; padding: 24px 0; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; margin-right: 8px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-links { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--text); opacity: .9; }
.footer-links a:hover { opacity: 1; }
.copyright { grid-column: 1 / -1; text-align: center; color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Utilities */
.hide-on-mobile { display: inline-flex; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 200px; }
}

@media (max-width: 860px) {
  .products-grid { grid-template-columns: repeat(12, 1fr); }
  .product { grid-column: span 12; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 720px) {
  .hide-on-mobile { display: none; }
  .nav-toggle { display: flex; }
  .nav-list { position: absolute; right: 0; top: 64px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; gap: 10px; box-shadow: var(--shadow); display: none; flex-direction: column; min-width: 200px; }
  .nav-list a { padding: 8px 10px; border-radius: 8px; }
  .nav-list.show { display: flex; }
}


