/* ============================================================
   DataCenterReadyLand — K2 Renew "sunrise" design system
   Adapted from the "XWeather" K2 Renew landing-page design.
   Display: Archivo · Text/UI: Public Sans · Mono: IBM Plex Mono
   Warm off-white surfaces, sunrise-orange brand, golden-hour photography.
   ============================================================ */

:root {
  /* Brand — sunrise orange */
  --brand: #DD6536;
  --brand-hover: #C75A33;
  --brand-active: #BE4E27;
  --brand-300: #F3A468;
  --brand-400: #ED8B4E;
  --brand-subtle: #FDF1E8;
  --brand-subtle-border: #F9C99F;

  /* main.js / chat-widget aliases */
  --accent: #DD6536;
  --accent-dark: #C75A33;
  --accent-light: #FDF1E8;
  --accent-contrast: #ffffff;

  /* Warm neutrals */
  --ink: #232427;          /* text strong */
  --ink-body: #34363A;
  --ink-soft: #6B6D72;     /* muted */
  --ink-faint: #8A8C90;
  --paper: #F8F8F6;        /* surface page */
  --paper-2: #F3F3F2;
  --card: #ffffff;
  --line: #E3E4E6;
  --line-2: #C9CACD;
  --dark: #232427;
  --darker: #1C1D1F;

  --gradient-sunrise: linear-gradient(180deg, #F3A468 0%, #DD6536 55%, #C75A33 100%);
  --gradient-sunrise-h: linear-gradient(90deg, #C75A33 0%, #E1743C 50%, #F3A468 100%);

  --font-display: "Archivo", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 20px rgba(16,17,20,0.06);
  --shadow-xl: 0 30px 70px -20px rgba(16,17,20,0.28);
  --shadow-focus: 0 0 0 3px rgba(221,101,54,0.22);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-body);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--brand-hover); transition: var(--transition); }
a:hover { color: var(--brand); }
ul { list-style: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(72px,11vh,120px) clamp(20px,5vw,72px); }
.section.paper-2 { background: var(--paper-2); }
.container { max-width: var(--maxw); margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-hover);
}
.eyebrow::before, .eyebrow.two::after { content: ""; width: 26px; height: 2px; background: var(--brand); display: inline-block; }
.section-tag {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-hover); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.06; font-size: clamp(30px,4vw,50px); color: var(--ink); text-wrap: balance; margin-bottom: 14px;
}
.section-desc { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.section-header .section-desc { margin: 0 auto; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-body); margin-bottom: 18px; max-width: 52ch; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
em { color: var(--brand-hover); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  padding: 0 22px; height: 52px; border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn-outline-light { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,0.16); color: #fff; }
.btn-sm { height: 44px; font-size: 15px; padding: 0 18px; }

/* ---------- Nav (transparent over hero -> solid on scroll) ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; color: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#navbar.scrolled { background: rgba(255,255,255,0.96); color: var(--ink); box-shadow: var(--shadow-sm); border-color: var(--line); backdrop-filter: blur(10px); }
.nav-container { height: 76px; display: flex; align-items: center; max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px,4vw,48px); gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: inherit; flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; line-height: 1.05; }
.nav-logo .mark { width: 34px; height: 34px; display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 20px; font-family: var(--font-body); font-weight: 600; font-size: 14.5px; }
.nav-links li { display: flex; }
.nav-links a { color: inherit; opacity: 0.92; }
.nav-links a:hover, .nav-links a.active-nav { color: var(--brand); opacity: 1; }
#navbar.scrolled .nav-links a:hover, #navbar.scrolled .nav-links a.active-nav { color: var(--brand); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-actions .ghost { color: inherit; font-weight: 600; font-size: 14.5px; opacity: 0.92; }
.nav-links a.nav-cta { background: var(--brand); color: #fff !important; padding: 0 18px; height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.nav-links a.nav-cta:hover { background: var(--brand-hover); }
.nav-toggle { display: none; background: none; border: none; color: inherit; font-size: 1.4rem; cursor: pointer; }

/* ---------- Hero ---------- */
#hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--darker); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .scrim-1 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,21,0.55) 0%, rgba(20,20,21,0.12) 30%, rgba(20,20,21,0.30) 60%, rgba(20,20,21,0.82) 100%); }
.hero-bg .scrim-2 { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,21,0.62) 0%, rgba(20,20,21,0.18) 42%, rgba(20,20,21,0) 70%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; color: #fff; padding: 0 clamp(20px,5vw,72px) clamp(56px,9vh,104px); }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-300); }
.hero-eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--brand-400); display: inline-block; }
.hero-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(40px,6.4vw,86px); max-width: 15ch; text-wrap: balance; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.35); margin-bottom: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-bottom: 36px; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; color: rgba(255,255,255,0.85); }
.hero-chips span { display: inline-flex; align-items: center; }
.hero-chips span:not(:last-child)::after { content: "·"; margin: 0 14px; font-weight: 400; color: rgba(255,255,255,0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Why / value ---------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px,5vw,72px); align-items: center; }
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.value-card .bar { height: 6px; background: var(--gradient-sunrise-h); }
.value-card .value-body { padding: 32px; }
.value-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 20px; }
.value-card ul { display: flex; flex-direction: column; gap: 16px; }
.value-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-body); line-height: 1.5; }
.value-card li::before { content: "\2713"; color: #5E7A3E; font-weight: 800; flex-shrink: 0; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--dark); color: #fff; padding: clamp(48px,7vh,72px) clamp(20px,5vw,72px); }
.stats-row { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; text-align: center; }
.stat { }
.stat.divided { border-left: 1px solid rgba(255,255,255,0.12); border-right: 1px solid rgba(255,255,255,0.12); }
.stat-num { font-family: var(--font-mono); font-weight: 600; font-size: clamp(40px,6vw,64px); line-height: 1; color: var(--brand-400); }
.stat-label { margin-top: 10px; font-size: 15px; letter-spacing: 0.04em; color: #C9CACD; }

/* ---------- Checklist ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-subtle); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 20px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--ink-body); margin: 0; }

/* ---------- Photo band ---------- */
.band { position: relative; height: clamp(360px,52vh,540px); overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,21,0.80) 0%, rgba(20,20,21,0.28) 55%, rgba(20,20,21,0) 100%); }
.band .band-inner { position: relative; max-width: var(--maxw); margin: 0 auto; height: 100%; display: flex; align-items: center; padding: 0 clamp(20px,5vw,72px); }
.band .band-copy { max-width: 36ch; }
.band .band-copy .eyebrow { color: var(--brand-300); }
.band .band-copy h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(28px,3.6vw,46px); color: #fff; margin: 0; }

