/* ================================
   Reset and Base Styles
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Krameff Brand Colors */
    --primary-color: #1a1f3a;        /* Deep navy from logo */
    --primary-dark: #0a0e1a;         /* Almost black background */
    --secondary-color: #e91e8c;      /* Vibrant magenta */
    --accent-color: #8b5cf6;         /* Purple accent */
    --accent-light: #a78bfa;         /* Light purple */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    
    /* Background Colors - Less White! */
    --bg-white: #ffffff;                    /* Keep for cards only */
    --bg-off-white: #fafbfc;                /* Main page background */
    --bg-warm-white: #fefbfb;                /* Sections with pink tint */
    --bg-cool-white: #f5f6f8;               /* Sections with blue tint */
    --bg-light: #f8f9fb;                    /* Your existing light */
    --bg-section-alt: #faf9fc;              /* Purple tint */
    --bg-magenta-tint: #fef5fb;              /* Magenta wash */
    --bg-dark: #0f1419;                     /* Dark background sections */
    
    /* Borders */
    --border-color: #e5e7eb;
    --border-light: rgba(139, 92, 246, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a1f3a 0%, #0a0e1a 100%);
    --gradient-accent: linear-gradient(135deg, #e91e8c 0%, #8b5cf6 100%);
    --gradient-section: linear-gradient(to bottom, #ffffff 0%, #f8f9fb 100%);
    --gradient-warm: linear-gradient(135deg, #fef5fb 0%, #faf9fc 100%);

    /* Spacing */
    --container-max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Bruno Ace', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-off-white);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ================================
   Typography
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
    position: relative;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.lead {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-light);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
}

ul li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
}

/* ================================
   Buttons
   ================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d11a7c 0%, #7c3aed 100%);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--gradient-accent);
    color: var(--bg-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.4);
}

/* ================================
   Header & Navigation
   ================================ */

.main-header {
    background: var(--gradient-primary);
    box-shadow: 0 2px 8px rgba(233, 30, 140, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo h1 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin: 0;
    color: var(--primary-color);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
}

.hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--bg-white);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: var(--spacing-sm) 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: var(--spacing-sm);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    transition: all 0.3s ease;
    min-height: 44px;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--gradient-accent);
    color: var(--bg-white);
}

/* ================================
   Hero Carousel
   ================================ */

.hero-carousel {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: flex;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 45vh;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-content h2 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
}

.hero-text {
    color: var(--bg-white);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto var(--spacing-md) auto;
}

.hero-citation {
    color: var(--bg-white);
    font-size: 0.875rem;
    opacity: 0.7;
    max-width: 800px;
    margin: -0.5rem auto var(--spacing-md) auto;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    z-index: 10;
}

.carousel-prev {
    left: var(--spacing-sm);
}

.carousel-next {
    right: var(--spacing-sm);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0 var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Touch-friendly - extends clickable area */
    min-width: 44px;
    padding: 16px;
}

.carousel-dot.active {
    background-color: var(--bg-white);
}

/* ================================
   Page Hero (for non-home pages)
   ================================ */

.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

.page-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* ================================
   Sections
   ================================ */

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

.welcome-section,
.who-we-are,
.services-content,
.about-content,
.contact-content {
    background-color: var(--bg-white);
}

/* Utility section backgrounds — mirrors index.html alternating pattern */
.section-bg-tint  { background: var(--bg-magenta-tint); }
.section-bg-cool  { background: var(--bg-cool-white); }
.section-bg-warm  { background: var(--bg-warm-white); }
.section-bg-alt   { background: var(--bg-section-alt); }

.welcome-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: var(--bg-magenta-tint);
    position: relative;
}

.welcome-section article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(26, 31, 58, 0.08);
}

/* ================================
   Section Headers
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header .section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ================================
   Value Props Section
   ================================ */
.value-props-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.value-props-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.value-prop-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--gradient-section);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.15);
}

.value-prop-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.value-prop-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.who-we-are {
    background: var(--bg-warm-white);
}

.welcome-section h2,
.who-we-are h2,
.services-content h2,
.about-content h2,
.about-section h2,
.service-section h2,
.contact-content h2 {
    margin-bottom: var(--spacing-md);
}

/* ================================
   Challenges Grid
   ================================ */

.challenges-section {
    margin-top: var(--spacing-lg);
}

.challenges-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: 0;
}

