/* ═══════════════════════════════════════════════════════════
   AP Digital – main.css
   Base styles, CSS Custom Properties, Reset, Typography
   ═══════════════════════════════════════════════════════════ */

:root {
  --color-bg:          #000000;
  --color-bg-card:     #0D0D0D;
  --color-bg-nav:      rgba(0, 0, 0, 0.85);
  --color-text:        #FFFFFF;
  --color-text-muted:  #A0A0A0;
  --color-accent-gold: #F5C518;
  --color-accent-blue: #37627C;
  --color-border:      rgba(255, 255, 255, 0.08);

  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   32px;
  --space-xl:   64px;
  --space-2xl:  128px;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --section-pad-v: 120px;
  --section-pad-v-mobile: 60px;

  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: 'Inter', system-ui, sans-serif; cursor: pointer; }
ul, ol { list-style: none; }

/* ─── Typography ─── */
h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ─── Hero Title ─── */
.hero__title-wrapper {
  position: relative;
  display: inline-block;
  text-align: center;
  margin-bottom: 52px;
  overflow: visible;
  padding-right: 40px; /* prevent trailing glyph/filter clipping */
  z-index: 10;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  overflow: visible;
  position: relative;
  z-index: 2; /* above SVG lines */
  background: linear-gradient(to bottom, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.15));
}


/* ─── Utilities ─── */
.highlight        { color: var(--color-accent-gold); }
.highlight--italic { color: var(--color-accent-gold); font-style: italic; }
.accent           { color: var(--color-accent-gold); font-style: normal; }

.section-label {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  background: var(--color-text);
  color: #000000;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-gold);
  transform: scale(1.02);
  box-shadow: 0 0 28px rgba(245, 197, 24, 0.3);
  outline: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 28px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.btn-ghost svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ─── Interactive Hover Button ─── */
.btn-interactive {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px 48px;
  min-width: 220px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-interactive--sm {
  padding: 9px 22px;
  min-width: 0;
  font-size: 0.85rem;
}

.btn-interactive__text {
  position: relative;
  display: inline-block;
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 2;
}

.btn-interactive:hover .btn-interactive__text,
.btn-interactive:focus-visible .btn-interactive__text {
  transform: translateX(50px);
  opacity: 0;
}

.btn-interactive__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(50px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 3;
  color: #000;
  font-weight: 600;
  font-size: inherit;
}

.btn-interactive:hover .btn-interactive__overlay,
.btn-interactive:focus-visible .btn-interactive__overlay {
  transform: translateX(0);
  opacity: 1;
}

.btn-interactive__blob {
  position: absolute;
  left: 20%;
  top: 40%;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-accent-gold);
  opacity: 0;
  transform: scale(1);
  transition: left 0.5s ease, top 0.5s ease, width 0.5s ease,
              height 0.5s ease, transform 0.5s ease, opacity 0.5s ease;
  z-index: 1;
}

.btn-interactive:hover .btn-interactive__blob,
.btn-interactive:focus-visible .btn-interactive__blob {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: scale(1.8);
}

@media (prefers-reduced-motion: reduce) {
  .btn-interactive__text,
  .btn-interactive__overlay,
  .btn-interactive__blob { transition: none; }
}

/* ─── Focus & Selection ─── */
:focus-visible { outline: 2px solid var(--color-accent-gold); outline-offset: 3px; }
::selection { background: rgba(245, 197, 24, 0.25); color: var(--color-text); }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
