/* ======================================================
   BECC-Tokyo — Unified Stylesheet (Dark / Glass)
   ====================================================== */

/* ---------- Design Tokens ---------- */
:root{
  /* BECC-Tokyo Brand */
  --bg: #0A1E3F;          /* deep navy */
  --bg2: #07162F;         /* darker navy */

  --text: #F2F4F7;        /* off-white */
  --muted: rgba(242,244,247,.75);
  --faint: rgba(242,244,247,.55);

  --panel: rgba(255,255,255,.06);
  --panel-strong: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.14);

  /* Red energy lines */
  --accent: 200 32 47;    /* crimson red */
  --accent2: 255 92 92;   /* brighter red highlight */
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

body{
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(var(--accent), .28), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(var(--accent2), .18), transparent 55%),
    radial-gradient(1200px 700px at 60% 120%, rgba(47,78,122,.25), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
}

h2 {
  font-size: clamp(22px, 2.5vw, 30px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.lead {
  margin-bottom: 22px;
  max-width: 75ch;
  color: var(--muted);
}

a {
  color: rgba(var(--accent), 1);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(48px, 7vw, 88px) 0;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

@media (max-width: 900px){
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

/* ---------- Glass Panels & Cards ---------- */
.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.panel.pad { padding: 18px; }
.panel.pad-lg { padding: 24px; }

.card {
  padding: 18px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--panel-strong);
  border-color: rgba(255,255,255,.18);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,16,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.nav .row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg,
    rgba(var(--accent),1),
    rgba(var(--accent2),1)
  );
  box-shadow: 0 10px 30px rgba(var(--accent),.35);
}

.links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.links a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

.links a:hover {
  color: rgba(255,255,255,1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg,
    rgba(var(--accent),1),
    rgba(var(--accent2),1)
  );
  border: none;
}

/* ---------- Tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align: left;
  font-size: 14px;
}

.table th {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
}

.table tr:last-child td {
  border-bottom: none;
}

/* ---------- Embedded Iframes ---------- */
iframe.embed {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

/* ---------- Footer ---------- */
footer {
  padding: 32px 0 50px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--faint);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce){
  * {
    transition: none !important;
    animation: none !important;
  }
}
