/* Typalock Landing Page Styles - Clean Minimal Design */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-muted: #737373;
    --border-color: #e5e5e5;
    --card-bg: rgba(255, 255, 255, 0.6);
    --backdrop-blur: blur(8px);

    /* Brand colors */
    --accent-orange: #f97316;
    --accent-primary: #171717;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Dark theme */
.dark {
    --bg-primary: #171717;
    --bg-secondary: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border-color: #404040;
    --card-bg: rgba(38, 38, 38, 0.6);
    --accent-primary: #ffffff;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-primary);
    transition: background-color var(--transition-slow);
}

body {
    font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
    cursor: none; /* Custom cursor will handle this */
}

/* Interactive elements carry a native cursor (links/buttons = pointer,
   inputs = text) that the browser paints ON TOP of our custom dot. Force
   them to `none` so the dot is the only cursor on hover. */
a,
button,
input,
textarea,
select,
label,
summary,
[role="button"] {
    cursor: none;
}

/* Fallback cursor for touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto !important;
    }
    * {
        cursor: auto !important;
    }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-bar-container {
    width: 16rem;
    height: 0.25rem;
    background-color: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 9999px;
    transition: width 0.1s ease-out;
    width: 0%;
}

.main-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content:not(.hidden) {
    opacity: 1;
}

.hidden {
    opacity: 0;
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    background-color: #000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    opacity: 0;
}

.dark .custom-cursor {
    background-color: #fff;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(1.5);
}

/* ===== DARK HUES BACKGROUND ===== */
.dark-hues {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dark .dark-hues {
    opacity: 1;
}

/* Three soft blue->indigo->violet orbs that slowly drift to create a calm
   "aurora" glow. Only transform/scale is animated (compositor-only, no
   per-frame repaint); the blur is applied once and never animated. */
.dark-hues::before,
.dark-hues::after {
    content: '';
}

.dark-hues::before,
.dark-hues::after,
.dark-hues .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(3.5rem);
    will-change: transform;
}

/* Orb 1 — brand blue, top-right */
.dark-hues::before {
    top: -6rem;
    right: -6rem;
    width: 70vmax;
    height: 70vmax;
    background: radial-gradient(45% 45% at 70% 30%, #3b82f6 0%, transparent 65%);
    opacity: 0.26;
    animation: orb-drift-a 30s ease-in-out infinite alternate;
}

/* Orb 2 — violet, bottom-left */
.dark-hues::after {
    bottom: -10rem;
    left: -8rem;
    width: 80vmax;
    height: 80vmax;
    background: radial-gradient(40% 40% at 30% 70%, #7c3aed 0%, transparent 65%);
    opacity: 0.22;
    animation: orb-drift-b 40s ease-in-out -6s infinite alternate;
}

/* Orb 3 — indigo bridge, mid-screen (real child element) */
.dark-hues .orb {
    top: 30%;
    left: 22%;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(50% 50% at 50% 50%, #6366f1 0%, transparent 68%);
    opacity: 0.18;
    animation: orb-drift-c 34s ease-in-out -12s infinite alternate;
}

@keyframes orb-drift-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6%, 5%, 0) scale(1.15); }
}

@keyframes orb-drift-b {
    from { transform: translate3d(0, 0, 0) scale(1.05); }
    to   { transform: translate3d(-7%, -4%, 0) scale(1); }
}

@keyframes orb-drift-c {
    from { transform: translate3d(0, 0, 0) scale(0.95); }
    to   { transform: translate3d(5%, -6%, 0) scale(1.1); }
}

/* Calm the effect on small screens: drop the third orb, lighten the blur */
@media (max-width: 640px) {
    .dark-hues::before,
    .dark-hues::after {
        filter: blur(2rem);
    }
    .dark-hues .orb {
        display: none;
    }
}

/* Freeze all drift for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dark-hues::before,
    .dark-hues::after,
    .dark-hues .orb {
        animation: none !important;
    }
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== TYPOGRAPHY ===== */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.section-description {
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.05);
}

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

.dark .btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.dark .btn-secondary {
    border-color: var(--border-color);
}

.dark .btn-secondary:hover {
    background-color: var(--bg-secondary);
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    backdrop-filter: blur(8px) saturate(160%);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.dark .navbar {
    background-color: rgba(23, 23, 23, 0.7);
}

/* Slightly more solid once the page is scrolled (toggled via JS) */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.82);
}

.dark .navbar.scrolled {
    background-color: rgba(23, 23, 23, 0.95);
}

.navbar .container {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    height: 2rem;
}

.light-logo {
    display: block;
}

.dark-logo {
    display: none;
}

.dark .light-logo {
    display: none;
}

.dark .dark-logo {
    display: block;
}

.navbar-menu {
    display: none;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.navbar-nav a:hover {
    opacity: 1;
    color: var(--text-primary);
}

.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-primary);
    cursor: none;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.btn-secondary {
    display: none;
}

