/*
======================================
TARKAN SALAR - CUSTOM STYLESHEET (Revamped)
Based on the 22 Nov 2025 Blueprint
======================================
*/

/* 1. ROOT VARIABLES
  Defines the brand's color palette and fonts per the guide.
  - Using 'Inter' as the practical, available substitute for 'Helvetica' and 'tt-commons-pro'.
  - 'Anton' is used for major display/hero headlines.
*/
:root {
  --font-sans: "Inter", sans-serif;
  --font-display: "Anton", sans-serif;
  --font-heading: "Inter", sans-serif; /* Per guide, this would be Helvetica. Using Inter as substitute. */

  /* Color Palette per Guide */
  --color-primary: #d8f911;
  --color-dark: #0d0d0d;
  --color-white: #ffffff;

  --color-red: #ff4d4d;
  --color-orange: #f2ad0c; /* Updated from F2AD09 */
  --color-green: #16bc53;
  --color-cyan: #42d1ff;

  /* Opacity helpers */
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-30: rgba(255, 255, 255, 0.3);
  --color-white-10: rgba(255, 255, 255, 0.1);
  --color-white-05: rgba(255, 255, 255, 0.05);
}

/* 2. BASE STYLING
  Applies base styles from the guide.
*/
body {
  background-color: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 500; /* Per guide (Medium weight for tt-commons-pro) */
  font-size: 16px; /* Per guide */
  line-height: 26px; /* Per guide */
}

/* 3. TYPOGRAPHY & GLOBAL CLASSES
  Styles for headings and reusable components.
*/

/* For Hero / major display text (per guide) */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* For standard section headings (per guide) */
.section-title {
  font-family: var(--font-heading);
  font-size: 48px; /* 48px per guide */
  font-weight: 700; /* Bold per guide */
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 48px; /* Stays 48px as per guide's H2 spec */
  }
}

/* Section Subtitles */
.section-subtitle {
  font-family: var(--font-sans); /* Body font */
  font-weight: 500;
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: var(--color-white-80);
  max-width: 42rem; /* 3xl */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.25rem; /* 20px */
  }
}

/* Text-heavy content styling */
.prose {
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
}

.prose blockquote {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin-left: 0;
}

/* 4. BUTTON STYLES (Revamped per Guide)
  Replaces old .btn, .btn-primary, .btn-secondary, .btn-lg
*/

/* Base Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading); /* Per guide (Helvetica 700) */
  font-size: 1rem; /* 16px */
  font-weight: 700; /* Per guide */
  padding: 16px 32px; /* Per guide */
  border-radius: 999px; /* Pill shape per guide */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary Button (Neon Green) - Per Guide */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-dark);
  border: 1px solid var(--color-primary); /* 1px border per guide */
}

.btn-primary:hover {
  transform: scale(1.05); /* Per guide suggestion */
  box-shadow: 0 4px 15px rgba(216, 249, 17, 0.2);
}

/* Secondary Button (Outline) - Per Guide */
.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white); /* 2px border per guide */
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

/* Dark Button (For use on light backgrounds) */
.btn-dark {
  background-color: var(--color-dark);
  color: var(--color-primary);
  border: 2px solid var(--color-dark);
}

.btn-dark:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 13, 13, 0.3);
}

/* 5. COMPONENT STYLES
  Custom classes for cards and other components.
  (Kept from original as they are implied by the guide's layout)
*/

/* Feature Card (Pain Points, Stats, Case Studies) */
.feature-card {
  background-color: var(--color-white-05);
  border: 1px solid var(--color-white-10);
  padding: 2rem;
  border-radius: 12px;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.feature-text {
  color: var(--color-white-80);
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--color-white-05);
  border: 1px solid var(--color-white-10);
  padding: 2.5rem;
  border-radius: 12px;
  height: 100%;
}

/* 6. QUIZ & FORM STYLES (Updated per Guide)
  Specific styles for the Blue Ocean Diagnostic quiz.
*/
.quiz-question {
  display: none; /* Hidden by default, JS will show */
}

.quiz-question.active-question {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

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

.question-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem; /* 28px */
  color: var(--color-white);
  line-height: 1.3;
}

.question-description {
  font-size: 1rem;
  color: var(--color-white-50);
  margin-top: 0.5rem;
}

/* Quiz Options (Buttons) */
.quiz-option {
  display: block;
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--color-white-30); /* Per guide (1px solid #FFFFFF 30%) */
  color: var(--color-white-80);
  padding: 1rem 1.5rem;
  border-radius: 8px; /* Per guide */
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  border-color: var(--color-primary);
  background-color: rgba(216, 249, 17, 0.05);
  color: var(--color-white);
}

.quiz-option.selected {
  border-color: var(--color-primary);
  background-color: rgba(216, 249, 17, 0.1);
  color: var(--color-primary);
  font-weight: 700;
}

/* Form Inputs (for open-ended questions & lead capture) - Per Guide */
.quiz-input,
.quiz-textarea {
  display: block;
  width: 100%;
  background-color: var(--color-white-05); /* Semi-transparent dark */
  color: var(--color-white);
  border-radius: 8px; /* Per guide */
  padding: 12px; /* 12px all sides per guide */
  border: 1px solid var(--color-white-30); /* Per guide */
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  transition: all 0.2s ease;
}

.quiz-input::placeholder,
.quiz-textarea::placeholder {
  color: var(--color-white-50);
}

.quiz-input:focus,
.quiz-textarea:focus {
  outline: none;
  border-color: var(--color-primary); /* Per guide focus state */
  background-color: var(--color-dark);
  box-shadow: 0 0 0 3px rgba(216, 249, 17, 0.3);
}

.quiz-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Quiz Navigation */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-white-10);
}

/* 7. NEW MODAL STYLES
  For the diagnostic quiz pop-up
*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--color-dark);
  border: 1px solid var(--color-white-10);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 56rem; /* 4xl */
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .modal-content {
    padding: 3rem;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--color-white-50);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--color-primary);
  transform: rotate(90deg);
}
