/* ============================================
   ONEBYPHANTOM — BLACK & WHITE THEME
   ============================================ */

:root {
  /* Dark palette */
  --d-bg:        #050505;
  --d-bg-card:   #111111;
  --d-border:    #242424;
  --d-text:      #f0f0f0;
  --d-text-dim:  #777777;
  --d-accent:    #ffffff;
  --d-accent-dim:#444444;

  /* Light palette */
  --l-bg:        #ffffff;
  --l-bg-off:    #f5f5f5;
  --l-border:    #e2e2e2;
  --l-text:      #0a0a0a;
  --l-text-dim:  #666666;
  --l-accent:    #0a0a0a;
  --l-accent-dim:#bbbbbb;

  /* Shared */
  --error:     #d64545;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Space Grotesk', system-ui, sans-serif;
  --nav-h:     72px;
  --max-w:     1200px;
  --gutter:    clamp(24px, 5vw, 80px);
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-hard: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ============================================
   RESET
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--l-bg);
  color: var(--l-text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

ul  { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: var(--sans); }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

/* ============================================
   LOADER
   ============================================ */

.loader {
  position: fixed;
  inset: 0;
  background: var(--d-bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: loaderIn 0.8s var(--ease) both;
}

@keyframes loaderIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loader-ghost {
  width: 52px;
  height: auto;
  animation: loaderFloat 2.5s ease-in-out infinite;
}

@keyframes loaderFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.loader-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--d-text);
  text-transform: uppercase;
}

.loader-line {
  width: 160px;
  height: 1px;
  background: var(--d-border);
  overflow: hidden;
}

.loader-line span {
  display: block;
  height: 100%;
  background: var(--d-text);
  animation: loaderProgress 2s var(--ease) forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes loaderProgress {
  to { transform: scaleX(1); }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--l-bg); }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 2px; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   CANVAS (dark, only visible through dark sections)
   ============================================ */

#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s, color 0.5s;
}

/* At top — dark hero, so white text */
.nav-logo        { color: var(--d-text); }
.nav-links a     { color: var(--d-text-dim); }
.nav-cta         { color: var(--d-text) !important; border-color: var(--d-accent-dim); }
.nav-toggle span { background: var(--d-text); }

/* After scroll — white nav, black text */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--l-border);
}

.nav.scrolled .nav-logo        { color: var(--l-text); }
.nav.scrolled .nav-logo-img    { filter: brightness(0); }
.nav.scrolled .nav-links a     { color: var(--l-text-dim); }
.nav.scrolled .nav-links a:hover { color: var(--l-text); }
.nav.scrolled .nav-cta         { color: var(--l-text) !important; border-color: var(--l-accent-dim); }
.nav.scrolled .nav-cta:hover   { background: var(--l-text); color: var(--l-bg) !important; border-color: var(--l-text); }
.nav.scrolled .nav-toggle span { background: var(--l-text); }

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border: none;
  outline: none;
  transition: opacity 0.3s;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  border: none;
  filter: brightness(0) invert(1);
  transition: filter 0.4s;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid;
  padding: 9px 22px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s !important;
}

.nav-cta:hover {
  background: var(--d-text) !important;
  color: var(--d-bg) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  transition: transform 0.35s var(--ease-hard), opacity 0.25s, background 0.3s;
}

.nav-toggle.active span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--l-bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-hard);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--l-text);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--l-text-dim); }

/* ============================================
   HERO  — DARK
   ============================================ */

.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--d-bg);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 0 var(--gutter);
  animation: heroIn 1.3s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-pre {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--d-text-dim);
  font-weight: 400;
}

.hero-brand {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 10vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--d-text);
}

.hero-divider {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-divider span {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--d-text-dim), transparent);
  animation: lineIn 1.8s 0.4s var(--ease) both;
  transform-origin: center;
}

@keyframes lineIn {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--d-text-dim);
  letter-spacing: 0.04em;
}

.hero-cta {
  margin-top: 12px;
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--d-bg);
  background: var(--d-text);
  padding: 16px 44px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}

