/* Resilience Enterprises - Main Stylesheet */

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

:root {
    --bg: #000;
    --surface: #0a0a0f;
    --primary: #2563eb;
    --accent: #dc2626;
    --text: #fff;
    --text-dim: #a1a1aa;
    --text-muted: #71717a;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; line-height: 1.2; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Glass effect */
.glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: all 0.4s ease;
}
.glass:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 12.5vh;
}
.logo {
    height: 100%;
    display: flex;
    align-items: center;
}
.logo img {
    height: 18vh;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}
.btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 10000;
}
.skip-link:focus {
    top: 0;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 25s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -40px); }
}
.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -10%;
    left: -10%;
}
.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    margin-bottom: 1.5rem;
}
.gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.7;
}
.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}
.stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}
.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Sections */
.section { padding: 6rem 0; }
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-tag {
    display: inline-block;
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}
.subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About/Story */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.story-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.story-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}
.story-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.story-point {
    display: flex;
    gap: 1rem;
    align-items: start;
}
.point-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.point-text strong {
    display: block;
    margin-bottom: 0.5rem;
}
.point-text p {
    color: var(--text-dim);
    margin: 0;
    font-size: 1rem;
}

/* Industries */
.industries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.industry-card {
    padding: 2rem;
}
.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.industry-card ul {
    list-style: none;
}
.industry-card li {
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}
.industry-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.service {
    padding: 2.5rem;
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.service h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.service ul {
    list-style: none;
}
.service li {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.service li:before {
    content: "• ";
    color: var(--primary);
}

/* Process */
.process-steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.process-step {
    padding: 2.5rem;
    position: relative;
}
.step-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}
.process-step h3 {
    margin-left: 70px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.process-step p {
    margin-left: 70px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.outcome {
    margin-left: 70px;
    padding: 1rem;
    background: rgba(37,99,235,0.1);
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
}
.highlighted {
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(37,99,235,0.2);
}

/* Case Studies */
.case-study {
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.case-header {
    margin-bottom: 2rem;
}
.case-tag {
    display: inline-block;
    background: rgba(139,92,246,0.1);
    color: #a78bfa;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.case-study h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.case-study .subtitle {
    text-align: left;
    margin: 0;
}
.solutions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.solution {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 16px;
}
.solution strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.result {
    text-align: center;
    padding: 1.5rem;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 16px;
}
.result-num {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.result-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.result-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}
blockquote {
    background: rgba(255,255,255,0.03);
    border-left: 4px solid #a78bfa;
    padding: 1.5rem;
    border-radius: 12px;
    font-style: italic;
    color: var(--text-dim);
    margin-top: 2rem;
}
cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
}
.price-tag {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}
.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.price-detail {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
}
.pricing-features li {
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}
.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 0 40px rgba(37,99,235,0.3);
    transform: scale(1.05);
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1.5rem;
    padding: 2rem;
}
.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.faq-item p {
    color: var(--text-dim);
    line-height: 1.8;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-icon {
    font-size: 1.5rem;
}
.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
}
.contact-item a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.15rem;
    transition: color 0.3s;
}
.contact-item a:hover {
    color: var(--primary);
}
form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 24px;
}
form h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.07);
}
textarea {
    resize: vertical;
    min-height: 120px;
}
button {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}
button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand img {
    height: 200px;
    margin-bottom: 1.5rem;
    filter: invert(1) brightness(2);
}
.footer-brand p {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer-column a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}
.footer-column a:hover {
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-legal {
    display: flex;
    gap: 2rem;
}
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-legal a:hover {
    color: var(--text);
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .story-grid, .contact-grid, .solutions, .footer-grid {
        grid-template-columns: 1fr;
    }
    .cta-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Form Loading State (Optional Enhancement) */
button[type="submit"]:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

button[type="submit"]:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Form validation feedback */
input:invalid:not(:focus):not(:placeholder-shown),
textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--accent);
}

input:valid:not(:focus):not(:placeholder-shown),
textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981; /* Green */
}
