@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@400;600;700;800&display=swap');

:root {
    /* Color System */
    --bg-primary: #FFF7ED;
    --bg-canvas: #FFFBF5;
    --bg-surface: #FFFFFF;
    --bg-panel: #F3F4F6;
    
    --accent-primary: #FF5C35;
    --accent-secondary: #7C3AED;
    --color-green: #22C55E;
    --color-blue: #2563EB;
    --color-yellow: #FACC15;
    --color-pink: #EC4899;
    
    --text-dark: #172033;
    --text-secondary: #556070;
    --border-color: #E5E7EB;
    
    --shadow-soft: 0 10px 25px rgba(23, 32, 51, 0.08);
    --shadow-hover: 0 20px 40px rgba(23, 32, 51, 0.12);
    --shadow-solid: 6px 6px 0px var(--text-dark);
    --shadow-solid-sm: 4px 4px 0px var(--text-dark);
    
    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing & Layout */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 9999px;
    
    --container-width: 1400px;
    --section-pad: 6rem 5%;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
ul { list-style: none; }

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}
.section { padding: var(--section-pad); }
.section-light { background-color: var(--bg-canvas); }
.section-white { background-color: var(--bg-surface); }
.section-panel { background-color: var(--bg-panel); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

@media (min-width: 992px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* PLAYGRID MOTION™ Design System Elements */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 92, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 92, 53, 0.4);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-dark);
    border-color: var(--border-color);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background-color: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Playground Cards */
.play-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.play-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-solid-sm);
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0;
}

.play-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--text-dark);
}

.play-card:hover::before {
    opacity: 1;
    transform: translate(4px, 4px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.bg-orange { background-color: var(--accent-primary); }
.bg-purple { background-color: var(--accent-secondary); }
.bg-green { background-color: var(--color-green); }
.bg-blue { background-color: var(--color-blue); }
.bg-yellow { background-color: var(--color-yellow); color: var(--text-dark); }
.bg-pink { background-color: var(--color-pink); }

/* Navigation */
.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    background: var(--bg-surface);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
}

.brand-dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-dark);
    background: var(--bg-panel);
}

/* Mobile Menu Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 92, 53, 0.1);
    color: var(--accent-primary);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-visual {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    border: 4px solid var(--bg-surface);
    box-shadow: var(--shadow-solid);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Abstract Playground Visual */
.playground-abstract {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: radial-gradient(var(--border-color) 2px, transparent 2px);
    background-size: 30px 30px;
}

.floating-element {
    position: absolute;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    padding: 1.5rem;
    box-shadow: var(--shadow-hover);
    animation: float 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 2px solid var(--border-color);
}

.el-1 { top: 10%; left: 10%; width: 200px; animation-delay: 0s; border-color: var(--color-blue); }
.el-2 { top: 40%; right: 10%; width: 250px; animation-delay: -2s; border-color: var(--accent-primary); }
.el-3 { bottom: 15%; left: 20%; width: 220px; animation-delay: -4s; border-color: var(--color-green); }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--bg-panel);
    border-top-color: var(--accent-secondary);
    animation: spin 3s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Section 2: Adventure Map */
.adventure-map {
    position: relative;
    padding: 4rem 0;
}
.map-path {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    position: relative;
}
.map-node {
    background: var(--bg-surface);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}
.map-node:hover {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
    transform: scale(1.05);
}
.map-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 2px;
}

/* Section 4: Journey Map */
.journey-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.journey-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 4px;
    background: var(--border-color);
    border-radius: 2px;
}
.journey-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 3rem;
}
.journey-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 4px solid var(--accent-primary);
    box-shadow: 0 0 0 4px var(--bg-primary);
}
.journey-content {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

/* Section 8: Knowledge Arcade (FAQ) */
.faq-item {
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-secondary);
}
.faq-item.active {
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-soft);
}
.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 500px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Contact Portal */
.contact-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-solid);
    border: 3px solid var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-panel);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(255, 92, 53, 0.1);
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: #fff;
    padding: 6rem 5% 2rem;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-brand h3 { color: #fff; }
.footer-links h4 { color: var(--color-yellow); margin-bottom: 1.5rem; }
.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; padding-left: 0.5rem; }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Cookie System */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: calc(100% - 4rem);
    max-width: 400px;
    background: var(--bg-surface);
    border: 2px solid var(--text-dark);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-solid);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Info Box */
.info-box {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--color-green);
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 2rem 0;
}
.info-box.warning {
    background: rgba(250, 204, 21, 0.1);
    border-left-color: var(--color-yellow);
}

/* Animations & Utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Headers (Service Pages) */
.page-header {
    padding: 10rem 5% 5rem;
    background: var(--bg-canvas);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}
.page-header h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}
.page-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Content Blocks for Services */
.content-block {
    max-width: 900px;
    margin: 0 auto;
}
.process-list {
    counter-reset: process-counter;
}
.process-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}
.process-item::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-panel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-primary);
    border: 2px solid var(--border-color);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    h1 { font-size: 3rem; }
    .hero-grid { gap: 2rem; }
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-tag { margin: 0 auto 1.5rem; }
    .hero-visual { height: 400px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-solid);
        border: 2px solid var(--text-dark);
        margin-top: 1rem;
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    .map-line { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 5%; }
    .page-header { padding: 8rem 5% 4rem; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .contact-card { padding: 2rem; }
    .footer-grid { gap: 2rem; }
    .cookie-banner { right: 1rem; width: calc(100% - 2rem); bottom: 1rem; }
}

@media (max-width: 480px) {
    .btn { width: 100%; margin-bottom: 1rem; }
    .journey-step { padding-left: 2.5rem; }
    .journey-marker { left: -4px; width: 20px; height: 20px; }
    .journey-container::before { left: 4px; }
}

@media (max-width: 360px) {
    h1 { font-size: 2rem; }
    .play-card { padding: 1.5rem; }
}