.hero-cta:hover {
  background: #cccccc;
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--d-text-dim);
  opacity: 0.5;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--d-text-dim), transparent);
  animation: scrollPulse 2.2s infinite var(--ease);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ============================================
   PHILOSOPHY — LIGHT
   ============================================ */

.philosophy {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--l-bg);
  border-top: 1px solid var(--l-border);
  border-bottom: 1px solid var(--l-border);
}

.philosophy .section-label { color: var(--l-text-dim); }
.philosophy .section-title { color: var(--l-text); }
.philosophy .section-title em { color: var(--l-text); font-style: italic; }

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--l-border);
  border: 1px solid var(--l-border);
}

.philosophy-block {
  background: var(--l-bg);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.philosophy-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--l-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.philosophy-block:hover               { background: var(--l-bg-off); }
.philosophy-block:hover::before       { transform: scaleX(1); }

.phi-number {
  display: block;
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--l-accent-dim);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.philosophy-block h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--l-text);
  margin-bottom: 14px;
}

.philosophy-block p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--l-text-dim);
}

/* ============================================
   CREATE BY OWN — LIGHT (off-white)
   ============================================ */

.create-by-own {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--l-bg-off);
}

.create-by-own .section-label { color: var(--l-text-dim); }
.create-by-own .section-title { color: var(--l-text); }

.cbo-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--l-text);
  margin-top: 8px;
  margin-bottom: clamp(56px, 8vw, 100px);
}

.cbo-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cbo-step {
  flex: 1;
  text-align: center;
  padding: clamp(24px, 3.5vw, 48px);
  max-width: 320px;
}

.step-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--l-accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
  transition: border-color 0.35s, background 0.35s;
}

.cbo-step:hover .step-icon {
  border-color: var(--l-text);
  background: rgba(0, 0, 0, 0.04);
}

.step-number {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--l-text);
}

.cbo-step h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--l-text);
  margin-bottom: 14px;
}

.cbo-step p {
  font-size: 0.875rem;
  color: var(--l-text-dim);
  line-height: 1.85;
}

.cbo-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--l-accent-dim), transparent);
  margin-top: 36px;
  flex-shrink: 0;
}

/* ============================================
   DROP — DARK
   ============================================ */

.drop {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--d-bg);
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
}

.drop .section-label { color: var(--d-text-dim); }
.drop .section-title { color: var(--d-text); }

.drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

.drop-image-wrap { position: relative; }

.drop-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--d-bg-card);
  border: 1px solid var(--d-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.drop-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.placeholder-logo {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--d-accent-dim);
  letter-spacing: 0.1em;
}

.placeholder-label {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--d-text-dim);
  opacity: 0.5;
}

.drop-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--d-text);
  color: var(--d-bg);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}

.drop-edition {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--d-text-dim);
  margin-bottom: 12px;
}

.drop-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--d-text);
  line-height: 1.08;
  margin-bottom: 24px;
}

.drop-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--d-text-dim);
  margin-bottom: 32px;
}

.drop-meta {
  border-top: 1px solid var(--d-border);
  margin-bottom: 40px;
}

.drop-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--d-border);
  font-size: 0.78rem;
}

.drop-meta li span   { color: var(--d-text-dim); }
.drop-meta li strong { color: var(--d-text); font-weight: 400; }

.drop-cta {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--d-text);
  border: 1px solid var(--d-accent-dim);
  padding: 16px 44px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.drop-cta:hover {
  background: var(--d-text);
  color: var(--d-bg);
  border-color: var(--d-text);
}

/* CTAs linking to the product pages */
.drop-page-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.drop-explore-btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--d-bg);
  background: var(--d-text);
  padding: 14px 36px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}

.drop-explore-btn:hover {
  background: #cccccc;
  transform: translateY(-2px);
}

.drop-all-link {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--d-text-dim);
  transition: color 0.3s;
}

.drop-all-link:hover { color: var(--d-text); }

/* ============================================
   HOW IT WORKS — LIGHT
   ============================================ */

.how-it-works {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--l-bg);
}

.how-it-works .section-label { color: var(--l-text-dim); }
.how-it-works .section-title { color: var(--l-text); }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--l-border);
  border: 1px solid var(--l-border);
}

