/* ============================================================
   Atlas Nova — shared brand styles
   matches design language of tribase.cloud / tariff-atlas
   ============================================================ */
:root {
  --bg-0: #05080f;
  --bg-1: #0a111d;
  --bg-2: #0f1828;
  --bg-3: #142235;
  --line: #1c2a44;
  --line-2: #2a3a58;
  --text: #ffffff;
  --text-2: #c8d4ea;
  --text-3: #7a8aa8;
  --text-4: #4a5878;
  --blue: #4f8eff;
  --blue-2: #6ea0ff;
  --blue-3: #2563eb;
  --blue-glow: rgba(79, 142, 255, 0.35);
  --warn: #ff8a5c;
  --hot: #ff5c7a;
  --ok: #34d399;
  --radius-card: 20px;
  --radius-sm: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1400px 900px at 50% 30%, rgba(40, 70, 130, 0.28) 0%, rgba(10, 17, 29, 0) 60%),
    radial-gradient(ellipse 900px 600px at 80% 100%, rgba(60, 110, 200, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(20, 50, 110, 0.4) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 33% 67%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 70% 8%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 18% 88%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 56% 14%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 8% 45%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 42% 32%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 64% 55%, rgba(255,255,255,.35), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ── nav ── */
nav.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 0;
  position: relative; z-index: 5;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .brand-logo {
  height: 46px; width: auto; display: block;
  filter: drop-shadow(0 4px 16px rgba(79,142,255,.22));
}
footer.site .brand .brand-logo { height: 36px; }
@media (max-width: 520px) { .brand .brand-logo { height: 36px; } }

/* ─── TEST運用 banner ─── */
.test-banner {
  position: relative; z-index: 6;
  background: linear-gradient(90deg, rgba(255,138,92,.14), rgba(255,92,122,.10) 60%, rgba(255,138,92,.14));
  border-bottom: 1px solid rgba(255,138,92,.35);
  color: #ffd5bd;
  font-size: 12.5px;
  text-align: center;
  padding: 9px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
  font-family: 'Geist', system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
}
.test-banner .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff8a5c;
  box-shadow: 0 0 0 4px rgba(255,138,92,.25);
  animation: blink-warn 1.8s ease-in-out infinite;
}
@keyframes blink-warn {
  0%,100% { opacity: 1; box-shadow: 0 0 0 4px rgba(255,138,92,.25); }
  50%     { opacity: .55; box-shadow: 0 0 0 6px rgba(255,138,92,.05); }
}
.test-banner strong { color: #ffb088; letter-spacing: .12em; }
.test-banner .sep { color: rgba(255,213,189,.4); }
.test-banner .mono { font-family: 'Geist Mono', monospace; color: rgba(255,213,189,.7); font-size: 11.5px; }
@media (max-width: 760px) { .test-banner .desktop-only { display: none; } }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-3);
  padding: 6px 2px; position: relative;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--blue-2); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue-2); border-radius: 1px;
}

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .ghost { font-size: 14.5px; color: var(--text-2); padding: 8px 4px; }
.nav-cta .ghost:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: white;
  border: none; padding: 10px 20px; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; box-shadow: 0 8px 24px var(--blue-glow);
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 12px 32px var(--blue-glow); }
.btn.lg { padding: 14px 26px; font-size: 15.5px; border-radius: 12px; }
.btn.outline {
  background: transparent; border: 1px solid var(--line-2);
  color: var(--text); box-shadow: none;
}
.btn.outline:hover { border-color: var(--blue); background: rgba(79,142,255,.06); }

/* ── hamburger button (hidden on desktop) ── */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-left: 8px;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: absolute;
  left: 50%;
  margin-left: -9px;
  transition: transform .2s, opacity .2s;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── mobile slide-down menu (hidden on desktop) ── */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(5, 8, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  padding: 96px 0 30px;
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  opacity: 0;
  visibility: hidden;
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu .wrap { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--blue-2); }
.mobile-menu-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 18px;
}
.mobile-menu-cta a {
  display: block;
  text-align: center;
  border: none !important;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 500;
}
.mobile-menu-cta a.ghost {
  border: 1px solid var(--line-2) !important;
  color: var(--text);
}
.mobile-menu-cta a.btn {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px var(--blue-glow);
}

