/* ========================================
   MeGo Mind — AI Life Assistant
   Main stylesheet
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: #334155;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.site-header .logo {
    color: white;
}

.site-header .logo-text strong {
    color: var(--primary-light);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text strong {
    color: var(--primary);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
    color: white;
}

.primary-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--surface);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--surface);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    overflow: hidden;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero h1 strong {
    color: var(--primary);
}

.lead {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-trust li {
    margin-bottom: 0.5rem;
}

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    background: var(--text);
    border-radius: 36px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
}

.mockup-header {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mockup-header .dot {
    width: 8px;
    height: 8px;
    background: #334155;
    border-radius: 50%;
}

.mockup-body {
    background: var(--surface);
    border-radius: 24px;
    padding: 1rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mockup-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    max-width: 85%;
}

.mockup-message.ai {
    background: #334155;
    align-self: flex-start;
    display: flex;
    gap: 0.5rem;
}

.mockup-message.user {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    align-self: flex-end;
}

.mockup-message p {
    margin: 0;
}

.mockup-input {
    margin-top: auto;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border-radius: 9999px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Social proof */
.social-proof {
    padding: 2rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* Features */
.features-section {
    background: var(--bg);
}

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

.features-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card.wide {
    grid-column: 1 / -1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-icon-img {
    width: 100%;
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* How it works */
.how-it-works {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Waitlist */
.waitlist {
    background: var(--surface);
}

.waitlist-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius);
    padding: 4rem;
    color: white;
    text-align: center;
}

.waitlist-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.waitlist-box p {
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.waitlist-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    outline: none;
    background: var(--surface);
    color: var(--text);
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.waitlist-form input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.waitlist-form .btn {
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.form-note {
    font-size: 0.85rem;
    opacity: 0.9;
}

.form-note a {
    color: white;
    text-decoration: underline;
}

/* Testimonials */
.why-section {
    background: var(--bg);
}

/* FAQ */
.faq {
    background: var(--surface);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA sections */
.cta-section,
.final-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.cta-section h2,
.final-cta h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.site-footer a {
    color: #e2e8f0;
}

.site-footer a:hover {
    color: var(--primary-light);
}

.site-footer h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-location {
    margin-top: 1rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.9rem;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Feature detail page */
.feature-detail {
    background: var(--bg);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-label {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.feature-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-block p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.feature-block ul {
    color: var(--text-secondary);
}

.feature-block li {
    margin-bottom: 0.5rem;
}

.feature-block-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image {
    max-width: 100%;
    max-height: 260px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.feature-block:last-child .feature-image {
    max-height: 180px;
}

.feature-block:hover .feature-image {
    transform: scale(1.02);
}

.mini-mockup {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
}

.chat-bubble {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.chat-bubble.ai {
    background: var(--surface);
    border-left: 3px solid var(--primary);
}

.chat-bubble.user {
    background: var(--primary);
    color: white;
}

.mini-mockup.calendar .calendar-header {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.calendar-event,
.calendar-task {
    padding: 0.5rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calendar-event.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.calendar-task.done {
    text-decoration: line-through;
    color: var(--text-muted);
}

.mini-mockup.note h4 {
    margin-bottom: 0.5rem;
}

.mini-mockup.note p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.habit-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.streak {
    color: var(--warning);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 9999px;
    overflow: hidden;
    margin: 1rem 0 0.5rem;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, var(--secondary) 100%);
    border-radius: 9999px;
}

.analytics {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 160px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
    position: relative;
    opacity: 0.7;
}

.chart-bar.highlight {
    background: var(--primary);
    opacity: 1;
}

.chart-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.voice {
    text-align: center;
}

.voice-wave {
    display: inline-block;
    width: 8px;
    height: 40px;
    background: var(--primary);
    border-radius: 9999px;
    margin: 0 4px;
    animation: wave 1s ease-in-out infinite;
}

.voice-wave:nth-child(2) { animation-delay: 0.1s; height: 60px; }
.voice-wave:nth-child(3) { animation-delay: 0.2s; height: 30px; }
.voice-wave:nth-child(4) { animation-delay: 0.3s; height: 50px; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1); }
}

/* About page */
.about-story,
.why-australia {
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.values-list strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.values-list p {
    margin: 0;
    color: var(--text-secondary);
}

.mission-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
}

.mission-box {
    max-width: 800px;
    margin: 0 auto;
}

.mission-box h2 {
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact page */
.contact-section {
    background: var(--bg);
}

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

.contact-methods {
    list-style: none;
    padding: 0;
}

.contact-methods li {
    margin-bottom: 1.5rem;
}

.contact-methods strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-methods a {
    display: block;
}

.contact-methods address {
    font-style: normal;
    color: var(--text-secondary);
}

.contact-hours {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.contact-form-wrapper {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--surface);
    color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.faq-mini {
    background: var(--surface);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Legal pages */
.legal-content {
    background: var(--surface);
    padding-bottom: 6rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content address {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    font-style: normal;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner,
    .feature-block,
    .feature-block.reverse,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid.three-col,
    .steps,
    .testimonial-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    body {
        font-size: 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .phone-mockup {
        width: 260px;
        transform: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        align-items: flex-start;
    }

    .primary-nav.open {
        transform: translateX(0);
    }

    .primary-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .primary-nav a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 3rem 0;
    }

    .section-header h2,
    .cta-section h2,
    .final-cta h2 {
        font-size: 1.75rem;
    }

    .waitlist-box {
        padding: 2rem 1.5rem;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .feature-block {
        padding: 1.5rem;
    }

    .feature-block h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }
}
