/* ============================================
   GoWishy Design System
   All design tokens, utilities, and components
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --gw-primary: #5D3CF2;
  --gw-primary-hover: #4e2fd6;
  --gw-primary-light: #F4F1FD;
  --gw-primary-10: rgba(93, 60, 242, 0.1);
  --gw-primary-20: rgba(93, 60, 242, 0.2);
  --gw-accent: #FF4D94;
  --gw-dark: #0F172A;
  --gw-gradient: linear-gradient(135deg, #5D3CF2 0%, #FF4D94 100%);

  --gw-slate-50: #f8fafc;
  --gw-slate-100: #f1f5f9;
  --gw-slate-200: #e2e8f0;
  --gw-slate-300: #cbd5e1;
  --gw-slate-400: #94a3b8;
  --gw-slate-500: #64748b;
  --gw-slate-600: #475569;
  --gw-slate-700: #334155;
  --gw-slate-800: #1e293b;
  --gw-slate-900: #0f172a;
  --gw-slate-950: #020617;

  --gw-white: #ffffff;
  --gw-red-100: #fee2e2;
  --gw-red-500: #ef4444;
  --gw-orange-100: #ffedd5;
  --gw-orange-500: #f97316;
  --gw-orange-50: #fff7ed;
  --gw-indigo-100: #e0e7ff;
  --gw-indigo-500: #6366f1;
  --gw-green-100: #dcfce7;
  --gw-green-400: #4ade80;
  --gw-green-500: #22c55e;
  --gw-blue-100: #dbeafe;
  --gw-blue-500: #3b82f6;
  --gw-blue-50: #eff6ff;
  --gw-pink-100: #fce7f3;
  --gw-pink-500: #ec4899;
  --gw-pink-600: #db2777;
  --gw-pink-50: #fdf2f8;
  --gw-yellow-400: #facc15;

  --gw-font: "Plus Jakarta Sans", sans-serif;
  --gw-radius-sm: 0.75rem;
  --gw-radius-md: 1rem;
  --gw-radius-lg: 1.5rem;
  --gw-radius-xl: 2rem;
  --gw-radius-2xl: 2.5rem;
  --gw-radius-full: 9999px;
  --gw-shadow-glow: 0 0 40px rgba(93, 60, 242, 0.2);
  --gw-shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --gw-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --gw-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gw-max-width: 80rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--gw-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--gw-slate-50);
  color: var(--gw-slate-800);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--gw-primary);
  color: var(--gw-white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* --- Layout Utilities --- */
.gw-container {
  max-width: var(--gw-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.gw-section {
  padding: 4rem 0;
}

.gw-section-sm {
  padding: 2.5rem 0;
}

.gw-grid {
  display: grid;
  gap: 2rem;
}

.gw-grid-2 {
  grid-template-columns: 1fr;
}

.gw-grid-3 {
  grid-template-columns: 1fr;
}

.gw-grid-4 {
  grid-template-columns: 1fr;
}

.gw-flex {
  display: flex;
}

.gw-flex-col {
  flex-direction: column;
}

.gw-flex-center {
  align-items: center;
  justify-content: center;
}

.gw-flex-between {
  justify-content: space-between;
}

.gw-items-center {
  align-items: center;
}

.gw-items-end {
  align-items: flex-end;
}

.gw-gap-2 {
  gap: 0.5rem;
}

.gw-gap-3 {
  gap: 0.75rem;
}

.gw-gap-4 {
  gap: 1rem;
}

.gw-gap-6 {
  gap: 1.5rem;
}

.gw-gap-8 {
  gap: 2rem;
}

.gw-gap-12 {
  gap: 3rem;
}

.gw-gap-16 {
  gap: 4rem;
}

.gw-text-center {
  text-align: center;
}

.gw-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.gw-relative {
  position: relative;
}

.gw-z-10 {
  z-index: 10;
}

.gw-overflow-hidden {
  overflow: hidden;
}

.gw-w-full {
  width: 100%;
}

.gw-max-w-sm {
  max-width: 24rem;
}

.gw-max-w-md {
  max-width: 28rem;
}

.gw-max-w-lg {
  max-width: 32rem;
}

.gw-max-w-2xl {
  max-width: 42rem;
}

.gw-max-w-3xl {
  max-width: 48rem;
}

.gw-max-w-4xl {
  max-width: 56rem;
}

.gw-hidden {
  display: none;
}

/* --- Typography --- */
.gw-heading-xl {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gw-slate-900);
}

.gw-heading-lg {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gw-slate-900);
}

.gw-heading-md {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gw-slate-900);
}

.gw-heading-sm {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gw-slate-900);
}

.gw-heading-xs {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gw-slate-900);
}

.gw-text-lg {
  font-size: 1.125rem;
}

.gw-text-sm {
  font-size: 0.875rem;
}

.gw-text-xs {
  font-size: 0.75rem;
}

.gw-text-slate-600 {
  color: var(--gw-slate-600);
}

.gw-text-slate-500 {
  color: var(--gw-slate-500);
}

.gw-text-slate-400 {
  color: var(--gw-slate-400);
}

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

.gw-font-bold {
  font-weight: 700;
}

