/* UPshore — upshore.ai — dark / electric design system */

:root {
  --bg: #05080f;
  --bg-2: #080d18;
  --bg-3: #0a1120;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(10, 124, 255, 0.5);
  --ink: #f2f6fb;
  --body: #a9b7c9;
  --muted: #64748b;
  --accent: #0a7cff;
  --accent-2: #56c1ff;
  --glow: rgba(10, 124, 255, 0.32);
  --radius: 16px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient glows + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(10, 124, 255, 0.14) 0%, transparent 60%),
    radial-gradient(700px 500px at 90% 40%, rgba(86, 193, 255, 0.05) 0%, transparent 60%),
    radial-gradient(700px 500px at 5% 75%, rgba(10, 124, 255, 0.05) 0%, transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
.center { text-align: center; }

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 600; }

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 30%, #9cc8ff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h3 { font-size: 1.08rem; letter-spacing: -0.01em; }

p strong { color: var(--ink); font-weight: 600; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(86, 193, 255, 0.28);
  background: rgba(10, 124, 255, 0.08);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}

/* ============ Nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 15, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }
.logo-mark { flex-shrink: 0; border-radius: 8px; box-shadow: 0 0 18px rgba(10, 124, 255, 0.45); }

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}

.nav-links a:hover { color: var(--ink); }

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, #0a7cff 0%, #2f9bff 100%);
  color: #fff;
  box-shadow: 0 0 24px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(10, 124, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--line-bright); color: var(--accent-2); transform: translateY(-2px); }

.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ============ Hero ============ */

.hero { padding: 108px 0 64px; text-align: center; }

.lede {
  max-width: 720px;
  margin: 26px auto 0;
  font-size: 1.16rem;
  color: var(--body);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-demo {
  max-width: 680px;
  margin: 64px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(10, 124, 255, 0.08);
  overflow: hidden;
  text-align: left;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.demo-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.demo-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.demo-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 14px; }

.demo-msg { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; }

.demo-q {
  align-self: flex-end;
  background: linear-gradient(135deg, #0a7cff, #2f9bff);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 0 20px rgba(10, 124, 255, 0.25);
}

.demo-a {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--body);
  border-bottom-left-radius: 4px;
}

.demo-a p + p { margin-top: 10px; }

.demo-cite {
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 500;
}

/* ============ Sections ============ */

.section { padding: 100px 0; }

.section-tint { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }

.section h2 { max-width: 800px; }
.center h2, .hero h1 { margin-left: auto; margin-right: auto; }

.section-lede {
  max-width: 680px;
  margin-top: 20px;
  font-size: 1.08rem;
}

.center .section-lede { margin-left: auto; margin-right: auto; }

/* ============ Grids & cards ============ */

.grid { display: grid; gap: 18px; margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 30px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 124, 255, 0.45);
  background: var(--panel-2);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45), 0 0 34px rgba(10, 124, 255, 0.12);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(10, 124, 255, 0.1);
  border: 1px solid rgba(86, 193, 255, 0.25);
  box-shadow: 0 0 22px rgba(10, 124, 255, 0.15);
}

/* ============ Trust (dark accent panel) ============ */

.section-dark {
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(10, 124, 255, 0.12) 0%, transparent 60%),
    var(--bg-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark h2, .section-dark h3 { color: var(--ink); }

.trust-grid { gap: 14px; }

.trust-item {
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.22s ease;
}

.trust-item:hover { border-color: rgba(10, 124, 255, 0.4); }

.trust-item h3 { margin-bottom: 8px; font-size: 1rem; }
.trust-item p { font-size: 0.92rem; color: var(--body); }

/* ============ Steps (horizontal timeline) ============ */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 60px;
}

.steps-line {
  position: absolute;
  top: 20px;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}

.steps-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #0a7cff, #56c1ff);
  transform: scaleX(0);
  transform-origin: left;
}

.steps.visible .steps-line::before { animation: steps-fill 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }

@keyframes steps-fill { to { transform: scaleX(1); } }

.steps-pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fd4ff;
  box-shadow: 0 0 14px #56c1ff;
  opacity: 0;
}

.steps.visible .steps-pulse { animation: steps-run 3.4s linear 1.7s infinite; }