.rule {
  background: var(--l-bg);
  padding: clamp(28px, 3.5vw, 48px);
  transition: background 0.35s;
}

.rule:hover { background: var(--l-bg-off); }

.rule-n {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--l-accent-dim);
  margin-bottom: 16px;
}

.rule p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--l-text-dim);
}

.rule p strong { color: var(--l-text); font-weight: 400; }

/* ============================================
   ABOUT / THE PHANTOM — DARK
   ============================================ */

.about {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--d-bg);
  border-top: 1px solid var(--d-border);
  border-bottom: 1px solid var(--d-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.about-text .section-label { color: var(--d-text-dim); }

.about-heading {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--d-text);
  margin-bottom: 36px;
}

.about-body {
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--d-text-dim);
  margin-bottom: 20px;
  max-width: 480px;
}

.about-quote {
  margin-top: 40px;
  padding-left: 24px;
  border-left: 1px solid var(--d-border);
}

.about-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-style: italic;
  font-weight: 300;
  color: var(--d-text);
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-quote cite {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--d-text-dim);
  font-style: normal;
}

.about-visual { position: relative; }

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--d-bg-card);
  border: 1px solid var(--d-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.about-ghost-svg {
  width: 90px;
  height: auto;
  opacity: 0.6;
  animation: aboutFloat 4s ease-in-out infinite;
}

@keyframes aboutFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.about-img-label {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--d-text-dim);
}

/* ============================================
   COMMUNITY — LIGHT
   ============================================ */

.community {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--l-bg-off);
  border-top: 1px solid var(--l-border);
  border-bottom: 1px solid var(--l-border);
}

.community .section-label { color: var(--l-text-dim); }
.community .section-title { color: var(--l-text); }

.community-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--l-text-dim);
  max-width: 600px;
  margin-top: 0;
  margin-bottom: clamp(48px, 7vw, 80px);
  line-height: 1.7;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--l-border);
  border: 1px solid var(--l-border);
  margin-bottom: 56px;
}

.community-card {
  background: var(--l-bg-off);
  padding: clamp(32px, 4vw, 52px);
  transition: background 0.35s;
}

.community-card:hover { background: var(--l-bg); }

.community-icon {
  display: block;
  font-size: 1rem;
  color: var(--l-accent-dim);
  margin-bottom: 20px;
}

.community-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--l-text);
  margin-bottom: 12px;
}

.community-card p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--l-text-dim);
}

.community-cta {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--l-bg);
  background: var(--l-text);
  padding: 16px 44px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}

.community-cta:hover {
  background: #333;
  transform: translateY(-2px);
}

/* ============================================
   COLLABORATE
   ============================================ */

.collaborate {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--d-bg);
  border-top: 1px solid var(--d-border);
  text-align: center;
}

.collaborate .section-label { color: var(--d-text-dim); }

.collab-title {
  color: var(--d-text);
}

.collab-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--d-text-dim);
  max-width: 560px;
  margin: 0 auto clamp(48px, 7vw, 72px);
  line-height: 1.75;
}

.collab-cta {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--d-bg);
  background: var(--d-text);
  padding: 16px 44px;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}

.collab-cta:hover {
  background: #cccccc;
  transform: translateY(-2px);
}

/* ============================================
   NOTIFY — DARK
   ============================================ */

.notify {
  padding: clamp(88px, 13vw, 168px) 0;
  background: var(--d-bg);
  border-top: 1px solid var(--d-border);
}

.notify .section-label { color: var(--d-text-dim); }
.notify .section-title { color: var(--d-text); }

.notify-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--d-text-dim);
  margin-top: 0;
  margin-bottom: clamp(48px, 7vw, 72px);
}

.notify-form { max-width: 680px; }

.notify-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.nf-group { display: flex; flex-direction: column; }

.nf-group input {
  width: 100%;
  background: var(--d-bg-card);
  border: 1px solid var(--d-border);
  border-radius: 2px;
  padding: 14px 18px;
  color: var(--d-text);
  font-size: 0.875rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}

.nf-group input::placeholder { color: var(--d-accent-dim); }
.nf-group input:focus         { border-color: var(--d-text-dim); }
.nf-group input.error         { border-color: var(--error); }