/* show hamburger + hide desktop nav on tablet/mobile (≤960px) */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* ── hero ── */
.hero { text-align: center; padding: 110px 0 70px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(15, 24, 40, 0.5);
  font-size: 12.5px; color: var(--text-2);
  letter-spacing: .02em;
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.eyebrow .badge { padding: 2px 8px; border-radius: 4px; background: rgba(79,142,255,.18); color: var(--blue-2); font-size: 11px; font-weight: 500; }
.hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1.04;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 0%, #b8c8ea 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .em {
  background: linear-gradient(90deg, var(--blue) 0%, #b8d0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  color: var(--text-3); font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400; max-width: 720px;
  margin: 0 auto 40px; line-height: 1.55;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── feature grid (4 column) ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 30px 0 90px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feat {
  background: rgba(15, 24, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 24px;
  transition: border-color .2s, transform .2s, background .2s;
}
.feat:hover { border-color: var(--line-2); background: rgba(20,34,53,.55); transform: translateY(-2px); }
.feat .ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(79, 142, 255, 0.12);
  border: 1px solid rgba(79, 142, 255, 0.28);
  display: grid; place-items: center; color: var(--blue-2);
  margin-bottom: 14px;
}
.feat h3 { font-size: 15.5px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.feat p { font-size: 13.5px; color: var(--text-3); margin: 0; line-height: 1.55; }

/* ── section ── */
section.section { padding: 60px 0; }
section.section.compact { padding: 30px 0; }
.section-eyebrow {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-2); font-weight: 500; margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 600;
  letter-spacing: -.022em; line-height: 1.15; margin: 0 0 14px;
}
.section .lead { font-size: 16px; color: var(--text-3); max-width: 620px; margin: 0 0 36px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .lead { margin: 0 auto; }

/* ── estimator preview (5-step) ── */
.estimator-preview {
  background: rgba(15, 24, 40, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 26px 28px; box-shadow: 0 30px 80px rgba(0,8,30,.5), 0 0 60px rgba(79,142,255,.05);
  margin-top: 28px;
}
.estimator-preview .titlebar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.estimator-preview .titlebar .lbl { display: flex; align-items: center; gap: 10px; }
.estimator-preview .titlebar .ico {
  width: 28px; height: 28px; background: linear-gradient(135deg, var(--blue), #2b5dd9);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.estimator-preview .titlebar h4 { font-size: 15.5px; font-weight: 600; margin: 0; }
.estimator-preview .titlebar .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ok); padding: 4px 10px;
  border-radius: 999px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25);
}
.estimator-preview .titlebar .live::before {
  content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52,211,153,.2);
}
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  position: relative; padding: 6px 0 8px;
}
.steps::before {
  content: ""; position: absolute; top: 50%; left: 8%; right: 8%;
  height: 1px; border-top: 1px dashed var(--line-2);
  transform: translateY(-50%); z-index: 0;
}
.step-item { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg-1);
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500;
  color: var(--text-3);
}
.step-item.active .step-circle { background: var(--blue); border-color: var(--blue); color: white; box-shadow: 0 0 0 4px rgba(79,142,255,.18); }
.step-item.done .step-circle { background: var(--blue); border-color: var(--blue); color: white; }
.step-item .step-lbl { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.step-item.active .step-lbl { color: var(--text); }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps::before { display: none; }
  .step-item { flex-direction: row; gap: 12px; justify-content: flex-start; }
}