@keyframes steps-run {
  0% { left: 0; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

.step { opacity: 0; transform: translateY(18px); }

.steps.visible .step { animation: step-in 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.steps.visible .step:nth-child(2) { animation-delay: 0.1s; }
.steps.visible .step:nth-child(3) { animation-delay: 0.4s; }
.steps.visible .step:nth-child(4) { animation-delay: 0.7s; }
.steps.visible .step:nth-child(5) { animation-delay: 1s; }

@keyframes step-in { to { opacity: 1; transform: none; } }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a1120;
  border: 1px solid rgba(86, 193, 255, 0.45);
  box-shadow: 0 0 18px rgba(10, 124, 255, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #56c1ff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step:hover .step-num { border-color: rgba(86, 193, 255, 0.9); box-shadow: 0 0 30px rgba(10, 124, 255, 0.5); }

.step h3 { font-size: 1.02rem; }
.step-time { display: block; margin: 4px 0 10px; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.step p { font-size: 0.9rem; }

/* ============ Story / stats ============ */

.story { max-width: 720px; margin-top: 30px; }
.story p + p { margin-top: 18px; }
.story-close { color: var(--body); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.stat {
  padding: 26px 20px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 20%, #56c1ff 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label { margin-top: 6px; font-size: 0.83rem; color: var(--muted); }

/* ============ FAQ ============ */

.faq-list { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; }

.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.faq:hover, .faq[open] { border-color: rgba(10, 124, 255, 0.4); }

.faq summary {
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-2);
  transition: transform 0.2s ease;
}

.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq p { padding: 0 22px 20px; font-size: 0.95rem; }

/* ============ Final CTA ============ */

.section-cta {
  padding: 120px 0;
  background:
    radial-gradient(800px 460px at 50% 115%, rgba(10, 124, 255, 0.16) 0%, transparent 60%),
    var(--bg);
}

/* ============ Footer ============ */

.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }

.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }

.logo-footer { font-size: 1rem; }

.footer-tag { font-size: 0.9rem; color: var(--body); }
.footer-meta { font-size: 0.83rem; color: var(--muted); }

/* ============ Reveal ============ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Schedule-a-call form ============ */

.schedule-form {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.schedule-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.schedule-form .opt { font-weight: 400; color: var(--muted); }

.schedule-form input,
.schedule-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color-scheme: dark;
}

.schedule-form input::placeholder,
.schedule-form textarea::placeholder { color: var(--muted); }

.schedule-form input:focus,
.schedule-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 124, 255, 0.22);
}

.schedule-form textarea { resize: vertical; }

.form-full { margin-top: 18px; }

.schedule-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.schedule-form button[type="submit"] {
  width: 100%;
  margin-top: 24px;
}

.schedule-form button[disabled] { opacity: 0.6; cursor: default; }

.form-status {
  margin-top: 14px;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.93rem;
  color: var(--body);
}

.form-status.error { color: #ff7a6b; }
.form-status.success { color: var(--accent-2); font-weight: 600; }

/* ============ Iceberg ============ */

.iceberg-section { padding-bottom: 0; }

.berg-stage {
  margin-top: 56px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(86, 193, 255, 0.05) 33.9%,
    rgba(7, 34, 58, 0.85) 34.35%,
    #051524 62%,
    #030b14 100%
  );
}

.berg-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 1200 / 760;
}

.berg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.berg-float { animation: berg-bob 9s ease-in-out infinite alternate; }

@keyframes berg-bob {
  from { transform: translateY(0); }
  to { transform: translateY(7px); }
}

.berg-label {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted);
}

.berg-label-deep { fill: rgba(126, 195, 255, 0.55); }

.flow {
  fill: none;
  stroke: rgba(86, 193, 255, 0.22);
  stroke-width: 1.5;
  transition: stroke 0.2s ease;
}

.flow.lit { stroke: rgba(86, 193, 255, 0.85); }

.flow-up { stroke: rgba(86, 193, 255, 0.4); stroke-width: 2; }

.pulse { fill: #7fd4ff; }
.pulse-up { fill: #b5e6ff; }

.berg-chat {
  position: absolute;
  left: 58.3%;
  top: 6%;
  width: 27%;
  min-width: 240px;
  transform: translateX(0);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 13, 24, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 44px rgba(10, 124, 255, 0.12);
  overflow: hidden;
}

.berg-chat .demo-bar { padding: 9px 13px; }

.berg-chat-body {
  padding: 16px 15px 6px;
  font-size: 0.9rem;
  color: var(--ink);
  min-height: 66px;
}

.berg-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent-2);
  animation: berg-blink 1s steps(2) infinite;
}

