@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Inter:wght@300;400;500;600&family=DM+Mono:wght@300;400;500&display=swap');

/* ══════════════════════════════════════════
   RESET + ROOT
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #F7F7F7;
  --s1:      #FFFFFF;
  --s2:      #EFEFEF;
  --s3:      #E4E4E4;
  --btn:     #EEEEEE;
  --orange:  #FF8800;
  --o05:     rgba(255,136,0,0.05);
  --o10:     rgba(255,136,0,0.10);
  --o20:     rgba(255,136,0,0.22);
  --o35:     rgba(255,136,0,0.38);
  --white:   #FFFFFF;
  --text:    #111111;
  --g1:      #222222;
  --g2:      #555555;
  --g3:      #888888;
  --g4:      #CCCCCC;
  --border:  rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.15);
  --cursor:  #4A9EFF;
  --f-d:     'Big Shoulders Display', sans-serif;
  --f-b:     'Inter', sans-serif;
  --f-m:     'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transition: opacity 0.38s ease;
}
body.loaded { opacity: 1; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 66px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(247,247,247,0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px; display: block; flex-shrink: 0;
  border-radius: 8px; object-fit: cover;
}
.logo-name {
  font-family: var(--f-d); font-weight: 800; font-size: 19px;
  color: var(--text); letter-spacing: 0.3px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-link {
  font-family: var(--f-b); font-size: 13.5px; color: var(--g2);
  text-decoration: none; padding: 6px 14px; border-radius: 8px;
  transition: color .2s, background .2s; letter-spacing: .2px;
}
.nav-link:hover { color: var(--text); background: rgba(0,0,0,.05); }
.nav-link.active { color: var(--text); background: rgba(0,0,0,.06); }

/* ── NAV DROPDOWN ── */
.nav-item {
  position: relative;
  /* Extend hover zone downward so mouse can reach the dropdown */
  padding-bottom: 16px;
  margin-bottom: -16px;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  min-width: 192px;
  padding-top: 8px;
  z-index: 200;
}
.nav-dropdown-inner {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
}
/* Triangle pointer */
.nav-dropdown-inner::before {
  content: '';
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 6px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: var(--border2);
}
.nav-dropdown-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 9px;
  text-decoration: none;
  transition: background .15s;
}
.nav-dropdown-item:hover { background: rgba(255,136,0,.08); }
.nav-dropdown-item-title {
  font-family: var(--f-b); font-size: 13.5px; color: var(--text);
  font-weight: 500; letter-spacing: .1px;
}
.nav-dropdown-item-sub {
  font-family: var(--f-m); font-size: 11px; color: var(--g3);
  letter-spacing: .3px;
}
.nav-dropdown-item:hover .nav-dropdown-item-title { color: var(--orange); }

.nav-cta {
  display: flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  padding: 8px 20px; border-radius: 50px;
  font-family: var(--f-b); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .87; transform: scale(1.03); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 52px 32px;
  position: relative; z-index: 2;
}

/* Multi-column footer grid */
.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand {}
.footer-logo-link {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; margin-bottom: 14px;
}
.footer-brand-name {
  font-family: var(--f-d); font-weight: 800; font-size: 18px; color: var(--text);
}
.footer-tagline {
  font-size: 13px; color: var(--g3); line-height: 1.65; font-weight: 300;
  max-width: 230px; margin-bottom: 22px;
}
.footer-stores { display: flex; flex-direction: column; gap: 8px; }
.footer-store {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--s2); border: 1px solid var(--border2);
  border-radius: 10px; padding: 9px 14px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  width: fit-content;
}
.footer-store:hover { border-color: var(--o20); background: var(--o05); }
.footer-store-sub {
  font-family: var(--f-m); font-size: 8.5px; color: var(--g3);
  letter-spacing: .5px; display: block;
}
.footer-store-name {
  font-size: 12.5px; font-weight: 500; color: var(--text); display: block; line-height: 1.2;
}

.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col-head {
  font-family: var(--f-m); font-size: 10px; color: var(--g3);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col-link {
  font-size: 13.5px; color: var(--g2); text-decoration: none;
  padding: 5px 0; transition: color .18s;
}
.footer-col-link:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--g3); font-weight: 300; }
.footer-btm-links { display: flex; gap: 18px; }
.footer-btm-link {
  font-size: 12px; color: var(--g3); text-decoration: none; transition: color .18s;
}
.footer-btm-link:hover { color: var(--text); }

