/* ========================================
   SAV MODERN — Dribbble-inspired
   ======================================== */

/* ========== ANIMATIONS ========== */
@keyframes savFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes savFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes savBounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes savGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes savPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43, 194, 255, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(43, 194, 255, 0); }
}
@keyframes savFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== SCROLL REVEAL ========== */
.sav-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.sav-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.sav-reveal-delay-1 { transition-delay: 0.1s; }
.sav-reveal-delay-2 { transition-delay: 0.2s; }
.sav-reveal-delay-3 { transition-delay: 0.3s; }

/* ========== HERO ========== */
.sav-hero {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #455763 0%, #2d3a47 50%, #1e2a36 100%);
  background-size: 200% 200%;
  animation: savGradientShift 12s ease infinite;
  color: white;
}

.sav-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 194, 255, 0.12) 0%, transparent 70%);
  animation: savFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.sav-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.sav-hero-content {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: savFadeInUp 0.8s ease-out;
}

.sav-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  animation: savBounceIn 0.6s ease-out 0.3s both;
}

.sav-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: white;
}

.sav-hero-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ========== STATS ========== */
.sav-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sav-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              background 0.3s ease;
}

.sav-stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.14);
}

.sav-stat-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.sav-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.375rem;
}

.sav-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== TABS ========== */
.sav-tabs-bar {
  background: white;
  border-bottom: 1px solid rgba(69, 87, 99, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.sav-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.sav-tabs-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  position: relative;
}

.sav-tab-btn {
  padding: 1.25rem 0.5rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(69, 87, 99, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  position: relative;
}

.sav-tab-btn.active {
  color: var(--puramane-navy);
}

.sav-tab-btn:hover {
  color: var(--puramane-navy);
}

/* Animated underline indicator */
.sav-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--puramane-navy);
  border-radius: 3px 3px 0 0;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ========== CONTACT TAB ========== */
.sav-contact-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.sav-contact-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sav-contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sav-contact-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--puramane-navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.sav-contact-subtitle {
  font-size: 1.0625rem;
  color: rgba(69, 87, 99, 0.6);
}

/* Quick contact cards */
.sav-quick-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.sav-quick-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(69, 87, 99, 0.06);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s ease,
              background 0.3s ease;
  cursor: default;
}

.sav-quick-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(69, 87, 99, 0.08);
  background: rgba(43, 194, 255, 0.02);
}

.sav-quick-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(43, 194, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.sav-quick-card:hover .sav-quick-icon {
  transform: scale(1.1);
}

.sav-quick-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 0.5rem;
}

.sav-quick-card p {
  font-size: 0.875rem;
  color: rgba(69, 87, 99, 0.6);
  margin-bottom: 0.75rem;
}

.sav-quick-link {
  font-size: 0.875rem;
  color: #2BC2FF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sav-quick-link:hover {
  color: #0891b2;
}

/* ========== FORM ========== */
.sav-form-card {
  background: white;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid rgba(69, 87, 99, 0.06);
  box-shadow: 0 4px 16px rgba(69, 87, 99, 0.04);
}

.sav-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 1.5rem;
}

.sav-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sav-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Float label field */
.sav-field {
  position: relative;
}

.sav-field input,
.sav-field textarea {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  border: 1.5px solid rgba(69, 87, 99, 0.12);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.sav-field input:focus,
.sav-field textarea:focus {
  border-color: var(--puramane-navy);
  box-shadow: 0 0 0 3px rgba(69, 87, 99, 0.08);
}

.sav-field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: rgba(69, 87, 99, 0.5);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  background: white;
  padding: 0 0.25rem;
}

.sav-field textarea ~ label {
  top: 1.25rem;
  transform: none;
}

.sav-field input:focus ~ label,
.sav-field input:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--puramane-navy);
}

.sav-field textarea:focus ~ label,
.sav-field textarea:not(:placeholder-shown) ~ label {
  top: -0.5rem;
  transform: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--puramane-navy);
  background: white;
}

.sav-field textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1.25rem;
}

.sav-form-submit {
  padding: 1rem;
  background: var(--puramane-navy);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(69, 87, 99, 0.2);
}

.sav-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(69, 87, 99, 0.25);
}

.sav-form-submit:active {
  transform: scale(0.97);
}

.sav-form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Success state */
.sav-form-success {
  text-align: center;
  padding: 2.5rem;
  background: rgba(16, 185, 129, 0.06);
  border-radius: 1rem;
}

.sav-form-success-icon {
  font-size: 3rem;
  color: #10b981;
  margin-bottom: 1rem;
  animation: savBounceIn 0.5s ease-out;
}

.sav-form-success h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 0.5rem;
}

.sav-form-success p {
  color: rgba(69, 87, 99, 0.6);
}

/* ========== FAQ TAB ========== */
.sav-faq-section {
  padding: 4rem 0;
  background: #f8fafc;
  min-height: 50vh;
}

.sav-faq-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.sav-faq-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--puramane-navy);
  margin-bottom: 0.75rem;
}

.sav-faq-subtitle {
  font-size: 1.0625rem;
  color: rgba(69, 87, 99, 0.6);
  margin-bottom: 2rem;
}

.sav-faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--puramane-navy);
  color: white;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(69, 87, 99, 0.2);
}