@media (min-width: 640px) {
    .btn-secondary {
        display: inline-flex;
        padding: 0.5rem 1rem;
    }
}

.btn-primary {
    padding: 0.5rem 1rem;
}

/* ===== SECTION SEPARATOR ===== */
.section-separator {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0 7rem;
    position: relative;
}

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

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

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

.hero-title {
    margin-top: 0.75rem;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-stats {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .hero-stats {
        justify-content: space-between;
    }
}

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

.stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 2.25rem;
    }
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image {
    display: none;
}

@media (min-width: 768px) {
    .hero-image {
        display: block;
    }
}

.focus-spaces-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.focus-spaces-image {
    max-width: 100%;
    height: auto;
    width: 20rem;
    border-radius: 1.5rem;
    border: 3px solid var(--border-color);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.focus-spaces-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .focus-spaces-image {
        width: 25rem;
    }
}

@media (min-width: 1024px) {
    .focus-spaces-image {
        width: 30rem;
    }
}

/* ===== CARD TITLE / DESCRIPTION (shared by updates cards) ===== */
.card-title {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.card-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 4rem 0;
}

.section-header {
    max-width: 48rem;
}

.features-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.feature-card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
}

.feature-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 0.75rem;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.projects-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    transition: all var(--transition-normal);
    cursor: none;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image-actual {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    border-radius: 0.75rem 0.75rem 0 0;
}

.project-card:hover .project-image-actual {
    transform: scale(1.1);
}

.project-tag {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--backdrop-blur);
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.project-card:hover .project-tag {
    background-color: rgba(255, 255, 255, 0.9);
}

.dark .project-tag {
    background-color: rgba(23, 23, 23, 0.7);
    color: var(--text-primary);
}

.dark .project-card:hover .project-tag {
    background-color: rgba(23, 23, 23, 0.9);
}

.project-content {
    padding: 1rem;
}

.project-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.project-description {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.project-meta {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    padding: 4rem 0;
}

.steps-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.step-card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.5rem;
}

.step-number {
    height: 1.75rem;
    width: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.step-title {
    margin-top: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.step-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===== APP SECTION ===== */
.app-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-title {
    margin-top: 0.5rem;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.app-description {
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

.app-badges {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
}

.app-preview {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    height: auto;
    background-color: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.app-preview-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

/* ===== UPDATES SECTION ===== */
.updates-section {
    padding: 4rem 0;
}

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

@media (min-width: 768px) {
    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.newsletter-card,
.timeline-card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.5rem;
}

/* ===== FORMS ===== */
.newsletter-form,
.contact-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-input,
.form-textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.form-textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.125rem;
    accent-color: var(--text-primary);
    cursor: none;
}

.consent-fineprint {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0.5rem 0 0;
}

.consent-fineprint a {
    color: inherit;
    text-decoration: underline;
}

.form-status {
    font-size: 0.875rem;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}

/* ===== TIMELINE ===== */
.timeline-list {
    margin-top: 0.75rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.timeline-date {
    height: 1.5rem;
    width: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    font-size: 0.6875rem;
    flex-shrink: 0;
}

.timeline-title {
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.faq-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.5rem;
}

.faq-question {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.faq-answer {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info {
    display: block;
}

@media (max-width: 767px) {
    .contact-info {
        display: block;
    }
}

.contact-title {
    margin-top: 0.5rem;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.contact-description {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    max-width: 36rem;
}

.contact-methods {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-method i {
    width: 1rem;
    flex-shrink: 0;
}

.contact-form-card {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: var(--backdrop-blur);
    padding: 1.5rem;
}

.form-card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Extra breathing room above the email CTA in the contact card */
.contact-form-card .btn-primary {
    margin-top: 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-logo .logo {
    height: 3rem;
    /* The footer logo asset (logo_white_tm.png) is white line-art, so it
       vanishes on the light background. Tint it black in light mode and
       leave it white in dark mode so it stays visible on either page color. */
    filter: brightness(0);
    transition: filter var(--transition-slow);
}

.dark .footer-logo .logo {
    filter: none;
}

.footer-description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links-title {
    font-weight: 500;
    color: var(--text-primary);
}

.footer-links-list {
    margin-top: 0.75rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links-list a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Initial state for animated elements */
.feature-card, .project-card, .step-card, .faq-card, .contact-form-card, .newsletter-card, .timeline-card {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: none;
    will-change: transform, opacity;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Apply initial animations */
.navbar {
    animation: slideDown 0.3s ease-out;
}

.hero {
    animation: fadeInUp 0.6s ease-out 200ms both;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0 4rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .navbar-buttons .btn-secondary {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .custom-cursor {
        display: none !important;
    }

    /* Custom dot is hidden here, so restore native cursors everywhere
       (otherwise links/inputs would have no visible cursor at all). */
    * {
        cursor: auto !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-muted: #333333;
    }
    
    .dark {
        --border-color: #ffffff;
        --text-muted: #cccccc;
    }
}