:root {
    --bg-dark: #282828;
    --bg-medium: #302926;
    --fg-light: #ebdbb2;
    --accent: #b8bb26;
    --accent-hover: #98971a;
    --text-dark: #1d2021;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--fg-light);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1d2021 100%);
    background-attachment: fixed;
}

/* Navigation */
header {
    background: rgba(48, 41, 38, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(235, 219, 178, 0.1);
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(235, 219, 178, 0.15);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playwrite AU QLD', sans-serif;
    font-size: 2rem;
    color: #fb4934;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(251, 73, 52, 0.3);
    transition: transform 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(184, 187, 38, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ebdbb2 0%, #d5c4a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Chat Preview */
.chat-preview {
    background: linear-gradient(135deg, rgba(29, 32, 33, 0.95) 0%, rgba(40, 40, 40, 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: inset 0 3px 15px var(--shadow), 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(235, 219, 178, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
}

.chat-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.message {
    padding: 0.5em 1em;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 1rem;
    white-space: pre-wrap;
    text-align: left;
    animation: slideIn 0.5s ease-out backwards;
    transform-origin: left center;
}

.message:nth-child(1) { animation-delay: 0.1s; }
.message:nth-child(2) { animation-delay: 0.3s; }
.message:nth-child(3) { animation-delay: 0.5s; }
.message:nth-child(4) { animation-delay: 0.7s; }

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

.message.user {
    background: linear-gradient(135deg, #98971a 0%, #b8bb26 100%);
    color: #1d2021;
    align-self: flex-end;
    box-shadow: 0 4px 20px rgba(184, 187, 38, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    font-weight: 500;
}

.message.bot {
    background: linear-gradient(135deg, #3c3836 0%, #35302d 100%);
    color: #ebdbb2;
    align-self: flex-start;
    border-left: 4px solid #888145;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    box-shadow: inset 0 0 15px var(--shadow);
    padding: 6rem 2rem;
    background: var(--bg-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(184, 187, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 73, 52, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(48, 41, 38, 0.6) 0%, rgba(40, 40, 40, 0.8) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(184, 187, 38, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(184, 187, 38, 0.2);
    border-color: rgba(184, 187, 38, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateY(10deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #d1d32e;
}


/* Problem Solution Section */
.problem-solution {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-medium) 0%, rgba(40, 40, 40, 0.95) 100%);
    position: relative;
}

.problem-solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(184, 187, 38, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(251, 73, 52, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.problem-solution .content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.problem-solution h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent) 0%, #d1d32e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.research-citation {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(184, 187, 38, 0.05) 0%, rgba(184, 187, 38, 0.02) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    position: relative;
}

.research-citation::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.research-citation blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
}

.research-citation cite {
    opacity: 0.8;
    font-size: 0.9rem;
    display: block;
    margin-top: 1rem;
}

.problem-solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.problem, .solution {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(29, 32, 33, 0.95) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(235, 219, 178, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.problem:hover, .solution:hover {
    border-color: rgba(184, 187, 38, 0.2);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.problem h3, .solution h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.problem h3::after, .solution h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.solution ul {
    list-style-type: none;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.solution ul li {
    position: relative;
    margin-bottom: 0.75rem;
}

.solution ul li::before {
    content: "→";
    color: var(--accent);
    position: absolute;
    left: -1.5rem;
}

.footnote {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .problem-solution-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .research-citation blockquote {
        font-size: 1.1rem;
    }

    .problem-solution {
        padding: 4rem 1.5rem;
    }
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #d1d32e 100%);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(184, 187, 38, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 6px 20px rgba(184, 187, 38, 0.5), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* CTA Section */
.cta {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(48, 41, 38, 0.9) 0%, rgba(40, 40, 40, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 187, 38, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, #ebdbb2 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    opacity: 0.9;
    position: relative;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, #d1d32e 100%);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(184, 187, 38, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #d1d32e 0%, var(--accent) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(184, 187, 38, 0.5), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(184, 187, 38, 0.4), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(184, 187, 38, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
    }
    50% {
        box-shadow: 0 4px 20px rgba(184, 187, 38, 0.5), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
    }
}

.hero .cta-button {
    animation: pulse 2s ease-in-out infinite;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(29, 32, 33, 0.8) 0%, rgba(40, 40, 40, 0.95) 100%);
    color: var(--fg-light);
    border-top: 1px solid rgba(184, 187, 38, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

footer p {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .feature-grid, .steps {
        grid-template-columns: 1fr;
    }

    .message {
        max-width: 90%;
    }

    .cta-button {
        padding: 0.45rem 0.5rem;
        font-size: 1rem;
        border-radius: 6px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    animation: scaleIn 0.8s ease-out 0.2s backwards;
}

.feature-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.step {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth transitions for all interactive elements */
a, button, .feature-card, .message, .cta-button {
    -webkit-tap-highlight-color: transparent;
}

/* Focus states for accessibility */
a:focus-visible, button:focus-visible, .cta-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Selection styling */
::selection {
    background-color: var(--accent);
    color: var(--text-dark);
}

::-moz-selection {
    background-color: var(--accent);
    color: var(--text-dark);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
