/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --charcoal: #111315;
  --near-black: #0b0c0e;
  --slate: #2a2e33;
  --light-gray: #b9bcc0;
  --white: #f5f6f7;

  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 1000px;
}

body {
  font-family: var(--font-body);
  background: var(--near-black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Navigation */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.2s ease;
  background: transparent;
}

#main-nav.scrolled {
  background: rgba(11, 12, 14, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo-icon {
  width: auto;
  padding-top: 1rem;
  height: 100%;
  filter: brightness(0) invert(1);
  display: block;
}

.nav-brand {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.prism-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.01;
}

/* Brand watermark in hero */
.prism-watermark-logo {
  animation: prism-rotate 90s linear infinite;
  margin-top: 75vh;
  margin-left: -25%;
  width: 500%;
  height: 500%;
  filter: brightness(0) invert(1);
}

@keyframes prism-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8rem 2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin-bottom: 2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 48px;
  height: 48px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--light-gray);
  line-height: 1.6;
  max-width: 64rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-trust-line {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--light-gray);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 3rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--near-black);
}

.btn-primary:hover {
  background: var(--light-gray);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--slate);
}

.btn-outline:hover {
  background: var(--charcoal);
}

/* Separator */
.separator {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 1px;
  background: var(--slate);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: rgba(42, 46, 51, 0.3);
}

.section-cta {
  text-align: center;
}

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

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-cta {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4rem;
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

/* Cards */
.card-bordered {
  border: 1px solid var(--slate);
  padding: 2.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--light-gray);
  line-height: 1.6;
}

/* Services */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-description {
  font-size: 1.125rem;
  color: var(--light-gray);
  line-height: 1.6;
}

.deliverables {
  border-left: 2px solid var(--slate);
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.deliverables-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 0.75rem;
}

.deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--light-gray);
}

/* Roles */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.role-card {
  border: 1px solid var(--slate);
  padding: 1.5rem;
  background: var(--near-black);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Process */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content {
  flex: 1;
  padding-top: 0.25rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 1.125rem;
  color: var(--light-gray);
  line-height: 1.6;
}

/* About */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  color: var(--light-gray);
  line-height: 1.6;
  max-width: 48rem;
}

.about-signature {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  padding-top: 1rem;
}

/* CTA Band */
.cta-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--light-gray);
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-column {
  display: flex;
  flex-direction: column;
}

.contact-column-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--white);
}

.calendly-container {
  flex: 1;
}

/* Contact Form */
.contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.875rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--near-black);
  border: 1px solid var(--slate);
  color: var(--white);
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--light-gray);
}

.form-textarea {
  resize: none;
}

.form-submit {
  padding-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--light-gray);
  line-height: 1.5;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: var(--white);
  color: var(--near-black);
  padding: 1rem 1.5rem;
  border: 1px solid var(--slate);
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  opacity: 0.8;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-location {
  font-size: 0.875rem;
  color: var(--light-gray);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding: 6rem 1.5rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .container,
  .container-narrow,
  .container-cta {
    padding: 0 1.5rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .grid-3 {
    gap: 2rem;
  }

  .process-step {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .calendly-inline-widget {
    height: 600px !important;
  }

  .footer-content {
    flex-direction: column;
  }

  #toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* Legal Pages */
.legal-page {
  padding: 8rem 0 4rem;
  min-height: 100vh;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate);
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.legal-section p {
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-section a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}

.legal-section a:hover {
  opacity: 0.8;
}

.legal-block {
  margin-bottom: 2rem;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--light-gray);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--slate);
}

.legal-back {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate);
}

.legal-back .btn {
  text-decoration: none;
}
