:root {
    --color-primary: #6c5ce7; /* Deep Purple */
    --color-primary-dark: #4834d4;
    --color-accent: #00cec9; /* Bright Teal */
    --color-accent-2: #fdcb6e; /* Warm Yellow */
    --color-text: #2d3436;
    --color-bg: #dfe6e9; /* Light Grey Blue */
    --color-white: #ffffff;
    --font-heading: 'Fredoka', sans-serif;
    --font-hand: 'Patrick Hand', cursive;
    --font-body: system-ui, -apple-system, sans-serif;
    --spacing-unit: 1rem;
    --border-radius: 12px;
}

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

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

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tagline {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    color: var(--color-text);
    transform: rotate(-2deg);
    display: inline-block;
    background: var(--color-accent-2);
    padding: 0.2rem 1rem;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 5px solid var(--color-accent);
}

.logo {
    color: var(--color-primary);
    text-shadow: 2px 2px 0 var(--color-accent-2);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, #ffffff 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-heading);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    margin-left: 10px;
}

/* Grid Animation (Approximating a logic grid) */
.grid-animation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 250px;
    height: 250px;
    transform: rotate(10deg);
}

.grid-animation .cell {
    background-color: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 8px;
    animation: pulse 2s infinite ease-in-out;
}

.grid-animation .cell:nth-child(1) { animation-delay: 0.1s; background-color: var(--color-accent); }
.grid-animation .cell:nth-child(3) { animation-delay: 0.3s; }
.grid-animation .cell:nth-child(5) { animation-delay: 0.5s; background-color: var(--color-accent-2); }
.grid-animation .cell:nth-child(7) { animation-delay: 0.2s; }
.grid-animation .cell:nth-child(9) { animation-delay: 0.4s; background-color: var(--color-primary); }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); opacity: 0.8; }
}

/* Features */
.features {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* Teaser / Riddle */
.teaser-section {
    padding: 4rem 0;
    background-color: var(--color-accent-2);
    text-align: center;
}

.riddle-box {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 2rem auto 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.riddle-box em {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.hidden {
    display: none;
}

#riddle-answer {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    animation: fadeIn 0.5s;
}

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

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
}

.newsletter h2 {
    color: white;
}

.signup-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.signup-form input {
    padding: 1rem;
    border-radius: 50px;
    border: none;
    min-width: 300px;
    font-size: 1rem;
}

.signup-form button {
    background-color: var(--color-accent-2);
    color: var(--color-text);
}

.signup-form button:hover {
    background-color: #ffeaa7;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #636e72;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-list a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .h1 { font-size: 2.5rem; }
    .hero .container { flex-direction: column-reverse; text-align: center; }
    .hero-content { width: 100%; }
}