/* ---------- How it works (dark) ---------- */
.how { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.how > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.14; }
.how .container { position: relative; max-width: 1120px; }
.how .section-header .eyebrow, .how .eyebrow { color: var(--brand-300); }
.how .section-title { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 28px; }
.step-num { width: 44px; height: 44px; border-radius: 999px; background: var(--gradient-sunrise); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: 20px; margin-bottom: 18px; }
.step h4 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 8px; }
.step p { font-size: 15.5px; line-height: 1.6; color: #C9CACD; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; line-height: 1; transition: var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--ink-body); }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin: 0; }
.faq-answer strong { color: var(--ink); }

/* ---------- Assessment quiz ---------- */
.quiz-wrap { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.quiz-progress { height: 6px; background: var(--brand-subtle); border-radius: 100px; overflow: hidden; margin-bottom: 26px; }
.quiz-progress-bar { height: 100%; width: 0; background: var(--brand); transition: width 0.4s ease; }
.quiz-q { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); margin-bottom: 22px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt { text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 15px 18px; font-size: 1rem; color: var(--ink-body); cursor: pointer; transition: var(--transition); font-family: var(--font-body); }
.quiz-opt:hover { border-color: var(--brand); background: var(--brand-subtle); }
.quiz-result { text-align: center; }
.quiz-score-ring { font-family: var(--font-mono); font-size: 3rem; font-weight: 600; color: var(--brand-hover); }
.quiz-verdict { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 6px 0 14px; }

/* ---------- Contact (photo bg) ---------- */
.k2lf-section { position: relative; overflow: hidden; padding: clamp(72px,11vh,120px) clamp(20px,5vw,72px); }
.k2lf-section > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k2lf-section > .scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,20,21,0.92) 0%, rgba(20,20,21,0.78) 45%, rgba(35,36,39,0.55) 100%); }
.k2lf-container { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.k2lf-aside { color: #fff; }
.k2lf-aside .eyebrow { color: var(--brand-300); }
.k2lf-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; font-size: clamp(30px,4vw,50px); color: #fff; text-wrap: balance; margin-bottom: 18px; }
.k2lf-sub { font-size: 18px; line-height: 1.65; color: #E3E4E6; max-width: 44ch; margin-bottom: 26px; }
.k2lf-points { display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #F3F3F2; }
.k2lf-points li { display: flex; gap: 12px; align-items: center; }
.k2lf-points li::before { content: "\2713"; color: var(--brand-400); font-weight: 800; }
.k2lf-form { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-xl); overflow: hidden; }
.k2lf-form::before { content: ""; display: block; height: 6px; background: var(--gradient-sunrise-h); }
.k2lf-grid { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.k2lf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.k2lf-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.k2lf-field input, .k2lf-field select {
  width: 100%; height: 44px; padding: 0 14px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card); color: var(--ink);
}
.k2lf-field input:focus, .k2lf-field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--shadow-focus); }
.k2lf-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.45; margin-top: 4px; }
.k2lf-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.k2lf-form .btn { grid-column: 1 / -1; width: 100%; justify-content: center; margin-top: 4px; }
.k2lf-status { grid-column: 1 / -1; margin-top: 12px; text-align: center; font-weight: 600; min-height: 1.2em; }
.k2lf-status.k2lf-ok { color: #5E7A3E; }
.k2lf-status.k2lf-err { color: #9E4A33; }

/* ---------- Footer ---------- */
#footer { background: var(--darker); color: #C9CACD; padding: clamp(48px,7vh,72px) clamp(20px,5vw,72px) 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { max-width: 340px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .footer-logo .mark { width: 36px; height: 36px; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; color: #fff; line-height: 1.05; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 14px; color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-cols a { color: #C9CACD; }
.footer-cols a:hover { color: var(--brand-300); }
.footer-legal { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--ink-faint); }
.footer-legal span:last-child { max-width: 60ch; }

/* ---------- Fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .k2lf-container { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .stat.divided { border: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions { display: none; }
  .nav-links {
    position: fixed; top: 76px; right: 16px; left: 16px; margin-left: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    flex-direction: column; align-items: stretch; gap: 6px; padding: 16px; box-shadow: var(--shadow-xl);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--ink) !important; opacity: 1; padding: 10px 6px; }
  .nav-links a.nav-cta { color: #fff !important; justify-content: center; }
}
@media (max-width: 560px) {
  .k2lf-grid { grid-template-columns: 1fr; }
}
