/* ════════════════════════════════════════
   UPTIME COMMERCIAL — Global Stylesheet
   uptimecommercial.com
════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Syne', sans-serif;
  background: #090d12;
  color: #ddd9d0;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── TOKENS ── */
:root {
  --bg:       #090d12;
  --bg2:      #0d1219;
  --paper:    #ddd9d0;
  --gold:     #c4a24a;
  --gold2:    #e2bc62;
  --dim:      rgba(221,217,208,0.58);
  --dim2:     rgba(221,217,208,0.78);
  --rule:     rgba(221,217,208,0.10);
  --rule2:    rgba(221,217,208,0.06);
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Syne', sans-serif;
  --mono:     'DM Mono', monospace;
  --ease:     cubic-bezier(0.4,0,0.2,1);
}

/* ── CURSOR ── */
.cur-dot {
  position: fixed; width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.12s ease;
  will-change: left, top;
}
.cur-ring {
  position: fixed; width: 30px; height: 30px;
  border: 1px solid rgba(196,162,74,0.35);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  will-change: left, top;
}
@media (hover: none) { .cur-dot, .cur-ring { display: none; } }

/* ── PROGRESS BAR ── */
#prog {
  position: fixed; top: 0; left: 0; height: 1px;
  background: var(--gold); z-index: 9000; width: 0;
  box-shadow: 0 0 8px rgba(196,162,74,0.5);
  transition: width 0.05s linear;
}

/* ── LAYOUT ── */
.w   { max-width: 1160px; margin: 0 auto; padding: 0 56px; }
.ws  { max-width: 860px;  margin: 0 auto; padding: 0 56px; }
.wt  { max-width: 680px;  margin: 0 auto; padding: 0 56px; }
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
nav.solid {
  background: rgba(9,13,18,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--rule);
}
.nav-logo {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); text-decoration: none; line-height: 1;
  flex-shrink: 0;
}
.nav-logo em { font-style: normal; color: var(--gold); }
.nav-mid {
  display: flex; gap: 28px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-mid a {
  font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-mid a:hover,
.nav-mid a.active { color: var(--paper); }
.nav-mid a.active::after {
  content: ''; display: block; height: 1px;
  background: var(--gold); margin-top: 3px;
  opacity: 0.7;
}
.nav-cta {
  font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  padding: 10px 20px; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
  display: inline-block; flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold2); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 36px;
  margin-top: 0;
}
.foot-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 40px;
}
.foot-brand {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper);
}
.foot-brand em { font-style: normal; color: var(--gold); }
.foot-tagline {
  font-size: 13px; color: var(--dim); line-height: 1.65;
  margin-top: 10px; max-width: 260px; font-weight: 400;
}
.foot-col-title {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(221,217,208,0.65); margin-bottom: 14px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-col ul a {
  font-family: var(--sans); font-size: 13.5px; font-weight: 400;
  color: rgba(221,217,208,0.55); text-decoration: none;
  transition: color 0.2s;
}
.foot-col ul a:hover { color: var(--gold); }
.foot-links-row { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-bottom {
  border-top: 1px solid var(--rule2);
  padding-top: 24px; margin-top: 40px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.foot-copy {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: rgba(221,217,208,0.58); letter-spacing: 0.08em;
}
.foot-legal {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: rgba(221,217,208,0.58); letter-spacing: 0.06em;
}

/* ── REVEAL ANIMATION ── */
.rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}
.rv.on { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
.rv.d4 { transition-delay: 0.32s; }
.rv.d5 { transition-delay: 0.40s; }

/* ── PAGE HERO (shared pattern for inner pages) ── */
.page-hero {
  padding-top: 68px;
  padding-bottom: 0;
  min-height: 52vh;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; top: -15%; right: -8%;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(196,162,74,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  padding: 72px 56px 64px;
  max-width: 1160px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
  animation: ph 0.9s var(--ease) 0.1s both;
}
@keyframes ph {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.page-label {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.page-label::before { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: 0.6; }
.page-h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 6.5vw, 96px);
  font-weight: 300; line-height: 0.97;
  letter-spacing: -0.025em; color: var(--paper);
  margin-bottom: 28px;
}
.page-h1 em { font-style: italic; color: var(--gold2); }
.page-intro {
  font-family: var(--sans); font-size: 17px; font-weight: 400;
  line-height: 1.76; color: var(--dim2); max-width: 520px;
}

/* ── SECTION SHARED ── */
.sec { padding: 100px 0; }
.sec-sm { padding: 72px 0; }
.sec-label {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: block;
}
.sec-h {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 300; line-height: 1.07;
  letter-spacing: -0.02em; color: var(--paper);
  margin-bottom: 14px;
}
.sec-h em { font-style: italic; color: var(--gold2); }
.sec-lead {
  font-size: 16px; color: var(--dim2); line-height: 1.8;
  font-weight: 400; max-width: 540px;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  padding: 13px 24px; text-decoration: none;
  transition: background 0.2s; display: inline-block;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold2); }
.btn-secondary {
  font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim2); border: 1px solid rgba(221,217,208,0.25);
  padding: 12px 24px; text-decoration: none;
  transition: all 0.2s; display: inline-block;
  background: transparent; cursor: pointer;
}
.btn-secondary:hover { color: var(--paper); border-color: rgba(221,217,208,0.42); }

/* ── FORM ELEMENTS (shared) ── */
.cform { display: flex; flex-direction: column; gap: 18px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld.full { grid-column: 1/-1; }
.flbl {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(221,217,208,0.65);
}
.finput {
  background: rgba(221,217,208,0.04);
  border: 1px solid var(--rule);
  padding: 13px 15px; font-size: 14px; font-weight: 400;
  color: var(--paper); font-family: var(--sans);
  outline: none; width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.finput:focus { border-color: rgba(196,162,74,0.45); }
.finput::placeholder { color: rgba(221,217,208,0.45); }
select.finput { appearance: none; cursor: pointer; }
select.finput option { background: #141920; color: var(--paper); }
textarea.finput { min-height: 96px; resize: none; }
.fsub {
  font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  border: none; padding: 14px 26px; cursor: pointer;
  align-self: flex-start; transition: background 0.2s;
}
.fsub:hover { background: var(--gold2); }
.form-ok {
  display: none; font-family: var(--mono); font-size: 11.5px;
  color: #5cc98a; letter-spacing: 0.08em; padding: 14px 18px;
  border: 1px solid rgba(92,201,138,0.2);
  background: rgba(92,201,138,0.04);
}
.form-ok.show { display: block; }

/* ── BLINK CURSOR ── */
.blink {
  display: inline-block; width: 6px; height: 12px;
  background: var(--gold); vertical-align: middle;
  animation: bl 1s step-end infinite;
}
@keyframes bl { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* Mobile menu */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--paper); transition: all 0.3s ease; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .w,.ws,.wt { padding: 0 36px; }
  nav { padding: 0 36px; }
  .nav-toggle { display: flex; }
  .nav-mid {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9,13,18,0.97); flex-direction: column;
    align-items: center; justify-content: center; gap: 32px; z-index: 1000;
  }
  .nav-mid.open { display: flex; }
  .nav-mid.open a { font-size: 18px; letter-spacing: 0.15em; }
  .page-hero-inner { padding: 60px 36px 52px; }
}
@media (max-width: 640px) {
  .w,.ws,.wt { padding: 0 22px; }
  nav { padding: 0 22px; }
  .page-hero-inner { padding: 48px 22px 44px; }
  .sec { padding: 72px 0; }
  .frow { grid-template-columns: 1fr; }
  .foot-links-row { gap: 28px; }
  .foot-inner { gap: 28px; }
}
