/* ===================================
   SecuredPress - ML Cost Optimizer
   SageMaker Cost Optimization Platform
   =================================== */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Structure */
    --navy: #0A1128;
    --navy-light: #1C2541;

    /* FinOps Brand Accent (Primary) */
    --accent: #2A9D8F;
    /* teal = optimization / efficiency */
    --accent-light: #CDEDEA;
    /* soft mint tint for chips/hover */

    /* Secondary highlight (sparingly) */
    --gold: #F4A261;
    /* "savings / opportunity" highlight */

    /* Status */
    --success: #2A9D8F;
    /* same as accent for consistency */
    --danger: #bf1922;
    /* keep red ONLY for errors/destructive */
    --danger-light: #F4B8BC;
    /* optional soft rose for error banners */

    /* Neutrals */
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray: #6C757D;
}



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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
     TYPOGRAPHY
     =================================== */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

/* ===================================
     HEADER & NAVIGATION
     =================================== */
header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    display: inline;
    white-space: nowrap;
    letter-spacing: 0;
    word-spacing: 0;
}

.logo-accent {
    color: var(--accent);
    display: inline;
    margin: 0;
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ===================================
     HERO SECTION
     =================================== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0d1b3e 50%, var(--navy-light) 100%);
    color: var(--white);
    padding: 4rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(42, 157, 143, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 162, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text .subtitle {
    color: var(--accent);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    animation: slideInLeft 0.6s ease-out;
}

.hero-text h1 {
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.4s backwards;
}

.industry-badges {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out 0.3s backwards;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 1.2s ease-out 0.6s backwards;
}

/* ===================================
     BUTTONS
     =================================== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.3);
}

.btn-primary:hover {
    background: #248277;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(42, 157, 143, 0.4);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

/* ===================================
     HERO STATS CARD
     =================================== */
.hero-stats {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 1s ease-out 0.4s backwards;
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge img {
    height: 60px;
    opacity: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* ===================================
     CREDIBILITY SECTION
     =================================== */
.credibility {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 2rem;
}

.credibility-container {
    max-width: 1200px;
    margin: 0 auto;
}

.credibility h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem;
}

.credibility-intro {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0.9;
}

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

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.experience-card ul {
    list-style: none;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.experience-card ul li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.experience-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.experience-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.credentials {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.credentials img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.credentials img:hover {
    transform: scale(1.05);
}

.credentials p {
    font-size: 1.125rem;
}

/* ===================================
     VIDEO DEMO SECTION
     =================================== */
.video-demo {
    padding: 4rem 2rem;
    background: var(--gray-light);
}

.video-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-subtitle {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.video-demo h2 {
    margin-bottom: 1rem;
    color: var(--navy);
}

.video-demo-intro {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ===================================
     SOLUTIONS SECTION
     =================================== */
.solutions {
    padding: 6rem 2rem;
    background: var(--white);
}

.solutions-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.2);
}

.solution-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.solution-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.solution-features li {
    padding: 0.5rem 0;
    color: var(--navy);
    position: relative;
    padding-left: 1.5rem;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.solution-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 1rem;
}

.price-subtitle {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* ===================================
     ROI CALCULATOR SECTION
     =================================== */
.roi-section {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e9ecef 100%);
    padding: 6rem 2rem;
}

.roi-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.roi-calculator {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: grid;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--navy);
}

.input-group input {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Range Slider Styling */
.input-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 5px;
    outline: none;
    padding: 0;
    margin: 0.5rem 0;
    border: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.3);
    transition: all 0.3s ease;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.5);
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.3);
    transition: all 0.3s ease;
}

.input-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.5);
}

.input-group input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 5px;
}

.input-group input[type="range"]::-moz-range-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 5px;
}

.input-group input[type="range"]::-moz-range-progress {
    height: 8px;
    background: var(--accent);
    border-radius: 5px;
}

.roi-results {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.roi-results h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.roi-metric {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.roi-metric:last-child {
    border-bottom: none;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: 1rem;
}

/* ===================================
     PROCESS/TIMELINE SECTION
     =================================== */
.process {
    padding: 6rem 2rem;
    background: var(--white);
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    align-items: center;
}

/* ODD ITEMS (1, 3) - Content on LEFT, Number in CENTER */
.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-number {
    grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-empty {
    grid-column: 3;
}

/* EVEN ITEMS (2, 4) - Number in CENTER, Content on RIGHT */
.timeline-item:nth-child(even) .timeline-empty {
    grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-number {
    grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.3);
}

/* ===================================
     CONTACT SECTION
     =================================== */
.contact {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select option {
    background: var(--navy);
    color: var(--white);
}

/* ===================================
     FOOTER
     =================================== */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

/* ===================================
     ANIMATIONS
     =================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
     RESPONSIVE DESIGN
     =================================== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }

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

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        grid-template-columns: 80px 1fr;
        padding-left: 0;
        gap: 1.5rem;
    }

    .timeline-number {
        grid-column: 1 !important;
        justify-self: start;
    }

    .timeline-content {
        grid-column: 2 !important;
        text-align: left !important;
    }

    .timeline-empty {
        display: none;
    }

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

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

    .industry-experience {
        grid-template-columns: 1fr;
    }

    .video-wrapper iframe {
        height: 300px;
    }
}