/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design System - CSS Custom Properties */
:root {
    /* Swiss-style color system: calm, professional, minimal */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(215, 25%, 10%);

    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(215, 25%, 10%);

    /* Deep ocean blue - primary brand color */
    --primary: hsl(210, 55%, 25%);
    --primary-foreground: hsl(0, 0%, 98%);

    /* Muted sand/beige - accent color */
    --accent: hsl(35, 25%, 70%);
    --accent-foreground: hsl(215, 25%, 10%);

    --muted: hsl(210, 15%, 96%);
    --muted-foreground: hsl(215, 15%, 45%);

    --border: hsl(210, 15%, 90%);
    --input: hsl(210, 15%, 90%);

    /* Custom tokens for Swiss design */
    --text-subtle: hsl(215, 15%, 50%);
    --card-border: hsl(210, 15%, 88%);

    --radius: 0.25rem;

    /* Spacing */
    --container-max-width: 72rem;
    --container-padding: 1.5rem;
}

/* Typography */
body {
    /*font-family: 'Inter', system-ui, -apple-system, sans-serif;*/
    font-family:
        "Google Sans Flex",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 800;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.875rem;
    }
}

p {
    line-height: 1.625;
}

/* Containers */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-title {
    font-weight: 900;
    color: var(--foreground);
    letter-spacing: -0.025em;
    font-size: 1.25rem;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--text-subtle);
    font-weight: 700;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    opacity: 0.9;
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Prototype Mockup */
.prototype-card {
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background-color: var(--card);
    overflow: hidden;
}

.prototype-header {
    background-color: hsla(210, 55%, 25%, 0.05);
    border-bottom: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prototype-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prototype-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--primary);
}

.prototype-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.prototype-badge {
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.prototype-chat {
    padding: 1rem;
    background-color: rgba(249, 250, 251, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Messages */
.message-user-wrapper {
    display: flex;
    justify-content: flex-end;
}

.message-user {
    background-color: hsla(210, 55%, 25%, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    max-width: 85%;
}

.message-text {
    font-size: 0.875rem;
    color: var(--foreground);
}

.message-ai-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Response Card */
.response-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.response-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.response-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--foreground);
}

.response-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

.response-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(22, 163, 74);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
}

.badge-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: rgb(34, 197, 94);
}

/* Route Box */
.route-box {
    background-color: rgba(210, 237, 247, 0.3);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.route-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.route-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    flex-wrap: wrap;
}

.route-point {
    color: var(--foreground);
}

/* Days List */
.days-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.day-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.day-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius);
    background-color: hsla(210, 55%, 25%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    flex-shrink: 0;
}

.day-route {
    color: var(--foreground);
    flex: 1;
}

.day-distance {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

/* Info Pills */
.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background-color: rgba(210, 237, 247, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Sources */
.sources {
    font-size: 0.75rem;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.source-link {
    color: hsla(210, 55%, 25%, 0.7);
}

/* Prototype Input */
.prototype-input {
    border-top: 1px solid var(--card-border);
    padding: 0.75rem 1rem;
    background-color: var(--card);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(210, 237, 247, 0.3);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
}

.input-placeholder {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    flex: 1;
}

.input-button {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius);
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.input-button svg {
    color: var(--primary-foreground);
}

/* Icons */
.icon {
    width: 1rem;
    height: 1rem;
}

.icon-sm {
    width: 0.75rem;
    height: 0.75rem;
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tech-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Image Section */
.image-section {
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .image-section {
        margin-bottom: 6rem;
    }
}

.image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.about-section {
    background-color: var(--muted);
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .about-section {
        padding: 6rem 0;
    }
}

.about-section h2 {
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.positioning-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: var(--radius);
}

.positioning-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-subtle);
    margin-bottom: 0.75rem;
}

.positioning-text {
    font-size: 1rem;
    line-height: 1.625;
    color: var(--foreground);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .features-section {
        padding: 6rem 0;
    }
}

.features-section h2 {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    max-width: 42rem;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.feature-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: hsla(210, 55%, 25%, 0.5);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

/* Who Section */
.who-section {
    background-color: var(--muted);
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .who-section {
        padding: 6rem 0;
    }
}

.who-section h2 {
    margin-bottom: 3rem;
}

.who-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .who-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.who-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.who-item {
    display: flex;
    flex-direction: column;
}

.who-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.who-item p {
    font-size: 1rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.who-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.who-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Technology Section */
.technology-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .technology-section {
        padding: 6rem 0;
    }
}

.technology-section h2 {
    margin-bottom: 1.5rem;
}

.technology-section .section-subtitle {
    max-width: 48rem;
    margin-bottom: 2.5rem;
}

.tech-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-item {
    display: flex;
    gap: 1rem;
}

.tech-content {
    flex: 1;
}

.tech-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tech-item p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.625;
}

/* Newsletter Section */
.newsletter-section {
    background-color: hsla(210, 55%, 25%, 0.05);
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .newsletter-section {
        padding: 5rem 0;
    }
}

.newsletter-section h2 {
    margin-bottom: 1rem;
}

.newsletter-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 28rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-input::placeholder {
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-subtle);
}

.footer-copyright {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 8em;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-note {
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-align: center;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-note {
        text-align: left;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