.challenge-card {
    background: var(--gradient-section);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(26, 31, 58, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.2);
    border-left: 4px solid var(--secondary-color);
}

.challenge-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.challenge-card p {
    margin: 0;
}

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

.who-we-are .cta-section {
    margin-top: 20px;
}

.closing-text {
    text-align: center;
    font-size: 1.25rem;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-dark);
    font-weight: 500;
}

/* ================================
   Services Page
   ================================ */

.service-section {
    /* margin handled by section padding */
}

.service-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.challenges-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.challenge-item {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.challenge-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.cta-section {
    text-align: center;
    background: var(--gradient-primary);
    color: var(--bg-white);
}

.cta-section h2 {
    color: var(--bg-white);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

/* ================================
   About Page
   ================================ */

.about-section {
    margin-bottom: var(--spacing-xl);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.expertise-card {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    text-align: center;
}

.expertise-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.insights-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.insight-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    text-align: center;
}

.stat {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.insight-card p {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin: 0;
}

.insight-text {
    margin-top: var(--spacing-md);
    font-style: italic;
}

/* ================================
   Contact Page
   ================================ */

.contact-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.contact-card {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    text-align: center;
}

.contact-icon {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    margin: 0;
}

.contact-card a {
    font-weight: 600;
    font-size: 1.125rem;
}

.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: var(--bg-white);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    min-height: 44px; /* Touch-friendly */
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: var(--bg-off-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.15);
}

.contact-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* ================================
   Footer
   ================================ */

.main-footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.footer-section h3 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-section a {
    color: var(--bg-white);
    font-weight: 600;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.4);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ================================
   Tablet Styles (768px and up)
   ================================ */

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        box-shadow: none;
    }

    .main-nav ul {
        display: flex;
        gap: var(--spacing-sm);
        padding: 0;
    }

    .main-nav a {
        padding: var(--spacing-xs) var(--spacing-sm);
        color: var(--bg-white);
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: transparent;
        color: var(--bg-white);
        border-bottom: 2px solid var(--secondary-color);
    }

    .challenges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .challenges-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(3, 1fr);
    }

    .social-links {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ================================
   Desktop Styles (1024px and up)
   ================================ */

@media (min-width: 1024px) {
    section {
        padding: var(--spacing-xl) 0 calc(var(--spacing-xl) + var(--spacing-md)) 0;
    }

    .hero-content {
        padding: var(--spacing-xl);
        min-height: 53vh;
    }

    .challenges-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .value-props-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr 2fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Accessibility & Print
   ================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .main-header,
    .main-footer,
    .carousel-prev,
    .carousel-next,
    .carousel-dots,
    .btn {
        display: none;
    }
}

/* ================================
   Who We Work With Section
   ================================ */

.who-we-work-with {
    background: var(--bg-cool-white);
    padding: var(--spacing-xl) 0;
}

.who-we-work-with .section-header {
    margin-bottom: var(--spacing-xl);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    color: var(--text-light);
}

/* Industries Section */
.industries-section {
    margin-bottom: var(--spacing-xl);
}

.industries-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
    background: var(--gradient-section);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.15);
}

.industry-card strong {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

/* DevSecOps Section */
.devsecops-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl) 0;
    background: var(--bg-magenta-tint);
    border-radius: 0.75rem;
}

.devsecops-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
}

.devsecops-intro h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.75rem;
}

.devsecops-intro p {
    color: var(--text-dark);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

.devsecops-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.devsecops-feature {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(26, 31, 58, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.devsecops-feature h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.devsecops-feature p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Roles Section */
.roles-section {
    margin-top: var(--spacing-xl);
}

.roles-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.role-card {
    padding: var(--spacing-lg);
    background: var(--gradient-section);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.15);
}

.role-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.role-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Company Sizes Section */
.company-sizes-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-cool-white);
}

.company-sizes-section .section-header {
    margin-bottom: var(--spacing-lg);
}

.size-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.size-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 0.5rem;
    color: var(--bg-white);
}

.size-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.size-card p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1rem;
}

/* Tablet and above */
@media (min-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Desktop */
@media (min-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }

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

/* ================================
   Phase 1 UX Improvements
   ================================ */

/* CTA Group with Subtext */
.cta-group {
    text-align: center;
    margin-top: var(--spacing-md);
}

.cta-subtext {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-cool-white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
}

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

.faq-item {
    background: var(--gradient-section);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(26, 31, 58, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
    min-height: 44px;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: var(--spacing-sm);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ================================
   Header Logo Image
   ================================ */
.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .logo-img {
        height: 60px;
    }
}

/* ================================
   Partners Section
   ================================ */
.partners-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-cool-white);
    border-top: 3px solid var(--accent-light);
}

