/**
 * MxgSoft Enterprise Landing - Common Styles
 * Shared styles for consistent navigation, layout, and design system
 */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --coral: #FF6F61;
    --coral-light: #FEF0ED;
    --emerald: #0B1F3B;
    --emerald-light: #E6ECF6;
    --blue: #3B82F6;
    --blue-light: #EFF6FF;
    --black: #0D0D0D;
    --gray-900: #2D2D2D;
    --gray-600: #6B6B6B;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F0F4FA;
    --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.highlight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--coral);
}

/* Navigation - Standard */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { height: 28px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--coral); }

/* Dropdown Menu */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-trigger svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -200px;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 720px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.nav-dropdown-group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--black);
    margin-bottom: 4px;
}

.nav-dropdown-group-desc {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

/* Dropdown Item Icon Colors */
.nav-dropdown-content > div:nth-child(1) .dropdown-icon { background: var(--blue-light); }
.nav-dropdown-content > div:nth-child(1) .dropdown-icon svg { stroke: var(--blue); }
.nav-dropdown-content > div:nth-child(2) .dropdown-icon { background: var(--coral-light); }
.nav-dropdown-content > div:nth-child(2) .dropdown-icon svg { stroke: var(--coral); }
.nav-dropdown-content > div:nth-child(3) .dropdown-icon { background: #ffedd5; }
.nav-dropdown-content > div:nth-child(3) .dropdown-icon svg { stroke: #f97316; }
.nav-dropdown-content > div:nth-child(4) .dropdown-icon { background: #dcfce7; }
.nav-dropdown-content > div:nth-child(4) .dropdown-icon svg { stroke: #16a34a; }

.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.15s;
}

.nav-dropdown-item:hover {
    background: var(--coral-light);
    color: var(--coral);
}

.nav-dropdown-item:hover .dropdown-icon { background: #FEF6F5; }
.nav-dropdown-item:hover .dropdown-icon svg { stroke: var(--coral); }

.dropdown-icon {
    width: 40px;
    height: 40px;
    background: #FEF6F5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.dropdown-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--coral);
    stroke-width: 1.5;
    fill: none;
    transition: all 0.15s;
}

.dropdown-text { flex: 1; }

.dropdown-text .title {
    display: block;
    font-weight: 600;
    color: inherit;
    margin-bottom: 2px;
}

.nav-dropdown-item span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
}

.btn-primary:hover { background: var(--gray-900); }

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--gray-200);
}

.btn-outline:hover { border-color: var(--black); }

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
    border-radius: 10px;
}

.link-btn {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
}

.link-btn:hover {
    color: var(--black);
}

/* Container Standards */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 48px;
}

.section {
    padding: 6rem 2rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: var(--gray-900);
    color: var(--gray-400);
    text-align: center;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
}

footer a:hover { color: var(--white); }

.hero {
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(900px 600px at 80% 10%, rgba(255,111,97,0.10) 0%, rgba(255,111,97,0.00) 60%),
      radial-gradient(800px 500px at 15% 85%, rgba(11,31,59,0.08) 0%, rgba(11,31,59,0.00) 60%),
      linear-gradient(var(--white), var(--white));
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background:
      repeating-linear-gradient(0deg, rgba(11,31,59,0.04) 0 1px, transparent 1px 24px),
      repeating-linear-gradient(90deg, rgba(11,31,59,0.04) 0 1px, transparent 1px 24px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.ai-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    height: 460px;
    display: flex;
    flex-direction: column;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: rotateY(-5deg) rotateX(5deg) translateY(0px); }
    50% { transform: rotateY(-5deg) rotateX(5deg) translateY(-10px); }
    100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0px); }
}

.ai-form-card:hover {
    transform: rotateY(0) rotateX(0);
}

.form-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mock-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.mock-input {
    width: 100%;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-600);
    position: relative;
}

.mock-textarea {
    width: 100%;
    height: 100px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    position: relative;
    display: block;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--coral);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.mock-btn {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s;
    cursor: pointer;
    padding: 0.5rem 3rem;
}

