@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Lexend:wght@400;600;800&display=swap');

:root {
    --bg-color: #fdfdfd;
    --text-color: #1a1a1a;
    --paper-line: rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Graph paper background */
    background-image: 
        linear-gradient(var(--paper-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    border-bottom: 3px solid var(--text-color);
    background: var(--bg-color);
}

.logo {
    font-family: 'Architects Daughter', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-cta {
    display: inline-block;
    padding: 8px 20px;
    margin-left: 20px;
    border: 2px solid var(--text-color);
    background: var(--text-color);
    color: var(--bg-color) !important;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 4px 4px 0px var(--text-color);
    transition: all 0.1s ease;
}

.nav-cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-color);
}

.nav-cta.secondary {
    background: var(--bg-color);
    color: var(--text-color) !important;
}

.nav-cta.secondary:hover {
    background: var(--bg-color);
    color: var(--text-color) !important;
}

.nav-cta::after {
    display: none !important;
}

/* Containers */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Architects Daughter', cursive;
    line-height: 1.2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 15px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    left: 0;
    z-index: -1;
    transform: rotate(-1deg);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--bg-color);
    background-color: var(--text-color);
    border: 3px solid var(--text-color);
    box-shadow: 6px 6px 0px var(--text-color);
    transition: all 0.1s ease;
    font-family: 'Lexend', sans-serif;
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px var(--text-color);
}

.btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px var(--text-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    margin-left: 20px;
}

/* Doodle Box & Legal Box */
.doodle-box, .legal-box {
    border: 3px solid var(--text-color);
    box-shadow: 8px 8px 0px var(--text-color);
    padding: 30px;
    background: var(--bg-color);
    margin-bottom: 40px;
    position: relative;
}

.doodle-box h2, .legal-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-decoration: underline;
    text-decoration-style: wavy;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* SVG Doodles */
.doodle {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.8;
    pointer-events: none;
}

.bg-doodle {
    position: fixed;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.bg-doodle-1 { top: 15%; left: 5%; width: 150px; transform: translateY(var(--scroll-y, 0)) rotate(-20deg); }
.bg-doodle-2 { bottom: 20%; right: 10%; width: 200px; transform: translateY(var(--scroll-y, 0)) rotate(15deg); }
.bg-doodle-3 { top: 50%; right: 5%; width: 120px; transform: translateY(var(--scroll-y, 0)) rotate(45deg); }
.bg-doodle-4 { top: 40%; left: 8%; width: 180px; transform: translateY(var(--scroll-y, 0)) rotate(30deg); }
.bg-doodle-5 { top: 75%; left: 15%; width: 140px; transform: translateY(var(--scroll-y, 0)) rotate(-10deg); }
.bg-doodle-6 { top: 10%; right: 15%; width: 160px; transform: translateY(var(--scroll-y, 0)) rotate(-45deg); }

.star-top-right {
    top: -40px;
    right: -40px;
    transform: rotate(15deg);
}

.arrow-bottom-left {
    bottom: -30px;
    left: -30px;
    transform: rotate(-10deg);
}

.doodle-top-left {
    top: -30px;
    left: -30px;
    transform: rotate(-15deg);
}

.doodle-bottom-right {
    bottom: -30px;
    right: -30px;
    transform: rotate(10deg);
}

.doodle-center-right {
    top: 50%;
    right: -40px;
    transform: translateY(-50%) rotate(5deg);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legal-content ul {
    padding-left: 40px;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 3px solid var(--text-color);
    margin-top: 60px;
    font-family: 'Architects Daughter', cursive;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .btn { display: block; width: 100%; margin-bottom: 15px; }
    .btn-secondary { margin-left: 0; }
    nav { flex-direction: column; gap: 15px; }
    .nav-links a { margin: 0 10px; }
}