/* ==========================================================
   NEWTON BAR – Global Stylesheet
   Colors, Layout, Components & Responsive Design
   ========================================================== */


/* ---------------------------
   DESIGN TOKENS / VARIABLES
   --------------------------- */
:root {
  --bg: #0F1115;
  --text: #CBA35B;
  --muted: #9F8C67;
  --card: #141821;
  --line: #1F232B;

  --radius: 12px;
  --max: min(1100px, 92vw);
  --max-wide: min(1600px, 94vw);
}


/* ---------------------------
   RESET & BASE STYLES
   --------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--max);
  margin: auto;
  padding: 0 clamp(16px, 2vw, 28px);
}


/* ---------------------------
   TYPOGRAPHY
   --------------------------- */
h1,
h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: .02em;
  margin: 0 0 0.4em 0;
}

h1 {
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 700;
}

.sub {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}


/* ---------------------------
   HEADER & NAV
   --------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, .6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: .12em;
}


/* ---------------------------
   BUTTONS
   --------------------------- */
.btn {
  display: inline-block;
  padding: clamp(10px, 1.4vw, 14px) clamp(14px, 1.8vw, 20px);
  border-radius: 999px;
  background: var(--text);
  color: #0B0D12;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn.secondary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn.secondary:hover {
  background: rgba(203, 163, 91, .12);
}


/* ---------------------------
   SECTIONS & LAYOUT
   --------------------------- */
section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.two {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.list {
  display: grid;
  gap: 8px;
}


/* ---------------------------
   HERO SECTION
   --------------------------- */
.hero {
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.65));
}

.hero .wrap {
  max-width: var(--max-wide);
}

.hero-media {
  margin-bottom: 22px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}


/* ---------------------------
   EMBED COMPONENTS
   --------------------------- */
.consent {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  min-height: 240px;
  padding: 18px;
  border: 1px dashed #2a3040;
  border-radius: var(--radius);
  background: #0e121a;
}

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #0e121a;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ---------------------------
   STICKY CTA
   --------------------------- */
.sticky {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}

.sticky .btn {
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}


/* ---------------------------
   FOOTER
   --------------------------- */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}


/* ---------------------------
   HIGH-RES DISPLAY OPTIM.
   --------------------------- */
@media (min-width: 1600px) {
  body {
    font-size: clamp(16px, .95vw, 18px);
  }
  h1 {
    font-size: clamp(40px, 3.4vw, 72px);
  }
  .wrap {
    max-width: min(1200px, 84vw);
  }
  .hero .wrap {
    max-width: min(1600px, 88vw);
  }
}

@media (min-width: 1920px) {
  body {
    font-size: clamp(18px, .9vw, 20px);
  }
  h1 {
    font-size: clamp(48px, 3vw, 80px);
  }
}

@media (min-width: 2560px) {
  body {
    font-size: clamp(20px, .8vw, 22px);
  }
  h1 {
    font-size: clamp(56px, 2.6vw, 92px);
  }
}


/* ---------------------------
   REDUCED MOTION SUPPORT
   --------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
