/* ProTecht Design System */
:root {
    /* Color Palette */
    --bg-primary: #0a0a0a;
    /* Deep black/charcoal */
    --bg-secondary: #111111;
    /* Slightly lighter for contrast */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    /* Soft gray */
    --accent-blue: #3b82f6;
    /* Muted electric blue - very sparing */
    --accent-green: #4ade80;
    /* Soft neon green - very sparing */
    --border-subtle: #27272a;

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Animation */
    --transition-slow: 0.5s ease;
    --transition-fast: 0.2s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utility */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    /* Larger buttons */
    font-size: 1.1rem;
    /* Larger text */
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.btn-text {
    color: var(--text-secondary);
    padding: 0;
}

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


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 1.2rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.nav-cta {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 4rem;
    /* offset for nav */
}

/* Abstract Background Shapes */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: 10%;
    left: 20%;
    animation: float 20s infinite ease-in-out;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--text-secondary);
    /* White/Gray glow */
    bottom: -10%;
    right: 10%;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -50px);
    }
}

.hero-content {
    max-width: 100%;
    /* Allow full use of container */
    z-index: 1;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4rem;
    /* Restored large size */
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    white-space: normal;
    /* Allow wrapping to prevent cutoff */
    word-wrap: break-word;
    /* Ensure valid break */
    padding: 0 1rem;
    max-width: 100%;
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
        /* Slightly smaller only on mobile to prevent extreme stacking */
    }
}

@media (max-width: 1300px) {
    .hero-title {
        white-space: normal;
        /* Allow wrap on smaller screens */
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 2rem;
    /* Significantly larger */
    color: var(--text-primary);
    /* brighter for meaningful subhead */
    margin-bottom: 1.5rem;
    font-weight: 500;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-supporting {
    font-size: 1.25rem;
    /* Larger */
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    /* More space between buttons */
    justify-content: center;
}

/* Sections General */
.section-title {
    font-size: 3rem;
    /* Larger section titles */
    margin-bottom: 1.5rem;
}

.section-copy {
    color: var(--text-secondary);
    font-size: 1.35rem;
    /* Larger body copy */
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards */
    gap: 4rem;
    /* More gap */
    margin-top: 4rem;
}

/* Belief Section */
.belief-section {
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

/* Approach Section (3 Pillars) */
#approach {
    position: relative;
    z-index: 1;
}

.pillar-card {
    background: var(--bg-secondary);
    padding: 3rem;
    /* More padding */
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: border-color var(--transition-fast);
}

.pillar-card:hover {
    border-color: var(--text-secondary);
}

.pillar-title {
    font-size: 1.5rem;
    /* Larger title */
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pillar-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    /* Larger desc */
}

/* Who It's For */
.audience-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
}

/* Principles Redesign */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
    /* Ensure cards on the same row can share height context if needed, though we will handle height manually for the primary differentiator */
    justify-content: center;
}

.principle-card {
    padding: 3rem 2.5rem;
    /* Increased internal padding for breathing room */
    border-radius: 12px;
    /* Consistent radius for standard cards */
    position: relative;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    height: 100%;
    /* Fill the grid cell */
    border: 1px solid transparent;
    /* Prepare for border */
}

/* Card 1: TIME (Primary: Pill, Glow, Elevated) */
.card-time {
    background: var(--bg-secondary);
    border-radius: 120px;
    /* Distinct pill shape */
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.3);
    /* Subtle glow/shadow */
    z-index: 2;
    /* Sit close to top */
    padding: 5rem 3rem;
    /* Taller and tighter width feel */
    text-align: center;
    transform: scale(1.05);
    /* Make it naturally slightly larger */
    margin: 0 auto;
    /* Center in its grid cell */
    max-width: 360px;
    /* Slightly reduced width constraint for pill shape */
}

.card-time:hover {
    box-shadow: 0 20px 50px -10px rgba(59, 130, 246, 0.4);
    transform: scale(1.08);
    /* Enhance interactivity */
}

.card-time .pillar-title {
    color: var(--accent-blue);
    font-size: 1.85rem;
    /* Slightly larger for hierarchy */
    margin-bottom: 1.5rem;
}

/* Secondary Cards (Trust, Continuity) */
.card-trust,
.card-continuity {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-trust:hover,
.card-continuity:hover {
    border-color: var(--text-secondary);
    transform: translateY(-5px);
}

/* Card 4: COST (Extreme Right - Lean/Compressed) */
.card-cost {
    background: rgba(255, 255, 255, 0.01);
    /* Very low fill opacity */
    border: 1px solid var(--text-secondary);
    /* Defined thin border */
    border-radius: 8px;
    /* Slightly sharp */
    box-shadow: none;
    /* No glow */
    max-width: 320px;
    /* Slightly narrower than the time card (which is ~360px max) */
    margin: 0 auto;
    /* Center in grid cell */
    padding: 3rem 2rem;
}

.card-cost:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--text-primary);
}

.card-cost .pillar-title {
    font-size: 1.4rem;
    /* Slightly smaller/tighter */
    color: var(--text-primary);
}


/* Responsive adjustments */
@media (max-width: 1200px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid */
    }

    .card-time {
        grid-column: span 2;
        /* Center the primary card on top */
        transform: scale(1);
        margin-bottom: 2rem;
    }
}

@media (max-width: 700px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }

    .card-time {
        grid-column: span 1;
        border-radius: 2rem;
        /* Reduce pill radius on mobile */
        padding: 3rem 2rem;
    }
}

/* Form States and Validation */
.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.25em;
    /* Prevent jumpiness */
    opacity: 0;
    transition: opacity 0.2s;
}

.error-message.visible {
    opacity: 1;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Loading Spinner */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Allow text button centered flex */
#submitBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* About Page Specifics */
.about-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.mission-statement {
    font-size: 2rem;
    line-height: 1.4;
    max-width: 900px;
    margin: 4rem auto;
    text-align: center;
    color: var(--text-primary);
}

/* Contact Page Specifics */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 6rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    color: var(--text-primary);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Product Roadmap Section */
.roadmap-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #171717 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding-top: var(--spacing-lg); /* Reduced top padding */
    padding-bottom: var(--spacing-xl);
}

.roadmap-label {
    color: #a78bfa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1rem;
}

.roadmap-card-pilot {
    text-align: left;
    background: rgba(59, 130, 246, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
    min-width: 250px;
    max-width: 400px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Hide for now, can add hamburger later if needed */
    }

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