/* ===========================
   OddsEdge - Landing Page CSS
   Theme: Dark Navy + Gold
   =========================== */

:root {
  --bg: #07090f;
  --bg-2: #0d1220;
  --bg-3: #131a2c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --gold: #f3c34a;
  --gold-2: #d4a017;
  --gold-soft: rgba(243, 195, 74, 0.12);
  --accent: #ffd866;
  --green: #2bd47a;
  --red: #ff5f6d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.gold { color: var(--gold); }
.accent { color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-logo { width: 36px; height: 36px; }
.brand-name { font-family: "Inter", sans-serif; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1100 !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243, 195, 74, 0.35); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 4px 0; border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(243, 195, 74, 0.18), transparent 60%),
    radial-gradient(50% 40% at 20% 80%, rgba(64, 120, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #07090f, #0a0f1d 60%, #07090f);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(243, 195, 74, 0.3);
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  margin: 20px 0 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #ffd866, var(--gold) 50%, var(--gold-2));
  color: #1a1100;
  box-shadow: 0 10px 30px rgba(243, 195, 74, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(243, 195, 74, 0.4); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

.hero-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 8px;
  color: var(--muted);
}
.hero-bullets strong { color: var(--gold); font-weight: 700; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.hero-image {
  max-width: 460px;
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 30px 60px rgba(243, 195, 74, 0.18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-card {
  position: absolute;
  background: rgba(13, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.card-label {
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-odds { top: 8%; left: -4%; min-width: 170px; }
.card-odds .odds-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.card-odds .odds-row:last-child { border-bottom: 0; }
.card-odds b { color: var(--gold); font-family: "Inter", sans-serif; }

.card-profit { bottom: 6%; right: -4%; }
.card-profit .profit {
  color: var(--green);
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
}
.card-profit .profit span { font-size: 0.9rem; margin-left: 4px; }

/* ===== Stats ===== */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.stat-num {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
}
.stat-num small { font-size: 0.6em; margin-left: 6px; color: var(--muted); }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 60px; }
.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.3;
}
.section-head p { color: var(--muted); margin: 0; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 195, 74, 0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gold-soft);
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
  border: 1px solid rgba(243, 195, 74, 0.25);
}
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Performance */
.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.performance-text h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  margin: 14px 0 20px;
  line-height: 1.3;
}
.performance-text p { color: var(--muted); }
.performance-text strong { color: var(--text); font-weight: 700; }
.performance-text .gold { color: var(--gold); }

.check-list {
  list-style: none; padding: 0; margin: 22px 0 32px;
  display: grid; gap: 10px;
  color: var(--muted);
}

.performance-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 0 auto;
}

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Requirements */
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.req-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.req-card.highlight {
  background: linear-gradient(135deg, rgba(243, 195, 74, 0.18), rgba(243, 195, 74, 0.04));
  border-color: rgba(243, 195, 74, 0.4);
}
.req-icon { font-size: 2.4rem; margin-bottom: 10px; }
.req-card h3 { margin: 6px 0 8px; }
.req-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.req-card.highlight strong { color: var(--gold); font-size: 1.05em; }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}
.faq[open] { border-color: rgba(243, 195, 74, 0.35); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  color: var(--gold);
  font-weight: 900;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin: 14px 0 0; color: var(--muted); }

/* ===== Track Record ===== */
.record-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 60px;
}

.record-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.record-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(243, 195, 74, 0.10), transparent 70%);
  pointer-events: none;
}