.nf-error {
  font-size: 0.65rem;
  color: var(--error);
  margin-top: 5px;
  min-height: 16px;
  letter-spacing: 0.04em;
}

.notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d-text);
  color: var(--d-bg);
  border: none;
  padding: 16px 48px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--sans);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.3s, transform 0.3s;
}

.notify-btn:hover    { background: #cccccc; }
.notify-btn:active   { transform: scale(0.99); }
.notify-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-loading { display: none; }
.notify-btn.loading .btn-text    { display: none; }
.notify-btn.loading .btn-loading { display: inline; }

.notify-note {
  font-size: 0.67rem;
  color: var(--d-text-dim);
  opacity: 0.5;
  line-height: 1.7;
}

.notify-verify {
  padding: 32px 0;
}

.verify-msg {
  font-size: 0.88rem;
  color: var(--d-text-dim);
  margin-bottom: 28px;
  line-height: 1.7;
}

.verify-msg strong {
  color: var(--d-text);
  font-weight: 400;
}

.resend-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--d-text);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.resend-btn:hover:not(:disabled) { opacity: 1; }
.resend-btn:disabled { cursor: not-allowed; opacity: 0.3; }

.notify-success {
  text-align: left;
  padding: 40px 0;
}

.notify-success .success-icon {
  display: block;
  font-size: 1.8rem;
  color: var(--d-text);
  margin-bottom: 20px;
  animation: spinIn 0.6s var(--ease) both;
}

@keyframes spinIn {
  from { transform: rotate(-180deg) scale(0); opacity: 0; }
  to   { transform: rotate(0) scale(1); opacity: 1; }
}

.notify-success h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--d-text);
  margin-bottom: 10px;
}

.notify-success p {
  font-size: 0.9rem;
  color: var(--d-text-dim);
  line-height: 1.8;
}

/* ============================================
   FOOTER — DARK
   ============================================ */

.footer {
  background: var(--d-bg);
  border-top: 1px solid var(--d-border);
  padding: clamp(56px, 9vw, 100px) 0 44px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--d-text-dim);
}

.footer-links { display: flex; gap: 64px; }

.footer-col-title {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--d-text-dim);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--d-text-dim);
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--d-text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--d-border);
  padding-top: 24px;
  font-size: 0.72rem;
  color: var(--d-text-dim);
  opacity: 0.4;
}

.footer-ghost {
  font-family: var(--serif);
  font-style: italic;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.visible      { opacity: 1; transform: translateY(0); }
.reveal-delay-1      { transition-delay: 0.12s; }
.reveal-delay-2      { transition-delay: 0.22s; }
.reveal-delay-3      { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .philosophy-grid  { grid-template-columns: 1fr; }
  .rules-grid       { grid-template-columns: repeat(2, 1fr); }
  .cbo-steps        { flex-direction: column; align-items: center; }
  .cbo-connector    { width: 1px; height: 40px; }
  .about-grid       { grid-template-columns: 1fr; }
  .about-visual     { display: none; }
  .community-grid   { grid-template-columns: 1fr; }
  .notify-fields    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-toggle   { display: flex; }
  .drop-grid    { grid-template-columns: 1fr; }
  .footer-top   { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .rules-grid   { grid-template-columns: 1fr; }
  .notify-fields { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-brand    { letter-spacing: 0.02em; }
  .mobile-menu a { font-size: 2rem; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible { outline: 1px solid var(--l-text); outline-offset: 3px; }

/* === Phone input group (country code + number) === */
.phone-input-group {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.phone-input-group input {
  flex: 1;
  width: auto !important;
  min-width: 0;
  border-left: none !important;
  border-radius: 0 2px 2px 0 !important;
}
.phone-input-group select {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 88px;
  cursor: pointer;
  border-radius: 2px 0 0 2px;
}

/* Notify form — select matches input style */
.nf-group select {
  background: var(--d-bg-card);
  border: 1px solid var(--d-border);
  border-radius: 2px 0 0 2px;
  padding: 14px 8px;
  color: var(--d-text);
  font-size: 0.875rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
  max-width: 88px;
}
.nf-group select:focus { border-color: var(--d-text-dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