.sav-faq-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(69, 87, 99, 0.25);
}

.sav-faq-btn:active {
  transform: scale(0.97);
}

/* ========== RESOURCES TAB ========== */
.sav-resources-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.sav-resources-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sav-resources-header {
  text-align: center;
  margin-bottom: 3rem;
}

.sav-section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--puramane-navy);
  margin-bottom: 1.5rem;
}

/* Video cards */
.sav-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.sav-video-card {
  cursor: pointer;
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(69, 87, 99, 0.06);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s ease;
}

.sav-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(69, 87, 99, 0.1);
}

.sav-video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(43, 194, 255, 0.08) 0%, rgba(69, 87, 99, 0.08) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sav-video-duration {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.sav-video-play {
  width: 4rem;
  height: 4rem;
  background: #2BC2FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(43, 194, 255, 0.4);
  animation: savPulse 2.5s ease-in-out infinite;
}

.sav-video-body {
  padding: 1.25rem;
}

.sav-video-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 0.375rem;
}

.sav-video-body p {
  font-size: 0.875rem;
  color: rgba(69, 87, 99, 0.6);
}

/* Guide cards */
.sav-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

.sav-guide-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(69, 87, 99, 0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s ease;
}

.sav-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(69, 87, 99, 0.06);
}

.sav-guide-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(43, 194, 255, 0.08);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sav-guide-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--puramane-navy);
  margin-bottom: 0.25rem;
}

.sav-guide-card p {
  font-size: 0.75rem;
  color: rgba(69, 87, 99, 0.55);
}

/* ========== QUICK START TIMELINE ========== */
.sav-quickstart {
  position: relative;
}

.sav-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Horizontal connecting line */
.sav-quickstart-line {
  position: absolute;
  top: 1.5rem;
  left: 3rem;
  right: 3rem;
  height: 3px;
  background: rgba(69, 87, 99, 0.1);
  border-radius: 2px;
  z-index: 0;
}

.sav-quickstart-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.sav-quickstart-circle {
  width: 3rem;
  height: 3rem;
  background: var(--puramane-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(69, 87, 99, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sav-quickstart-step:hover .sav-quickstart-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(69, 87, 99, 0.3);
}

.sav-quickstart-step h4 {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--puramane-navy);
  margin-bottom: 0.5rem;
}

.sav-quickstart-step p {
  font-size: 0.875rem;
  color: rgba(69, 87, 99, 0.6);
}

/* ========== VIDEO MODAL ========== */
.sav-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: savFadeIn 0.3s ease-out;
}

.sav-modal-content {
  background: black;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.sav-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sav-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ========== RESPONSIVE ========== */

/* Large desktop (1280px+) */
@media (min-width: 1280px) {
  .sav-hero h1 { font-size: 3rem; }
}

/* Small desktop (1024-1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .sav-hero h1 { font-size: 2.5rem; }
  .sav-quick-cards { gap: 1rem; }
}

/* Tablet (769-1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .sav-hero { padding: 4rem 0; }
  .sav-hero h1 { font-size: 2.25rem; }
  .sav-stats-grid { gap: 1rem; }
  .sav-stat-value { font-size: 1.75rem; }
  .sav-quick-cards { grid-template-columns: 1fr; }
  .sav-videos-grid { grid-template-columns: 1fr; }
  .sav-guides-grid { grid-template-columns: repeat(2, 1fr); }
  .sav-quickstart-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .sav-quickstart-line { display: none; }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .sav-hero {
    padding: 3rem 0;
  }
  .sav-hero::before,
  .sav-hero::after { display: none; }
  .sav-hero h1 { font-size: 2rem; }
  .sav-hero-text { font-size: 1.0625rem; }
  .sav-hero-content { padding: 0 1.25rem; margin-bottom: 2rem; }

  .sav-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 1.25rem;
  }
  .sav-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1.25rem;
  }
  .sav-stat-icon { margin: 0; flex-shrink: 0; }
  .sav-stat-value { font-size: 1.5rem; margin-bottom: 0.125rem; }

  .sav-tabs-inner { padding: 0; }
  .sav-tabs-list {
    gap: 0;
    justify-content: space-evenly;
  }
  .sav-tab-btn {
    font-size: 0.875rem;
    padding: 1rem 0.5rem;
    flex: 1;
    justify-content: center;
  }
  .sav-tab-btn svg { display: none; }

  .sav-contact-inner,
  .sav-faq-inner,
  .sav-resources-inner { padding: 0 1.25rem; }

  .sav-contact-section,
  .sav-faq-section,
  .sav-resources-section { padding: 2.5rem 0; }

  .sav-contact-title,
  .sav-faq-title { font-size: 1.5rem; }

  .sav-quick-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sav-form-row { grid-template-columns: 1fr; }
  .sav-form-card { padding: 1.5rem; }

  .sav-videos-grid { grid-template-columns: 1fr; }
  .sav-guides-grid { grid-template-columns: 1fr; }

  .sav-quickstart-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .sav-quickstart-line { display: none; }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .sav-hero h1 { font-size: 1.75rem; }
  .sav-hero-text { font-size: 1rem; }
  .sav-stat-value { font-size: 1.25rem; }
  .sav-quickstart-grid { grid-template-columns: 1fr 1fr; }
}