.record-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.record-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(243, 195, 74, 0.3);
}
.record-tag.tag-place {
  background: rgba(64, 156, 255, 0.12);
  color: #6fb6ff;
  border-color: rgba(64, 156, 255, 0.3);
}
.record-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1;
}
.record-period {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: "Inter", sans-serif;
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.kpi-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.kpi-num {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.kpi-num small { font-size: 0.55em; margin-left: 4px; color: var(--muted); font-weight: 700; }
.kpi-num.plus { color: var(--green); }

.kpi-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin: 0;
  font-size: 0.92rem;
}
.kpi-detail > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding: 6px 0;
}
.kpi-detail dt {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.kpi-detail dd {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

/* Yearly block */
.yearly-block {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.yearly-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.yearly-summary-item { text-align: center; }
.yearly-num {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 6px;
  line-height: 1.1;
}
.yearly-num small { font-size: 0.55em; margin-left: 4px; color: var(--muted); font-weight: 700; }
.yearly-num.plus { color: var(--green); }
.yearly-num.gold { color: var(--gold); }

.yearly-title {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.yearly-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  height: 220px;
  padding: 16px 0 8px;
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--line);
}
.yearly-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  position: relative;
}
.yearly-bar .bar-fill {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.8s cubic-bezier(.2,.8,.2,1);
}
.yearly-bar .bar-fill::after {
  content: attr(data-value);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.yearly-bar .bar-label {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}
.yearly-bar.partial .bar-fill {
  background: linear-gradient(180deg, rgba(243, 195, 74, 0.5) 0%, rgba(212, 160, 23, 0.4) 100%);
  border: 1px dashed rgba(243, 195, 74, 0.6);
  border-bottom: none;
}

.yearly-table-wrap {
  overflow-x: auto;
}
.yearly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}
.yearly-table th, .yearly-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.yearly-table th:first-child, .yearly-table td:first-child { text-align: left; }
.yearly-table th:nth-child(2), .yearly-table td:nth-child(2) { text-align: center; }
.yearly-table thead th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.yearly-table tfoot th {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: none;
  border-top: 2px solid var(--line);
}
.yearly-table .plus { color: var(--green); font-weight: 700; }
.yearly-table .gold { color: var(--gold); font-weight: 700; }
.yearly-table tbody tr:hover { background: rgba(243, 195, 74, 0.04); }
.yearly-table small { color: var(--muted); font-size: 0.7em; margin-left: 2px; }

.badge-mini {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-mini.in {
  background: rgba(64, 156, 255, 0.12);
  color: #6fb6ff;
  border: 1px solid rgba(64, 156, 255, 0.25);
}
.badge-mini.out {
  background: rgba(243, 195, 74, 0.12);
  color: var(--gold);
  border: 1px solid rgba(243, 195, 74, 0.3);
}
.badge-mini.hit {
  background: rgba(43, 212, 122, 0.14);
  color: var(--green);
  border: 1px solid rgba(43, 212, 122, 0.35);
}
.badge-mini.miss {
  background: rgba(255, 95, 109, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 95, 109, 0.3);
}
.badge-mini.pending {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Live record table tweaks */
.live-table .race-name {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95em;
}
.live-table tbody tr td:nth-child(3) small {
  color: var(--muted);
  font-size: 0.78em;
  margin-left: 0;
}
.live-table tbody td:nth-child(3) {
  text-align: left;
  white-space: normal;
  min-width: 220px;
}
.live-table tfoot th {
  text-align: right;
}
.live-table tfoot th:first-child,
.live-table tfoot th:nth-child(2),
.live-table tfoot th:nth-child(3) {
  text-align: left;
}
.live-table tfoot th:last-child {
  text-align: left;
}

.record-note {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}
.record-note strong.gold { color: var(--gold); }

@media (max-width: 960px) {
  .record-grid { grid-template-columns: 1fr; }
  .yearly-summary { grid-template-columns: repeat(2, 1fr); }
  .yearly-bars { height: 160px; }
  .yearly-bar .bar-fill::after { font-size: 0.62rem; top: -18px; }
  .yearly-block { padding: 24px 18px; }
}
@media (max-width: 600px) {
  .kpi-detail { grid-template-columns: 1fr; }
}

/* CTA */
.cta {
  text-align: center;
  padding: 110px 0;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(243, 195, 74, 0.15), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin: 18px 0 14px;
  font-weight: 900;
  line-height: 1.3;
}
.cta-inner > p { color: var(--muted); margin-bottom: 36px; }
.cta-note { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* Footer */
.footer {
  background: #05070b;
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 30px;
  justify-content: space-between; align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand .brand-name { color: var(--text); font-weight: 900; font-size: 1.05rem; }
.footer-brand small { color: var(--muted); font-size: 0.78rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--gold); }
.disclaimer p { margin: 0 0 10px; font-size: 0.78rem; line-height: 1.7; }
.disclaimer small { font-size: 0.78rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; }
  .hero-image { max-width: 360px; }
  .card-odds { left: 2%; }
  .card-profit { right: 2%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .steps, .req-grid { grid-template-columns: 1fr 1fr; }
  .performance-grid { grid-template-columns: 1fr; gap: 40px; }
  .performance-visual { order: -1; }

  .section { padding: 80px 0; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 9, 15, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 20px 6%;
    gap: 18px;
  }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .features-grid, .steps, .req-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .floating-card { display: none; }
  .hero-cta .btn { flex: 1; }
}