@keyframes berg-blink { 50% { opacity: 0; } }

.berg-chat-cite {
  padding: 0 15px 14px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent-2);
}

.berg-core {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid rgba(86, 193, 255, 0.4);
  background: rgba(8, 16, 28, 0.92);
  box-shadow: 0 0 44px rgba(10, 124, 255, 0.28);
  animation: berg-core-pulse 3.4s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes berg-core-pulse {
  0%, 100% { box-shadow: 0 0 34px rgba(10, 124, 255, 0.22); }
  50% { box-shadow: 0 0 58px rgba(10, 124, 255, 0.42); }
}

.berg-core strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.25;
}

.berg-core em {
  font-style: normal;
  font-size: 0.74rem;
  color: rgba(126, 195, 255, 0.75);
  letter-spacing: 0.04em;
}

.berg-chips { position: absolute; inset: 0; pointer-events: none; }

.chip {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(86, 193, 255, 0.3);
  background: rgba(8, 16, 28, 0.85);
  color: #cfe6f5;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.chip:hover {
  border-color: rgba(86, 193, 255, 0.9);
  box-shadow: 0 0 24px rgba(10, 124, 255, 0.35);
  transform: translate(-50%, -50%) translateY(-2px);
}

/* ============ Responsive ============ */

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 76px 0; }
  .hero { padding: 72px 0 48px; }
}

@media (max-width: 720px) {
  /* iceberg falls back to a stacked layout */
  .berg-stage {
    background: linear-gradient(180deg, var(--bg-2) 0%, #051524 30%, #030b14 100%);
    padding: 36px 20px 48px;
  }
  .berg-wrap { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
  .berg-svg { display: none; }
  .berg-chat { position: static; width: 100%; max-width: 420px; }
  .berg-core { position: static; transform: none; }
  .berg-chips {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 460px;
  }
  .chip { position: static; transform: none; }
  .chip:hover { transform: translateY(-2px); }
}

@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .demo-msg { max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .berg-float, .berg-core, .berg-caret { animation: none; }
  .step { opacity: 1; transform: none; }
  .steps-line::before { transform: scaleX(1); }
  .steps.visible .step, .steps.visible .steps-line::before, .steps.visible .steps-pulse { animation: none; }
  .btn, .card, .chip { transition: none; }
}

/* ============ intl-tel-input dark theme ============ */

.iti { width: 100%; margin-top: 7px; }
.schedule-form .iti input { margin-top: 0; }

.iti__selected-country {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 10px 0 0 10px;
}

.iti__selected-country-primary:hover,
.iti__selected-country:focus .iti__selected-country-primary {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px 0 0 10px;
}

.iti__selected-dial-code { color: var(--body); }
.iti__arrow { border-top-color: var(--muted); }
.iti__arrow--up { border-bottom-color: var(--muted); }

.iti__dropdown-content {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  color: var(--ink);
}

.iti__search-input {
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
}

.iti__search-input::placeholder { color: var(--muted); }
.iti__search-input:focus { outline: none; }

.iti__country-list { background: transparent; }
.iti__country { color: var(--body); }

.iti__country:hover,
.iti__country--highlighted {
  background: rgba(10, 124, 255, 0.14);
  color: var(--ink);
}

.iti__dial-code { color: var(--muted); }
.iti__divider { border-bottom: 1px solid var(--line); }

/* ============ Iceberg AI layer node ============ */

.berg-ai {
  position: absolute;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid rgba(127, 212, 255, 0.55);
  background: rgba(8, 16, 28, 0.92);
  color: #7fd4ff;
  box-shadow: 0 0 38px rgba(86, 193, 255, 0.35);
  animation: berg-ai-pulse 2.8s ease-in-out infinite;
  white-space: nowrap;
  z-index: 2;
}

@keyframes berg-ai-pulse {
  0%, 100% { box-shadow: 0 0 26px rgba(86, 193, 255, 0.28); }
  50% { box-shadow: 0 0 52px rgba(86, 193, 255, 0.5); }
}

.berg-ai strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.2;
}

.berg-ai em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(127, 212, 255, 0.8);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .berg-ai { position: static; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .berg-ai { animation: none; }
}

/* ============ Impact charts ============ */

.charts-grid { text-align: left; }

.chart-card { display: flex; flex-direction: column; }

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chart-legend { display: flex; gap: 14px; }

.lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted);
}

