/* ==========================================================================
   CubingGG Modern Landing Page Design System
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0c14;
  --bg-card: #121520;
  --bg-card-border: #222738;
  --bg-input: #ffffff;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dark: #0f172a;

  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-blue-glow: rgba(59, 130, 246, 0.4);
  --accent-green: #22c55e;
  --accent-green-hover: #16a34a;
  --accent-purple: #8b5cf6;

  --border-subtle: #27272a;
  --border-light: #e4e4e7;
  --border-white: #ffffff;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --container-max: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: #e4e4e7;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent-blue);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-transform: uppercase;
}

.btn-pill-white {
  background-color: #ffffff;
  color: #000000;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-pill-white:hover {
  background-color: #f4f4f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.btn-pill-blue {
  background-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--accent-blue-glow);
}

.btn-pill-blue:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.6);
}

.btn-pill-green {
  background-color: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.btn-pill-green:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 48px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 1) 75%);
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #93c5fd;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.4);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-media-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(37, 99, 235, 0.2);
}

/* Why Section */
.why-section {
  padding: 90px 0 70px;
  background-color: #000000;
}

.section-heading-center {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 48px;
  letter-spacing: 0.06em;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 48px;
}

.why-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.why-title {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.why-preview {
  position: relative;
  display: flex;
  justify-content: center;
}

.why-preview img {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.why-preview:hover img {
  transform: scale(1.02);
}

/* Meet the Coaches Section */
.coaches-section {
  padding: 80px 0 60px;
  background-color: #000000;
  text-align: center;
}

.coaches-banner-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.coaches-banner-container img {
  width: 100%;
  height: auto;
}

.coaches-cta-overlay {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.coaches-cta-overlay .btn-pill {
  font-size: 16px;
  padding: 14px 36px;
}

/* Featured Courses Section */
.courses-section {
  padding: 90px 0 80px;
  background-color: #000000;
}

.courses-box-container {
  max-width: 1080px;
  margin: 0 auto;
  border: 4px solid #ffffff;
  padding: 24px;
  background-color: #000000;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.course-card {
  background-color: #12141c;
  border: 1px solid #272a38;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(59, 130, 246, 0.2);
}

.course-media {
  background-color: #ffffff;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.course-desc {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.course-action {
  align-self: flex-start;
}

.course-action .btn-pill {
  font-size: 13px;
  padding: 8px 20px;
}

/* Contact Us Section */
.contact-section {
  padding: 90px 0 110px;
  background-color: #000000;
  text-align: center;
}

.contact-header {
  max-width: 650px;
  margin: 0 auto 36px;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: #d4d4d8;
  margin-top: 14px;
  line-height: 1.6;
}

.contact-email-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.contact-email-link:hover {
  color: var(--accent-blue);
}

.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #71717a;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

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

.btn-submit {
  width: 100%;
  padding: 14px 28px;
  font-size: 16px;
}

.form-status-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
  text-align: center;
}

.form-status-msg.success {
  display: block;
  background-color: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--accent-green);
  color: #4ade80;
}

.form-status-msg.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid #18181b;
  padding: 40px 0;
  background-color: #070709;
  text-align: center;
  color: #71717a;
  font-size: 14px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .why-content {
    align-items: center;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .courses-box-container {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .nav-container {
    height: 64px;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-link {
    font-size: 13px;
  }

  .btn-pill {
    padding: 8px 16px;
    font-size: 12px;
  }

  .hero-section {
    padding: 32px 0 40px;
  }

  .coaches-cta-overlay {
    bottom: 16px;
  }

  .coaches-cta-overlay .btn-pill {
    font-size: 13px;
    padding: 10px 22px;
  }
}