/* Legacy single-row footer (other pages until updated) */
.footer-l { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 22px; }
.footer-link { font-size: 12.5px; color: var(--g3); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--g2); }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  padding: 13px 26px; border-radius: 50px;
  font-family: var(--f-b); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .22s, box-shadow .22s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px var(--o35); }
.btn-primary.lg { padding: 16px 36px; font-size: 15.5px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 12px 26px; border-radius: 50px;
  border: 1.5px solid var(--border2);
  font-family: var(--f-b); font-size: 14px; font-weight: 400;
  text-decoration: none;
  transition: transform .22s, background .22s, border-color .22s;
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.28); }
.btn-ghost.lg { padding: 15px 36px; font-size: 15.5px; }
.btn-icon { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }

/* ══════════════════════════════════════════
   TYPOGRAPHY UTILITIES
══════════════════════════════════════════ */
.grad {
  background: linear-gradient(118deg, #FF8800 0%, #FF4400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-m); font-size: 10px; color: var(--orange);
  letter-spacing: 2.2px; text-transform: uppercase;
}
.mono-dot {
  width: 5px; height: 5px; background: var(--orange);
  border-radius: 50%; animation: dot-pulse 2s ease infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.72); }
}

/* ══════════════════════════════════════════
   PHONE COMPONENT
══════════════════════════════════════════ */
.phone-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}

.phone-under-glow {
  position: absolute;
  bottom: -18px; left: 50%;
  transform: translateX(-50%);
  width: 230px; height: 58px;
  background: radial-gradient(ellipse, var(--o35) 0%, transparent 70%);
  filter: blur(20px);
  animation: glow-breathe 3.5s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%,100% { opacity: .65; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.18); }
}

.phone {
  width: 268px; height: 556px;
  background: linear-gradient(168deg, #202020 0%, #0c0c0c 100%);
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.09);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0   rgba(255,255,255,.12),
    0 0 0 0.5px      rgba(0,0,0,.9),
    0 30px 60px      rgba(0,0,0,.6),
    0 60px 110px     rgba(0,0,0,.38);
  animation: phone-float 5.5s ease-in-out infinite;
}
@keyframes phone-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

.phone-pill {
  position: absolute; top: 13px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 9px;
  background: #000; border-radius: 10px; z-index: 20;
}
.phone-home {
  position: absolute; bottom: 7px; left: 50%;
  transform: translateX(-50%);
  width: 108px; height: 4px;
  background: rgba(255,255,255,.22);
  border-radius: 4px; z-index: 20;
}
.phone-shine {
  position: absolute; inset: 0;
  background: linear-gradient(142deg, rgba(255,255,255,.058) 0%, transparent 26%);
  pointer-events: none; z-index: 100; border-radius: 50px;
}