.lg::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
}

.lg-sales::before { background: #56c1ff; box-shadow: 0 0 6px #56c1ff; }
.lg-labor::before { background: rgba(255, 255, 255, 0.38); }
.lg-neg::before { background: #ffb454; box-shadow: 0 0 6px #ffb454; }

.chart { width: 100%; height: auto; display: block; margin-top: 18px; }

.chart-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }

.chart-line { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart-line--sales { stroke: #56c1ff; stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(86, 193, 255, 0.55)); }
.chart-line--labor { stroke: rgba(255, 255, 255, 0.38); stroke-width: 2; }

.chart-card.visible .chart-line--sales { animation: chart-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }
.chart-card.visible .chart-line--labor { animation: chart-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards; }

@keyframes chart-draw { to { stroke-dashoffset: 0; } }

.chart-area { fill: url(#chart-fade); opacity: 0; }
.chart-card.visible .chart-area { animation: chart-fade-in 1s ease 1.1s forwards; }

@keyframes chart-fade-in { to { opacity: 1; } }

.chart-bar {
  fill: url(#bar-grad);
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
}

.chart-bar--hot { filter: drop-shadow(0 0 8px rgba(86, 193, 255, 0.6)); }

.chart-card.visible .chart-bar { animation: bar-up 0.7s cubic-bezier(0.2, 0.7, 0.3, 1.15) forwards; }
.chart-card.visible .chart-bar:nth-of-type(1) { animation-delay: 0.15s; }
.chart-card.visible .chart-bar:nth-of-type(2) { animation-delay: 0.25s; }
.chart-card.visible .chart-bar:nth-of-type(3) { animation-delay: 0.35s; }
.chart-card.visible .chart-bar:nth-of-type(4) { animation-delay: 0.45s; }
.chart-card.visible .chart-bar:nth-of-type(5) { animation-delay: 0.55s; }
.chart-card.visible .chart-bar:nth-of-type(6) { animation-delay: 0.65s; }
.chart-card.visible .chart-bar:nth-of-type(7) { animation-delay: 0.75s; }
.chart-card.visible .chart-bar:nth-of-type(8) { animation-delay: 0.85s; }

@keyframes bar-up { to { transform: scaleY(1); } }

.chart-hbar {
  fill: url(#hbar-grad);
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left;
}

.chart-hbar--neg { fill: #ffb454; filter: drop-shadow(0 0 7px rgba(255, 180, 84, 0.55)); }

.chart-card.visible .chart-hbar { animation: hbar-out 0.8s cubic-bezier(0.2, 0.7, 0.3, 1.1) forwards; }
.chart-card.visible .chart-hbar:nth-of-type(1) { animation-delay: 0.15s; }
.chart-card.visible .chart-hbar:nth-of-type(2) { animation-delay: 0.3s; }
.chart-card.visible .chart-hbar:nth-of-type(3) { animation-delay: 0.45s; }
.chart-card.visible .chart-hbar:nth-of-type(4) { animation-delay: 0.6s; }
.chart-card.visible .chart-hbar:nth-of-type(5) { animation-delay: 0.75s; }

@keyframes hbar-out { to { transform: scaleX(1); } }

.chart-cat {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--muted);
}

.chart-card--gauge { align-items: center; text-align: center; }
.chart-card--gauge .chart-head { justify-content: center; }
.chart--gauge { max-width: 190px; }

.gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 12; }

.gauge-arc {
  fill: none;
  stroke: url(#gauge-grad);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 8px rgba(86, 193, 255, 0.4));
}

.chart-card.visible .gauge-arc { animation: gauge-fill 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }

@keyframes gauge-fill { to { stroke-dashoffset: 13; } }

.gauge-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  fill: #ffffff;
}

.gauge-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--muted);
}

.chart-insight {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-2);
}

@media (prefers-reduced-motion: reduce) {
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
  .chart-bar { transform: scaleY(1); }
  .chart-hbar { transform: scaleX(1); }
  .gauge-arc { stroke-dashoffset: 13; }
  .chart-card.visible .chart-line,
  .chart-card.visible .chart-area,
  .chart-card.visible .chart-bar,
  .chart-card.visible .chart-hbar,
  .chart-card.visible .gauge-arc { animation: none; }
}