.partners-section .section-header {
    margin-bottom: var(--spacing-lg);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo {
    padding: var(--spacing-lg);
    background: var(--gradient-primary);
    border: 2px solid rgba(233, 30, 140, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(233, 30, 140, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.3);
    border-color: rgba(233, 30, 140, 0.4);
    background: linear-gradient(135deg, #1a1f3a 0%, #2a3f5a 100%);
}

.partner-logo:hover::before {
    opacity: 1;
}

.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.partner-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    filter: brightness(1.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}


/* ================================
   Hero Title (H1)
   ================================ */
.hero-title {
    color: var(--bg-white);
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ================================
   Form Inline Errors
   ================================ */
.form-error {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.form-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

/* ================================
   Footer Navigation
   ================================ */
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.footer-nav li {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

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

/* ================================
   Services — Featured Section
   ================================ */
.service-section--featured {
    background: var(--gradient-primary);
}

.service-section--featured h2 {
    color: var(--bg-white);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.service-section--featured p {
    color: rgba(255, 255, 255, 0.85);
}

.service-section--featured p strong {
    color: var(--bg-white);
}

.adoption-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 820px;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9) !important;
}

.adoption-carousel {
    margin-bottom: var(--spacing-xl);
}

.adoption-carousel-viewport {
    overflow: hidden;
    border-radius: 0.5rem;
    width: 100%;
}

.adoption-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.adoption-phase {
    flex: 0 0 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.adoption-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.adoption-prev,
.adoption-next {
    background: rgba(233, 30, 140, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.adoption-prev:hover,
.adoption-next:hover {
    background: var(--secondary-color);
}

.adoption-prev:disabled,
.adoption-next:disabled {
    opacity: 0.35;
    cursor: default;
}

.adoption-dots {
    display: flex;
    gap: 0.5rem;
}

.adoption-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.adoption-dot.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.phase-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.6;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.adoption-phase h3 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.adoption-phase p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.adoption-who {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.adoption-who h3 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.adoption-who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.adoption-who-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.adoption-who-item::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

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

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

/* ================================
   Services — Open Source Section
   ================================ */
.service-section--opensource {
    background: var(--bg-section-alt);
    border-top: 4px solid var(--accent-color);
}

.service-section--opensource h2 {
    border-bottom-color: var(--accent-color) !important;
}

.service-section--opensource a {
    color: var(--accent-color);
}

.service-section--opensource a:hover {
    color: var(--secondary-color);
}

.opensource-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.opensource-highlight {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    border-top: 3px solid var(--accent-color);
    text-align: center;
}

.opensource-highlight h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.opensource-highlight p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

/* ================================
   Services — Tools Grid
   ================================ */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.tool-category {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    border-top: 3px solid var(--secondary-color);
}

.tool-category h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.tool-category ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tool-category ul li {
    padding: 0.25rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.tool-category ul li:last-child {
    border-bottom: none;
}

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

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

/* ================================
   Services — Engagement Steps
   ================================ */
.engagement-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    counter-reset: step;
}

.engagement-step {
    padding: var(--spacing-lg);
    background: var(--gradient-section);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.engagement-step h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

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

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

/* ================================
   News Page
   ================================ */
.news-section {
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.news-card {
    background: var(--gradient-section);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.15);
}

.news-card-body {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.news-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    background: var(--gradient-accent);
    color: var(--bg-white);
}

.news-category--community {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.news-category--opensource {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.news-category--company {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 100%);
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.news-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

.news-card-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.news-empty {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 2px dashed var(--border-color);
}

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

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

/* ================================
   About — Team Cards
   ================================ */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.team-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    background: var(--gradient-section);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 31, 58, 0.08);
}

.team-photo {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.team-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.team-info {
    padding: var(--spacing-lg);
}

.team-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: var(--spacing-md) 0;
}

.team-expertise span {
    background: var(--bg-cool-white);
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.team-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.4);
}

.team-social svg {
    width: 18px;
    height: 18px;
}

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

    .team-photo {
        min-height: unset;
    }

    .team-photo img {
        height: 100%;
        min-height: 320px;
    }
}