.gw-font-extrabold {
  font-weight: 800;
}

.gw-leading-relaxed {
  line-height: 1.625;
}

.gw-tracking-wide {
  letter-spacing: 0.05em;
}

.gw-tracking-widest {
  letter-spacing: 0.1em;
}

.gw-uppercase {
  text-transform: uppercase;
}

.gw-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gw-primary);
  display: block;
  margin-bottom: 0.75rem;
}

.gw-gradient-text {
  background: var(--gw-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.gw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--gw-radius-xl);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.gw-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.gw-btn-md {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.gw-btn-primary {
  background: var(--gw-primary);
  color: var(--gw-white);
  box-shadow: var(--gw-shadow-glow);
}

.gw-btn-primary:hover {
  background: var(--gw-primary-hover);
  box-shadow: var(--gw-shadow-xl);
  transform: translateY(-2px);
}

.gw-btn-dark {
  background: var(--gw-slate-900);
  color: var(--gw-white);
}

.gw-btn-dark:hover {
  box-shadow: var(--gw-shadow-xl);
  transform: translateY(-2px);
}

.gw-btn-ghost {
  background: transparent;
  color: var(--gw-slate-600);
}

.gw-btn-ghost:hover {
  color: var(--gw-primary);
  background: var(--gw-slate-100);
}

.gw-btn-white {
  background: var(--gw-white);
  color: var(--gw-slate-900);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.gw-btn-white:hover {
  background: var(--gw-slate-100);
}

.gw-btn-outline-white {
  background: transparent;
  color: var(--gw-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gw-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gw-btn-pill {
  border-radius: var(--gw-radius-full);
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* --- Cards --- */
.gw-card {
  background: var(--gw-white);
  border: 1px solid var(--gw-slate-200);
  border-radius: var(--gw-radius-xl);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gw-card:hover {
  box-shadow: var(--gw-shadow-xl);
}

.gw-card-rounded {
  border-radius: var(--gw-radius-2xl);
}

.gw-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--gw-radius-xl);
  padding: 1.25rem;
  box-shadow: var(--gw-shadow-xl);
}

/* --- Icon Box --- */
.gw-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--gw-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.gw-icon-box-sm {
  width: 3rem;
  height: 3rem;
  border-radius: var(--gw-radius-sm);
}

.gw-icon-box-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--gw-radius-full);
}

/* --- Material Icons fix --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1;
}

/* --- Animations --- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

.gw-animate-float {
  animation: float 6s ease-in-out infinite;
}

.gw-animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Grid Pattern Background --- */
.gw-grid-pattern {
  background-image: radial-gradient(rgba(93, 60, 242, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* --- Avatar Stack --- */
.gw-avatar-stack {
  display: flex;
}

.gw-avatar-stack>* {
  margin-left: -0.75rem;
}

.gw-avatar-stack>*:first-child {
  margin-left: 0;
}

.gw-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--gw-radius-full);
  border: 2px solid var(--gw-white);
  object-fit: cover;
  overflow: hidden;
}

.gw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Star Rating --- */
.gw-stars {
  display: flex;
  color: var(--gw-yellow-400);
  font-size: 0.875rem;
}

/* --- Progress Bar --- */
.gw-progress {
  height: 0.375rem;
  width: 100%;
  background: var(--gw-slate-100);
  border-radius: var(--gw-radius-full);
  overflow: hidden;
}

.gw-progress-bar {
  height: 100%;
  border-radius: var(--gw-radius-full);
}

/* --- FAQ Accordion --- */
.gw-faq-item {
  background: var(--gw-white);
  padding: 1.5rem;
  border-radius: var(--gw-radius-xl);
  border: 1px solid var(--gw-slate-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s;
}

.gw-faq-item:hover {
  border-color: var(--gw-primary-20);
}

.gw-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gw-slate-900);
}

.gw-faq-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: var(--gw-radius-full);
  background: var(--gw-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  flex-shrink: 0;
}

details[open] .gw-faq-toggle {
  transform: rotate(180deg);
}

.gw-faq-answer {
  margin-top: 1rem;
  line-height: 1.625;
  color: var(--gw-slate-600);
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .gw-container {
    padding: 0 1.5rem;
  }

  .gw-sm-flex-row {
    flex-direction: row;
  }

  .gw-sm-inline {
    display: inline-flex;
  }

  .gw-sm-w-auto {
    width: auto;
  }
}

@media (min-width: 768px) {
  .gw-container {
    padding: 0 1.5rem;
  }

  .gw-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gw-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gw-md-flex-row {
    flex-direction: row;
  }

  .gw-md-flex {
    display: flex;
  }

  .gw-md-hidden {
    display: none;
  }

  .gw-md-show {
    display: flex;
  }

  .gw-heading-xl {
    font-size: 3.5rem;
  }

  .gw-heading-lg {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .gw-container {
    padding: 0 2rem;
  }

  .gw-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gw-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .gw-heading-xl {
    font-size: 4.5rem;
  }

  .gw-lg-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gw-lg-pt-48 {
    padding-top: 12rem;
  }

  .gw-lg-pb-32 {
    padding-bottom: 8rem;
  }
}