/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables */
:root {
  /* Text Sizes */
  --wordmark-font-size: 54px;
  --tagline-font-size: 24px;

  --header-font-size: 26px;
  --body-font-size: 18px;
  --button-font-size: 18px;
  --signature-font-size: 28px;
  --placeholder-font-size: 28px;

  /* Layout Sizes */
  --header-padding-top: 120px;
  --section-padding: 80px;
  --section-padding-mobile: 60px;
  --container-padding: 40px;
  --container-padding-mobile: 20px;

  /* Spacing */
  --spacing-xlarge: 60px;
  --spacing-large: 40px;
  --spacing-medium: 24px;
  --spacing-small: 12px;
  --spacing-xsmall: 8px;

  /* Grid Gap */
  --grid-gap-large: 60px;
  --grid-gap-medium: 30px;
  --grid-gap-small: 16px;

  /* Icon Sizes */
  --logo-icon-size: 64px;
  --logo-icon-size-mobile: 48px;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --wordmark-font-size: 48px;
    --tagline-font-size: 22px;
    --header-font-size: 48px;
    --body-font-size: 24px;
    --button-font-size: 18px;
    --signature-font-size: 24px;
    --placeholder-font-size: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --wordmark-font-size: 42px;
    --tagline-font-size: 18px;
    --header-font-size: 36px;
    --body-font-size: 20px;
    --button-font-size: 20px;
    --signature-font-size: 20px;
    --placeholder-font-size: 16px;
  }
}

body {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: var(--body-font-size);
  font-weight: 300;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* Typography */
h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: var(--header-font-size);
  line-height: 1.3;
  margin-bottom: var(--spacing-large);
  text-transform: uppercase;
  letter-spacing: 1px;
}

strong {
  font-weight: 600;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header Section */
.header {
  background-color: #ffffff;
  text-align: center;
  padding-top: var(--header-padding-top);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-small);
  margin-bottom: var(--spacing-small);
}

.logo-icon {
  width: var(--logo-icon-size);
  height: var(--logo-icon-size);
}

.logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: var(--wordmark-font-size);
  line-height: 1;
  color: #000000;
}

.tagline {
  font-size: var(--tagline-font-size);
  font-weight: 300;
  color: #666;
  margin-bottom: var(--spacing-xlarge);
  line-height: 1.4;
}

.platform-availability {
  font-size: 14px;
  font-weight: 300;
  color: #aaa;
  margin-top: var(--spacing-medium);
  line-height: 1.4;
}

/* CTA Button */
.cta-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: var(--button-font-size);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;

  background: #9246fd;
  background: color(display-p3 0.533 0.29 0.957);
  box-shadow: 0px 4px 16px rgba(146, 70, 253, 0.25);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 24px rgba(146, 70, 253, 0.35);
  background: #a05dfd;
}

.cta-button:active {
  transform: translateY(0px);
  box-shadow: 0px 2px 12px rgba(146, 70, 253, 0.3);
  transition: all 0.1s ease;
}

/* Hero Video Section */
.hero-video {
  background-color: #ffffff;
  padding: var(--spacing-xlarge) var(--container-padding-mobile);
}

.video-wrapper {
  margin: auto;
  max-width: 100%;
  width: fit-content;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Clips the video to the rounded corners */
}

.video-wrapper video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Placeholder Styles */
.video-placeholder,
.illustration-placeholder {
  background-color: #ffffff;
  border: 3px solid #ff0000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.video-placeholder.medium {
  max-width: 100%;
  margin: var(--spacing-large) auto;
}

.video-placeholder.full-bleed {
  max-width: 100%;
  margin: var(--spacing-xlarge) 0 0 0;
  aspect-ratio: 21 / 9;
}

.illustration-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.illustration-column img {
  width: 100%;
  height: auto;
  display: block;
}

.illustration-attribution {
  margin-top: var(--spacing-small);
  font-size: 14px;
  font-style: italic;
  opacity: 0.9;
  text-align: center;
}

.illustration-placeholder.small {
  max-width: 400px;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
}

.placeholder-text {
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  font-size: var(--placeholder-font-size);
  color: #ff0000;
  text-align: center;
  padding: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Unique Features Section */
.unique-features {
  background-color: #ffffff;
  padding: var(--section-padding) var(--container-padding-mobile);
  text-align: left;
}

.unique-features h2 {
  color: #884af4;
}

.unique-features .intro-text {
  margin-bottom: var(--spacing-xlarge);
  font-size: calc(var(--body-font-size) * 1.1);
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Built for Artists Section */
.built-for-artists {
  font-weight: 300;
  font-size: var(--body-font-size);
  background-color: #884af4;
  color: #ffffff;
  padding: var(--section-padding) var(--container-padding-mobile);
  text-align: left;
}

.built-for-artists h2 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.built-for-artists .intro-text,
.built-for-artists .body-text {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.built-for-artists .cta-button {
  background: #ffffff;
  color: #884af4;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
}

.built-for-artists .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.25);
  background: #f8f8ff;
}

.built-for-artists .cta-button:active {
  transform: translateY(0px);
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-large);
  align-items: start;
  margin-bottom: var(--spacing-xlarge);
  text-align: left;
}

