/* ============================================
   SATORI XR - Global Styles
   Colors: #F4D966, #FFFFFF, #000000
   ============================================ */

:root {
    --gold: #F4D966;
    --gold-dark: #d4b94a;
    --gold-light: #f8e898;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--gray-600);
    line-height: 1.7;
}

.highlight {
    color: var(--black);
    background: linear-gradient(180deg, transparent 60%, var(--gold) 60%);
    padding: 0 4px;
}

/* ============================================
   Layout
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-md {
    padding: 12px 28px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 217, 102, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-outline-dark {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}

.btn-outline-dark:hover {
    background: var(--black);
    color: var(--white);
}

.btn-dark {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-dark:hover {
    background-color: var(--gray-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-satori {
    color: var(--black);
}

.logo-xr {
    color: var(--black);
    background: var(--gold);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 2px;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: var(--black);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
}

.dropdown-menu li a:hover {
    background: var(--gray-50);
    color: var(--black);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all var(--transition);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 16px;
    font-size: 0.9375rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 20px;
}

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

.footer-col ul li a {
    color: var(--gray-300);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

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

.footer-links a {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */

.page-header {
    padding: 140px 0 60px;
    background: var(--black);
    color: var(--white);
}

.page-header h1 {
    margin-bottom: 16px;
}

.page-header p {
    color: var(--gray-400);
    font-size: 1.25rem;
    max-width: 640px;
}

.page-header.center {
    text-align: center;
}

.page-header.center p {
    margin: 0 auto;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================
   Tables
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead th {
    background: var(--black);
    color: var(--white);
    padding: 20px 24px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table thead th:first-child {
    width: 180px;
}

.comparison-table thead th.highlight-col {
    background: var(--gold);
    color: var(--black);
}

.comparison-table tbody td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
    color: var(--gray-700);
    vertical-align: top;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--black);
}

.comparison-table tbody td.highlight-col {
    background: rgba(244, 217, 102, 0.08);
    font-weight: 500;
    color: var(--black);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        min-width: auto;
    }

    .dropdown-menu li a {
        font-size: 1rem;
        padding: 8px 16px;
        color: var(--gray-500);
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-actions .btn {
        display: none;
    }

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

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

    .comparison-table {
        font-size: 0.8125rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ============================================
   Global Animations & Utilities
   ============================================ */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes borderGlow {
    0%, 100% { border-color: var(--gray-200); }
    50% { border-color: var(--gold); }
}

/* Nav link hover underline animation */
.nav-links > li > a {
    position: relative;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* Button subtle shine on hover */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 125%;
}

/* Hero badge floating animation */
.hero-badge {
    animation: fadeInDown 0.6s ease both, gentleBounce 3s ease-in-out 1s infinite;
}

/* Page header entrance */
.page-header h1 {
    animation: fadeInUp 0.7s ease both;
    animation-delay: 0.1s;
}

.page-header p {
    animation: fadeInUp 0.7s ease both;
    animation-delay: 0.25s;
}

.page-header .hero-badge {
    animation: fadeInDown 0.5s ease both, gentleBounce 3s ease-in-out 1s infinite;
}

/* Section header reveal */
.section-header h2 {
    animation: fadeInUp 0.6s ease both;
}

.section-header p {
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.1s;
}

/* Footer links hover slide */
.footer-col ul li a {
    display: inline-block;
    transition: color var(--transition), transform 0.2s ease;
}

.footer-col ul li a:hover {
    transform: translateX(4px);
}

/* Card lift with subtle shadow spread */
.card:hover,
.value-card:hover,
.persona-card:hover,
.team-card:hover,
.partner-card:hover,
.pricing-card:hover,
.event-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

/* Gold highlight text shimmer */
.highlight {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 40%,
        rgba(244, 217, 102, 0.5) 50%,
        transparent 60%,
        transparent 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
}

/* Scroll-triggered animation classes (applied by JS) */
.anim-ready {
    opacity: 0;
}

.anim-fade-up {
    animation: fadeInUp 0.6s ease both;
}

.anim-fade-left {
    animation: fadeInLeft 0.6s ease both;
}

.anim-fade-right {
    animation: fadeInRight 0.6s ease both;
}

.anim-scale-in {
    animation: scaleIn 0.5s ease both;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