.mock-btn.active {
    background: var(--coral);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.ai-preview {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gray-100);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.ai-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

.ai-preview.show {
    opacity: 1;
}

.ai-form-card > *:not(.ai-preview) {
    position: relative;
    z-index: 1;
}

.ai-form-card.image-mode .form-header,
.ai-form-card.image-mode .form-group,
.ai-form-card.image-mode .mock-btn {
    opacity: 0;
    pointer-events: none;
}

.typing-text {
    color: var(--gray-900);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--coral);
    text-decoration: none;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-card-note {
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 0.75rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-100);
    color: var(--emerald);
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-badge-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-badge-icon i {
    font-size: 12px;
    color: transparent;
    -webkit-text-stroke: 1px var(--coral);
    text-stroke: 1px var(--coral);
}
.hero-badge-arrow {
    width: 20px;
    height: 20px;
    background: var(--coral-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-badge-arrow i {
    font-size: 12px;
    color: var(--coral);
}
.hero-badge svg {
    width: 16px; height: 16px; stroke-width: 2; stroke: var(--coral); fill: none;
}

/* Secondary Navigation (In-Page Navigation) */
.secondary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.secondary-nav-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: none;
}

.secondary-nav-logo span { color: var(--coral); }

.secondary-nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.secondary-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

.secondary-nav-links a:hover { color: var(--coral); }

.secondary-nav-cta {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--coral);
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s;
}

.secondary-nav-cta:hover {
    background: #D4453B;
    transform: translateY(-1px);
}

/* Adjust hero padding when secondary nav is present */
body.has-secondary-nav .hero,
body.has-secondary-nav section:first-of-type {
    padding-top: 200px;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-inner { padding: 0 24px; }
    .container { padding: 0 24px; }
    .secondary-nav-links { display: none; }
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 20px; }
    .container { padding: 0 20px; }
}


/* Steps Section */
.steps {
    padding: 8rem 2rem;
}
.steps-container {
    max-width: 1200px;
    margin: 0 auto;
}
.steps-header {
    text-align: center;
    margin-bottom: 3rem;
}
.steps-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 2rem;
    padding-top: 1rem; /* Space for the timeline line */
}
/* Connecting Line Removed */
.steps-timeline::before {
    display: none;
}
.step-item {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: -40px; /* Overlap the card */
    position: relative;
    z-index: 2;
    border: 6px solid var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.step-card {
    background: var(--white);
    padding: 4rem 2rem 3rem; /* Extra top padding for the number */
    border-radius: 32px; /* Rounder cards */
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.step-icon-wrapper {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.step-icon-wrapper i, .step-icon-wrapper svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
}
.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--black);
}
.step-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Brand Colors for Steps */
.step-1 .step-number { background: #F0F9FF; color: var(--blue); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15); } /* Blue */
.step-1 .step-icon-wrapper { background: transparent; }
.step-1 .step-icon-wrapper i, .step-1 .step-icon-wrapper svg { color: var(--blue); }

.step-2 .step-number { background: #FFF7ED; color: #F97316; box-shadow: 0 10px 20px rgba(249, 115, 22, 0.15); } /* Orange */
.step-2 .step-icon-wrapper { background: transparent; }
.step-2 .step-icon-wrapper i, .step-2 .step-icon-wrapper svg { color: #F97316; }

.step-3 .step-number { background: #FEF2F2; color: #EF4444; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.15); } /* Red */
.step-3 .step-icon-wrapper { background: transparent; }
.step-3 .step-icon-wrapper i, .step-3 .step-icon-wrapper svg { color: #EF4444; }

@media (max-width: 1024px) {
    .steps-timeline { flex-direction: column; gap: 4rem; }
    /* Line removed from mobile view as well */
    .step-item { 
        flex-direction: row; 
        align-items: flex-start; 
        gap: 2rem; 
        text-align: left;
    }
    .step-number { margin-bottom: 0; flex-shrink: 0; }
    .step-card { 
        align-items: flex-start; 
        text-align: left; 
        padding: 2rem;
    }
    .step-icon-wrapper { margin-bottom: 1rem; }
}

/* FAQ Section */
.faq { padding: 6rem 2rem; background: var(--gray-100); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.faq-question { padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; width: 100%; text-align: left; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--gray-900); }
.faq-question:hover { background: var(--gray-100); }
.faq-question i { transition: transform 0.3s; color: var(--gray-400); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--coral); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: all 0.3s ease-out; color: var(--gray-600); line-height: 1.6; }
.faq-item.active .faq-answer { padding-top: 1rem; padding-bottom: 1rem; max-height: 500px; }


/* Launch CTA Section */
.launch-cta { padding: 6rem 2rem; background: var(--emerald); color: var(--white); }
.launch-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.launch-content h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.launch-content > p { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 3rem; max-width: 500px; }

.launch-features { display: flex; flex-direction: column; gap: 2rem; }
.lf-item { display: flex; gap: 1rem; }
.lf-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lf-icon i { font-size: 20px; color: var(--coral); }
.lf-text h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.lf-text p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin: 0; }

.launch-form-card { background: var(--white); padding: 2.5rem; border-radius: 16px; color: var(--black); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.launch-form-card h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.launch-form-card > p { color: var(--gray-600); text-align: center; margin-bottom: 2rem; font-size: 0.95rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 1rem; font-family: inherit; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--coral); }
textarea.form-control { resize: vertical; min-height: 100px; }

.btn-launch { width: 100%; background: var(--coral); color: var(--white); border: none; padding: 1rem; font-size: 1.1rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-launch:hover { background: #E85A4F; }
.launch-form-card .form-footer { font-size: 0.6rem; color: var(--gray-400); text-align: center; margin-top: 1rem; line-height: 1.4; }