/* calc screen inside phone */
.c-display {
  background: #0a0a0a;
  padding: 32px 14px 8px;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-end;
  min-height: 148px; flex-shrink: 0;
}
.c-hist-line { font-family: var(--f-b); font-size: 11px; color: #5a5a5a; margin-bottom: 1px; }
.c-expr { font-family: var(--f-b); font-size: 19px; font-weight: 300; color: rgba(255,255,255,.44); letter-spacing: -.2px; }
.c-live-row { display: flex; align-items: flex-end; gap: 2px; }
.c-eq   { font-family: var(--f-b); font-size: 17px; font-weight: 300; color: rgba(255,255,255,.44); line-height: 1.6; }
.c-res  { font-family: var(--f-b); font-size: 44px; font-weight: 600; color: #fff; letter-spacing: -1.5px; line-height: 1; }

.c-grid { background: #0a0a0a; flex: 1; display: flex; flex-direction: column; padding: 4px 8px 22px; gap: 4px; }
.c-row  { display: flex; gap: 4px; flex: 1; }

.cb {
  flex: 1; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-b); font-size: 16px; font-weight: 400;
  cursor: pointer; user-select: none;
  transition: opacity .12s, transform .12s;
}
.cb:active { opacity: .6; transform: scale(.91); }
.cb.num  { background: #262626; color: #fff; }
.cb.op   { background: #262626; color: #FF8800; }
.cb.util { background: #262626; color: #FF8800; }
.cb.eq   { background: #FF8800; color: #fff; font-weight: 600; font-size: 21px; }

/* sci phone variant */
.sci-phone {
  width: 268px; height: 562px;
  background: linear-gradient(168deg, #202020 0%, #0c0c0c 100%);
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.09);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0   rgba(255,255,255,.12),
    0 0 0 0.5px      rgba(0,0,0,.9),
    0 30px 60px      rgba(0,0,0,.55),
    0 60px 110px     rgba(0,0,0,.35);
}

.s-display { background: #0a0a0a; padding: 30px 13px 8px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; min-height: 108px; flex-shrink: 0; }
.s-expr    { font-family: var(--f-b); font-size: 13px; color: rgba(255,255,255,.38); font-weight: 300; }
.s-res     { font-family: var(--f-b); font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -1px; margin-top: 2px; }

.s-grid { background: #0a0a0a; flex: 1; display: flex; flex-direction: column; padding: 3px 5px 14px; gap: 3px; }
.s-row  { display: flex; gap: 3px; flex: 1; }

.sb {
  flex: 1; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-b); font-size: 10px; font-weight: 400;
}
.sb.num  { background: #262626; color: #fff; }
.sb.op   { background: #262626; color: #FF8800; }
.sb.sci  { background: #262626; color: #9a9a9a; }
.sb.eq   { background: #FF8800; color: #fff; font-weight: 600; font-size: 12px; }
.sb.util { background: #262626; color: #FF8800; }

/* hist phone variant */
.hist-topbar {
  background: #0a0a0a;
  padding: 34px 18px 12px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.hist-back-btn { color: #fff; font-size: 20px; }
.hist-title-text { font-family: var(--f-d); font-size: 17px; font-weight: 700; color: #fff; }
.hist-del-btn { font-size: 18px; }

.hist-body { background: #0a0a0a; flex: 1; padding: 0 16px 14px; overflow: hidden; }
.hist-date-label { font-family: var(--f-m); font-size: 10px; color: #FF8800; text-align: right; padding: 12px 0 5px; letter-spacing: .5px; }
.hist-row { padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.04); }
.hist-e { font-family: var(--f-b); font-size: 12.5px; color: #666; font-weight: 300; }
.hist-r { font-family: var(--f-b); font-size: 12.5px; color: #fff; font-weight: 700; }

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ══════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════ */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes blink  { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes ripple {
  0%   { transform: translate(-50%,-50%) scale(0); opacity:.6; }
  100% { transform: translate(-50%,-50%) scale(2.5); opacity:0; }
}

/* ══════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 7px; border-radius: 8px; width: 36px; height: 36px;
  transition: background .2s; flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,.07); }
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .26s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   MOBILE NAV DRAWER
══════════════════════════════════════════ */
.nav-mobile { display: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  #nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-mobile {
    display: flex; flex-direction: column;
    position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
    z-index: 490;
    background: rgba(6,6,6,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border);
    padding: 32px 24px 44px;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
    pointer-events: none;
  }
  .nav-mobile.open {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: auto;
  }
  .nav-mobile-link {
    font-family: var(--f-d); font-weight: 800; font-size: 30px;
    color: var(--g2); text-decoration: none;
    padding: 12px 10px; border-radius: 12px;
    letter-spacing: -.6px; line-height: 1; display: block;
    transition: color .15s, background .15s;
  }
  .nav-mobile-link:hover, .nav-mobile-link.active { color: var(--white); background: rgba(255,255,255,.04); }
  .nav-mobile-divider { height: 1px; background: var(--border); margin: 10px 0; }
  .nav-mobile-label {
    font-family: var(--f-m); font-size: 10px; color: var(--orange);
    letter-spacing: 2.5px; text-transform: uppercase;
    padding: 14px 10px 6px; display: block;
  }
  .nav-mobile-sub-link {
    font-family: var(--f-b); font-size: 15px; color: var(--g2);
    text-decoration: none; padding: 10px 10px 10px 22px;
    border-radius: 10px; display: flex; align-items: center; gap: 8px;
    transition: color .15s, background .15s;
  }
  .nav-mobile-sub-link::before { content: '→'; color: var(--orange); font-size: 12px; opacity: .55; flex-shrink: 0; }
  .nav-mobile-sub-link:hover { color: var(--orange); background: var(--o05); }
  .nav-mobile-cta { margin-top: auto; padding-top: 32px; display: flex; }
  .nav-mobile-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--orange); color: #fff;
    padding: 14px 28px; border-radius: 50px;
    font-family: var(--f-b); font-size: 15px; font-weight: 500;
    text-decoration: none; transition: opacity .2s;
  }
  .nav-mobile-cta a:hover { opacity: .87; }

  footer { padding: 40px 20px 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
}

@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
