/* Sportswiz.ai shared design system — tokens, chrome, marketing layouts */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-light: #38bdf8;
  --accent: #22d3ee;
  --violet: #8b5cf6;
  --primary-glow: rgba(56, 189, 248, 0.3);
  --bg-darker: #060d1a;
  --bg-dark: #0a1628;
  --bg-card: #111f33;
  --bg-card-hover: #16263d;
  --text-primary: #eef4ff;
  --text-secondary: #9fb3cc;
  --text-muted: #5f7591;
  --border: rgba(120, 160, 210, 0.12);
  --border-bright: rgba(120, 160, 210, 0.28);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.45);
  --gradient-hero: linear-gradient(120deg, #2563eb 0%, #06b6d4 55%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(34, 211, 238, 0.05) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --gutter: 24px;
  --content: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
}

.container {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(6, 13, 26, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 13, 26, 0.92);
}

.site-header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient-hero);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.site-name .ai {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.site-nav-desktop a:hover,
.site-nav-desktop a.is-active {
  color: var(--text-primary);
}

.site-nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 2px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.site-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  cursor: pointer;
}

.site-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.25s;
}

.site-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== DRAWER ===== */
.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(2, 6, 16, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.site-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--bg-dark);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 28px;
}

.site-drawer.is-open {
  transform: translateX(0);
}

.site-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.site-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}

.site-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-drawer nav a {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
}

.site-drawer nav a:hover,
.site-drawer nav a.is-active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.site-drawer-cta {
  margin-top: 20px;
}

.site-drawer-cta .btn {
  width: 100%;
  justify-content: center;
}

.site-drawer-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.site-drawer-foot a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-drawer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.site-drawer-socials a,
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: 0.2s;
}

.site-drawer-socials a:hover,
.footer-socials a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 6px 26px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px var(--primary-glow);
}

.btn-secondary,
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
}

.btn-full {
  width: 100%;
}

/* ===== HERO (home) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(37, 99, 235, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 82% 70%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 55%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 160, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 210, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 var(--gutter);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 900;
  line-height: 1.07;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
}

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

.hero > .hero-content > p,
.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat .num {
  font-size: 1.7rem;
  font-weight: 800;
}

.hero-stat .num .grad {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat .lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 72px;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

.page-hero h1 {
  position: relative;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-hero p {
  position: relative;
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.products-grid,
.features-grid,
.services-grid,
.work-grid,
.testimonials-grid,
.faq-grid {
  display: grid;
  gap: 20px;
}

.products-grid,
.work-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.features-grid,
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonials-grid,
.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.product-card,
.feature-card,
.service-card,
.work-card,
.testimonial-card,
.faq-card,
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover,
.feature-card:hover,
.service-card:hover,
.work-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow);
}

.product-card.featured {
  border-color: rgba(56, 189, 248, 0.45);
}

.badge-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  z-index: 2;
  background: var(--gradient-hero);
  color: #fff;
}

.badge-pill.muted {
  background: rgba(120, 160, 210, 0.15);
  color: var(--text-secondary);
}

.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 22px;
  background: var(--gradient-hero);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.icon-tile.green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.icon-tile.violet {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.icon-tile.amber {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.icon-tile.soft {
  background: var(--gradient-soft);
  color: var(--primary-light);
  border: 1px solid var(--border);
  box-shadow: none;
}

.card h3,
.product-card h3,
.feature-card h3,
.service-card h3,
.work-card h3,
.faq-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.card p,
.product-card p,
.feature-card p,
.service-card p,
.work-card p,
.faq-card p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tags span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(120, 160, 210, 0.1);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

.text-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-light);
}

.text-link:hover {
  gap: 12px;
}

.text-link.disabled {
  color: var(--text-muted);
  pointer-events: none;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ===== TESTIMONIALS ===== */
.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-role {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== CTA ===== */
.cta-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 40px;
  border-radius: 28px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-bright);
  overflow: hidden;
  text-align: center;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
}

.cta-card h2,
.cta-card p,
.cta-card .hero-actions {
  position: relative;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-card .hero-actions {
  margin-bottom: 0;
}

.cta-notes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.cta-notes i {
  color: var(--accent);
  margin-right: 6px;
}

/* ===== CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.contact-form,
.contact-side {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form h2,
.contact-side h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-intro {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row > * {
  flex: 1;
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: var(--bg-darker);
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.contact-form input[type="submit"] {
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 26px var(--primary-glow);
}

.contact-form input[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item {
  display: flex;
  gap: 14px;
}

.info-item .icon-tile {
  width: 44px;
  height: 44px;
  font-size: 1rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.info-item p,
.info-item a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.info-item a:hover {
  color: var(--primary-light);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 14px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

/* ===== 404 ===== */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

/* ===== REVEAL ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-nav-desktop,
  .site-header-actions .btn-ghost {
    display: none;
  }

  .site-header-inner {
    justify-content: space-between;
  }

  .site-header-actions {
    margin-left: auto;
  }

  .site-menu-btn {
    display: flex;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-stats {
    gap: 28px;
  }

  .hero-actions,
  .cta-card .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-card {
    padding: 40px 20px;
  }

  .form-row {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .site-header-actions .btn-primary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .site-drawer,
  .site-overlay {
    transition: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
