/* ============================================================
   KEYPOINT — Global Design System
   Apple Design Tokens + Anti-Gravity Concept
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  /* Colors */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --body-muted: #cccccc;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --surface-tile-1: #272729;
  --surface-tile-2: #2a2a2c;
  --surface-tile-3: #252527;
  --surface-black: #000000;
  --surface-chip-translucent: rgba(210, 210, 215, 0.64);
  --on-primary: #ffffff;
  --on-dark: #ffffff;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 17px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* Border Radius */
  --rounded-none: 0px;
  --rounded-xs: 5px;
  --rounded-sm: 8px;
  --rounded-md: 11px;
  --rounded-lg: 18px;
  --rounded-pill: 9999px;
  --rounded-full: 9999px;

  /* Typography (Inter as SF Pro substitute) */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Anti-Gravity Timing */
  --ag-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ag-float-duration: 4s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Anti-Gravity Keyframes ---------- */
@keyframes ag-float {
  0%   { transform: translateY(0px) rotate(0deg); }
  25%  { transform: translateY(-12px) rotate(0.5deg); }
  50%  { transform: translateY(-6px) rotate(-0.3deg); }
  75%  { transform: translateY(-14px) rotate(0.8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes ag-float-slow {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}
@keyframes ag-float-reverse {
  0%   { transform: translateY(0px) rotate(0deg); }
  33%  { transform: translateY(-18px) rotate(-1deg); }
  66%  { transform: translateY(-8px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes ag-orbit {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(6px, -10px) rotate(90deg); }
  50%  { transform: translate(0, -16px) rotate(180deg); }
  75%  { transform: translate(-6px, -8px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes ag-particle-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-120px) scale(0.3); opacity: 0; }
}
@keyframes ag-glow-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.08); }
}
@keyframes ag-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ag-hero-title {
  from { opacity: 0; transform: translateY(60px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ag-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes ag-note-float {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
  50%  { transform: translateY(-30px) translateX(10px) scale(1.1); opacity: 1; }
  100% { transform: translateY(-60px) translateX(-5px) scale(0.8); opacity: 0; }
}

/* ---------- Global Nav ---------- */
.global-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 96px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 22px;
}
.global-nav__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.global-nav__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.3s var(--ag-ease);
}
.global-nav__logo:hover { opacity: 0.85; transform: translateY(-1px); }
.global-nav__logo img {
  height: 88px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}
.global-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.global-nav__links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: var(--on-dark);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.global-nav__links a:hover { opacity: 1; }
.global-nav__links a.active { opacity: 1; color: var(--primary-on-dark); }
.global-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.global-nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ag-ease);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  line-height: 1;
  padding: 11px 22px;
  border-radius: var(--rounded-pill);
  transition: transform 0.25s var(--ag-ease), box-shadow 0.25s var(--ag-ease), background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 102, 204, 0.35);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: scale(0.95); box-shadow: none; }
.btn-primary:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 3px; }

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  line-height: 1;
  padding: 11px 22px;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--primary);
  transition: transform 0.25s var(--ag-ease), box-shadow 0.25s var(--ag-ease), background 0.2s ease, color 0.2s ease;
}
.btn-secondary-pill:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 12px 32px rgba(0, 102, 204, 0.25);
}
.btn-secondary-pill:active { transform: scale(0.95); }

.btn-primary--large {
  font-size: 18px;
  font-weight: 300;
  padding: 14px 28px;
}

/* On dark surface pill secondary */
.btn-secondary-pill--dark {
  color: var(--primary-on-dark);
  border-color: var(--primary-on-dark);
}
.btn-secondary-pill--dark:hover {
  background: var(--primary-on-dark);
  color: var(--surface-black);
}

/* ---------- Section Tiles ---------- */
.tile {
  width: 100%;
  padding: var(--space-section) 22px;
}
.tile--light   { background: var(--canvas); color: var(--ink); }
.tile--parchment { background: var(--canvas-parchment); color: var(--ink); }
.tile--dark    { background: var(--surface-tile-1); color: var(--on-dark); }
.tile--dark-2  { background: var(--surface-tile-2); color: var(--on-dark); }
.tile--dark-3  { background: var(--surface-tile-3); color: var(--on-dark); }
.tile--black   { background: var(--surface-black); color: var(--on-dark); }

