/* ============================================
   VINCRETUS — AI-Native GTM Architecture
   Design: CRED neoPOP-inspired
   Palette: Deep black + warm gold
   Type: DM Serif Display + Inter
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0B0B11;
  --bg-surface: #111118;
  --bg-elevated: #18182A;
  --bg-card: #1A1A2E;
  --border: #252538;
  --border-subtle: #1C1C30;

  --text-primary: #F5F5F0;
  --text-secondary: #8A8A9A;
  --text-muted: #5A5A6E;

  --gold: #C4A265;
  --gold-light: #D4B87A;
  --gold-dim: #A08550;
  --gold-glow: rgba(196, 162, 101, 0.12);
  --gold-glow-strong: rgba(196, 162, 101, 0.25);

  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --nav-height: 72px;
  --max-width: 1120px;
  --section-pad: 120px;
}

@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
    --nav-height: 60px;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: var(--bg-primary); }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 11, 17, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo svg { height: 28px; width: auto; }

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta-link {
  font-size: 13px !important;
  padding: 8px 20px;
  border: 1px solid var(--gold-dim);
  color: var(--gold) !important;
  transition: all 0.25s !important;
}

.nav-cta-link:hover {
  background: var(--gold);
  color: var(--bg-primary) !important;
  border-color: var(--gold);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 11, 17, 0.97);
    backdrop-filter: blur(20px);
    padding: 40px 32px;
    gap: 28px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 16px; }
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-pad) 0;
}

.section-border {
  border-top: 1px solid var(--border);
}


/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Subtle radial gradient in hero */
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 10%;
  right: -10%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  filter: blur(80px);
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% { opacity: 0.4; transform: translate(0, 0) scale(1); }
  100% { opacity: 0.7; transform: translate(-40px, 20px) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-headline .gold { color: var(--gold); }

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-pillars {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-pillar {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-pillar-sep {
  width: 4px;
  height: 4px;
  background: var(--gold-dim);
  border-radius: 0;
}

/* Hero entrance animations */
.hero.animated .hero-eyebrow { animation: fadeUp 0.7s 0.2s forwards; }
.hero.animated .hero-headline { animation: fadeUp 0.8s 0.4s forwards; }
.hero.animated .hero-sub { animation: fadeUp 0.8s 0.6s forwards; }
.hero.animated .hero-cta-row { animation: fadeUp 0.7s 0.85s forwards; }
.hero.animated .hero-pillars { animation: fadeUp 0.7s 1.1s forwards; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Gold line draw */
.hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  z-index: 2;
}

.hero.animated .hero-line {
  animation: lineGrow 1.5s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineGrow {
  to { width: 100%; }
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--gold-glow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 13px 31px;
}

.btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s;
}

.btn-arrow:hover::after { transform: translateX(4px); }


/* --- Section Headers --- */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
}


/* --- Gap Section (Homepage) --- */
.gap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 56px;
}

@media (max-width: 768px) {
  .gap-grid { grid-template-columns: 1fr; }
}

.gap-card {
  background: var(--bg-surface);
  padding: 40px 36px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s;
}

.gap-card:hover { border-color: var(--gold-dim); }

.gap-card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.gap-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 12px;
}

.gap-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --- What Gets Built (3 systems) --- */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}

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

.system-card {
  background: var(--bg-surface);
  padding: 48px 36px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.system-card:hover { border-color: var(--gold-dim); }

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover::before { transform: scaleX(1); }

.system-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 18px;
}

.system-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 16px;
}

.system-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* --- Proof / Stats --- */
.proof-block {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .proof-block { flex-direction: column; gap: 40px; }
}

.proof-stat {
  flex-shrink: 0;
}

.proof-stat-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.proof-context {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 12px;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}


/* --- Method teaser --- */
.method-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .method-content { grid-template-columns: 1fr; gap: 40px; }
}

.method-principle {
  margin-bottom: 36px;
}

.method-principle:last-child { margin-bottom: 0; }

.method-principle-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
}

.method-principle-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* --- Operating Model --- */
.model-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .model-block { grid-template-columns: 1fr; }
}

.model-card {
  background: var(--bg-surface);
  padding: 44px 36px;
  border: 1px solid var(--border-subtle);
}

.model-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--gold);
}

.model-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--section-pad) 0;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}


/* --- About Page --- */
.about-hero {
  padding: calc(var(--nav-height) + 80px) 0 var(--section-pad);
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .about-hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  filter: grayscale(30%);
  transition: filter 0.4s;
}

.about-photo-wrap:hover .about-photo { filter: grayscale(0%); }

.about-photo-accent {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold-dim);
  z-index: -1;
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}

.about-title-role {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.about-narrative {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.about-narrative p { margin-bottom: 20px; }
.about-narrative p:last-child { margin-bottom: 0; }

/* Philosophy cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
}

@media (max-width: 768px) {
  .philosophy-grid { grid-template-columns: 1fr; }
}

.philosophy-card {
  background: var(--bg-surface);
  padding: 44px 32px;
  border: 1px solid var(--border-subtle);
}

.philosophy-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--gold);
}

.philosophy-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Track record */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .track-grid { grid-template-columns: 1fr; }
}

.track-card {
  background: var(--bg-surface);
  padding: 36px 32px;
  border: 1px solid var(--border-subtle);
}

.track-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.track-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --- Diagnostic Page --- */
.diag-hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
}

.diag-axes {
  margin-top: 48px;
}

.axes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .axes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .axes-grid { grid-template-columns: 1fr; }
}

.axis-card {
  background: var(--bg-surface);
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
}

.axis-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-dim);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.axis-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 8px;
}

.axis-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* --- Form --- */
.form-section {
  padding: 60px 0 var(--section-pad);
}

.form-wrap {
  max-width: 640px;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238A8A9A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-submit-row {
  margin-top: 44px;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 80px 0;
}

.form-success.visible { display: block; }

.form-success-icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 24px;
  color: var(--gold);
}

.form-success-title {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 16px;
}

.form-success-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.form-success-desc a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-contact a {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-contact a:hover { color: var(--gold); }


/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.48s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }


/* --- Utility --- */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

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