/* ── how it works (3-step horizontal) ── */
.how {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 30px;
}
@media (max-width: 820px) { .how { grid-template-columns: 1fr; } }
.how-card {
  background: rgba(15,24,40,.55); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 24px;
  position: relative; overflow: hidden;
}
.how-card .num {
  font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--blue-2);
  border: 1px solid rgba(79,142,255,.3); padding: 3px 9px; border-radius: 6px;
  display: inline-block; margin-bottom: 18px;
  background: rgba(79,142,255,.06);
}
.how-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.how-card p { margin: 0; font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* ── coming soon overlay ── */
.coming-soon {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15,24,40,.5);
  backdrop-filter: blur(20px);
  padding: 60px 40px;
  text-align: center;
  margin: 30px 0;
  overflow: hidden;
}
.coming-soon::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(79,142,255,.12), transparent 70%);
  pointer-events: none;
}
.coming-soon .badge-cs {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(79,142,255,.3); background: rgba(79,142,255,.08);
  color: var(--blue-2); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 20px;
}
.coming-soon .badge-cs::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(79,142,255,.4); }
  50% { opacity: .6; box-shadow: 0 0 0 6px rgba(79,142,255,0); }
}
.coming-soon h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; font-weight: 600; letter-spacing: -.022em; }
.coming-soon p { color: var(--text-3); font-size: 16px; max-width: 580px; margin: 0 auto 28px; line-height: 1.6; }
.coming-soon .preview-blur {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10,17,29,.6);
  margin: 36px auto 0; max-width: 720px;
  overflow: hidden;
}
.coming-soon .preview-blur img,
.coming-soon .preview-blur .blur-content {
  filter: blur(3px);
  opacity: 0.6;
  pointer-events: none;
}

/* ── footer ── */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 0 30px;
}
footer.site .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
footer.site .small { font-size: 12.5px; color: var(--text-4); }
footer.site .small a { color: var(--text-3); margin-left: 16px; }
footer.site .small a:hover { color: var(--text-2); }

/* ── utilities ── */
.text-center { text-align: center; }
.mt-l { margin-top: 30px; }
.muted { color: var(--text-3); }
.mono { font-family: 'Geist Mono', monospace; }

/* ── upload mock for build page ── */
.layout-2col {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 980px) { .layout-2col { grid-template-columns: 1fr; } }
.panel {
  background: rgba(15,24,40,.6); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 20px; padding: 28px;
}
.upload-zone {
  border: 1.5px dashed var(--line-2); border-radius: 16px;
  padding: 50px 30px; text-align: center;
  background: rgba(10,17,29,.4);
  transition: border-color .2s, background .2s;
}
.upload-zone:hover { border-color: var(--blue); background: rgba(79,142,255,.04); }
.upload-zone .ico-cloud {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(79,142,255,.12); border: 1px solid rgba(79,142,255,.3);
  display: grid; place-items: center; margin: 0 auto 16px;
  color: var(--blue);
}
.upload-zone h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.upload-zone p { margin: 0 0 22px; font-size: 13px; color: var(--text-3); }
.upload-zone .or {
  position: relative; margin: 22px 0; font-size: 12px; color: var(--text-4);
}
.upload-zone .or::before, .upload-zone .or::after {
  content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--line);
}
.upload-zone .or::before { left: 0; }
.upload-zone .or::after { right: 0; }
.upload-zone .url-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--text-2);
  font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s;
  background: transparent;
}
.upload-zone .url-btn:hover { border-color: var(--blue); color: var(--text); }

.panel .field { margin-bottom: 18px; }
.panel label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; font-weight: 500; }
.panel input[type="text"], .panel select, .panel textarea {
  width: 100%; background: rgba(10,17,29,.5);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-family: inherit; font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s;
}
.panel input:focus, .panel select:focus, .panel textarea:focus { border-color: var(--blue); }
.panel textarea { min-height: 90px; resize: vertical; }
.panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── pricing tiers ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px;
}
@media (max-width: 820px) { .pricing-grid { grid-template-columns: 1fr; } }
.tier {
  background: rgba(15,24,40,.5); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.feat-tier { border-color: var(--blue); background: rgba(79,142,255,.04); }
.tier.feat-tier::before {
  content: "Recommended"; position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white;
  padding: 4px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .04em;
}
.tier .tier-name { font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.tier .price { font-size: 38px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 4px; }
.tier .price .per { font-size: 14px; color: var(--text-3); font-weight: 400; }
.tier .desc { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; min-height: 36px; }
.tier ul.bullets {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; color: var(--text-2);
}
.tier ul.bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
}
.tier ul.bullets li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px;
  margin-top: 2px;
  background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.4);
  border-radius: 4px;
  position: relative;
}
.tier ul.bullets li {
  position: relative;
}
.tier ul.bullets li::after {
  content: ""; position: absolute;
  left: 5px; top: 5px;
  width: 4px; height: 7px;
  border: solid var(--ok); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.tier .btn { margin-top: auto; justify-content: center; }