.text-column p {
  margin-bottom: var(--spacing-medium);
  line-height: 1.7;
}

/* Flatbrush Today Section */
.flatbrush-today {
  background-color: #ffffff;
  padding: var(--section-padding) var(--container-padding-mobile);
  text-align: center;
}

.pricing-note {
  font-weight: 600;
  color: #884af4;
  font-size: calc(var(--body-font-size) * 1.1);
}

.intro-text {
  margin-bottom: var(--spacing-large);
  line-height: 1.7;
}

.feature-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-medium);
  margin-bottom: var(--spacing-large);
}

.feature-tile {
  padding: var(--spacing-medium);
  transition: all 0.2s ease;
}

.feature-tile h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.feature-tile p {
  line-height: 1.7;
  margin: 0;
}

/* Standard Features - Elegant Purple Harmony */
.feature-tile.standard {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 245, 255, 0.95) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-tile.standard:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.feature-tile.standard h3 {
  color: #6d3bbd;
  background: linear-gradient(135deg, #6d3bbd 0%, #884af4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-tile.standard p {
  color: #3a3a3a;
  font-weight: 400;
}

/* Special Features - Purple */
.feature-tile.special {
  background-color: #f8f8ff;
  border-color: #884af4;
}

.feature-tile.special h3 {
  color: #884af4;
}

.feature-tile.special p {
  color: #1a1a1a;
}

.body-text {
  margin: var(--spacing-large) 0;
  line-height: 1.7;
}

/* About Us Section */
.about-us {
  background-color: #884af4;
  color: #ffffff;
  padding: var(--section-padding) var(--container-padding-mobile);
}

.about-us h2 {
  color: #ffffff;
  text-align: left;
}

.about-us p {
  margin-bottom: var(--spacing-medium);
  line-height: 1.7;
}

.about-us a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.about-us a:hover {
  text-decoration-thickness: 2px;
  opacity: 0.9;
}

.about-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-large);
  align-items: start;
}

.about-text-column p {
  margin-bottom: var(--spacing-medium);
  line-height: 1.7;
}

.about-image-column {
  text-align: center;
}

.about-image-column img {
  width: 100%;
  max-width: 360px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.closing-text {
  max-width: 800px;
  line-height: 1.7;
}

.signature {
  text-align: left;
  font-style: italic;
  font-weight: 300;
  margin-top: var(--spacing-medium);
  font-size: var(--body-font-size);
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cta-button {
    padding: 12px 32px;
  }

  .container {
    padding: 0 var(--container-padding-mobile);
  }

  .header,
  .hero-video,
  .built-for-artists,
  .flatbrush-today,
  .about-us {
    padding: var(--section-padding-mobile) var(--container-padding-mobile);
  }

  .feature-tiles {
    grid-template-columns: 1fr;
    gap: var(--spacing-small);
  }

  .feature-tile h3 {
    font-size: 18px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-medium);
  }

  .illustration-column {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-two-column {
    grid-template-columns: 1fr;
    gap: var(--grid-gap-medium);
  }
}

@media (max-width: 480px) {
  .logo-icon {
    width: var(--logo-icon-size-mobile);
    height: var(--logo-icon-size-mobile);
  }

  .cta-button {
    padding: 10px 24px;
  }

  .video-placeholder.full-bleed {
    aspect-ratio: 16 / 9;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: var(--spacing-large);
  border-radius: 0;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  font-weight: 300;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #884af4;
}

.modal h2 {
  margin-bottom: var(--spacing-large);
  color: #884af4;
  text-align: center;
}

.form-group {
  margin-bottom: var(--spacing-medium);
}

.form-group label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xsmall);
  color: #1a1a1a;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  transition: border-color 0.2s ease;
  background-color: #ffffff;
  color: #1a1a1a;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #884af4;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.modal-submit {
  width: 100%;
  margin-top: var(--spacing-medium);
  position: relative;
}

.modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  margin-top: var(--spacing-small);
  padding: 12px 16px;
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 4px;
  color: #c33;
  font-size: 14px;
  text-align: center;
}

.success-text {
  font-size: var(--body-font-size);
  line-height: 1.7;
  margin-bottom: var(--spacing-medium);
  text-align: center;
}

.referral-link-container {
  display: flex;
  gap: var(--spacing-small);
  margin-bottom: var(--spacing-medium);
}

.referral-link-input {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background-color: #f8f8f8;
  color: #1a1a1a;
}

.copy-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  background-color: #884af4;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.copy-button:hover {
  background-color: #9d5fff;
  transform: translateY(-1px);
}

.copy-button:active {
  transform: translateY(0);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: var(--spacing-medium);
    width: 95%;
  }

  .modal h2 {
    font-size: 24px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto;
    padding: var(--spacing-small);
  }

  .modal-close {
    right: 12px;
    top: 12px;
    font-size: 28px;
  }

  .referral-link-container {
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }
}