.tile__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.tile__inner--wide { max-width: 1200px; }

/* ---------- Typography Utilities ---------- */
.t-hero {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.47;
  letter-spacing: -0.374px;
}
.t-lead {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}
.t-lead-airy {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
}
.t-tagline {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}
.t-body { font-size: 17px; font-weight: 400; line-height: 1.47; letter-spacing: -0.374px; }
.t-caption { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.224px; }
.t-fine { font-size: 12px; font-weight: 400; line-height: 1.0; letter-spacing: -0.12px; }

.text-muted { color: var(--body-muted); }
.text-muted-dark { color: var(--ink-muted-48); }
.text-blue { color: var(--primary); }
.text-blue-dark { color: var(--primary-on-dark); }

/* ---------- Utility ---------- */
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Anti-Gravity Particle Canvas ---------- */
#ag-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ---------- Floating Music Notes ---------- */
.ag-notes-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.ag-note {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: ag-note-float var(--ag-float-duration) ease-in infinite;
  will-change: transform, opacity;
}

/* ---------- Page Transition ---------- */
.page-transition {
  animation: ag-fade-up 0.6s var(--ag-ease) both;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ag-ease), transform 0.7s var(--ag-ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
footer {
  background: var(--canvas-parchment);
  color: var(--ink-muted-80);
  padding: 64px 22px;
}
footer .footer__inner {
  max-width: 980px;
  margin: 0 auto;
}
footer .footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
  padding-bottom: var(--space-xxl);
  border-bottom: 1px solid var(--hairline);
}
footer .footer__col h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  margin-bottom: var(--space-md);
}
footer .footer__col ul { list-style: none; }
footer .footer__col ul li a {
  font-size: 17px;
  font-weight: 400;
  line-height: 2.41;
  color: var(--ink-muted-80);
  transition: color 0.2s ease;
}
footer .footer__col ul li a:hover { color: var(--primary); }
footer .footer__legal {
  font-size: 12px;
  color: var(--ink-muted-48);
  text-align: center;
}

/* ---------- Mobile Nav Drawer ---------- */
.nav-drawer {
  position: fixed;
  top: 96px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ag-ease), opacity 0.4s var(--ag-ease);
  pointer-events: none;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-drawer a {
  font-size: 28px;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: -0.3px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-drawer a:hover { color: var(--primary-on-dark); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 833px) {
  .global-nav__links { display: none; }
  .global-nav__hamburger { display: flex; }
  .t-hero { font-size: 34px; }
  .t-display-lg { font-size: 28px; }
  .t-lead { font-size: 21px; }
  .tile { padding: 48px 20px; }
  footer .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}
@media (max-width: 640px) {
  .t-hero { font-size: 28px; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn-primary,
  .cta-group .btn-secondary-pill { text-align: center; }
}
@media (max-width: 419px) {
  .t-hero { font-size: 24px; }
  .t-display-lg { font-size: 22px; }
}

/* ---------- Language Switcher ---------- */
.lang-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}
.lang-btn {
  color: var(--on-dark);
  opacity: 0.5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--rounded-xs);
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover {
  opacity: 0.8;
}
.lang-btn.active {
  opacity: 1;
  color: var(--primary-on-dark);
  background: rgba(255, 255, 255, 0.1);
}
.lang-divider {
  color: var(--on-dark);
  opacity: 0.3;
  font-size: 11px;
  pointer-events: none;
}

.drawer-lang-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.drawer-lang-switcher .lang-btn {
  font-size: 18px;
  padding: 6px 12px;
}
.drawer-lang-switcher .lang-divider {
  font-size: 18px;
}

/* ---------- Floating Socials ---------- */
.floating-socials {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.social-btn svg {
  transition: transform 0.3s ease;
}
.social-btn:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.08);
}
.social-btn:hover svg {
  transform: scale(1.1);
}
.social-btn--instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.4);
  border-color: transparent;
}
.social-btn--youtube:hover {
  background: #ff0000;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
  border-color: transparent;
}

