/* ===========================
   CMD Medical & Health — style.css
   =========================== */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --accent: #10b981;
    --accent-dark: #059669;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--dark);
    color: #e2e8f0;
}

.section-suggest {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 50%, #f0fdf4 100%);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 {
    font-family: 'Merriweather', Georgia, serif;
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; }

p { line-height: 1.75; }

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    margin-top: 0.5rem;
    color: var(--dark);
}

.section-header-light h2 {
    color: #f1f5f9;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.35rem 1rem;
    border-radius: 100px;
}

.section-label-light {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
}

.section-desc {
    margin-top: 1rem;
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-desc {
    color: #94a3b8;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-logo-footer {
    height: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.75;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-nav:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark)) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0f2027 100%);
    padding-top: 68px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -200px;
    right: -100px;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -150px;
    left: -50px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #818cf8, transparent);
    top: 40%;
    left: 60%;
    animation: floatShape 12s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    padding: 4rem 1.5rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    z-index: 2;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-ghost {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ===========================
   Stats Bar
   =========================== */
.stats-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.stat-icon { font-size: 1.25rem; }

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* ===========================
   About Section
   =========================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-text p strong { color: var(--text); }

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.pillar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pillar-icon {
    font-size: 1.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.pillar strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.pillar p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.about-visual {
    position: relative;
    padding: 1rem;
}

.visual-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.visual-card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.125rem;
    color: var(--dark);
}

.visual-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.vc-icon {
    font-size: 2rem;
}

.card-main {
    margin-bottom: 1.5rem;
}

.card-secondary {
    max-width: 90%;
}

.card-top-right {
    margin-left: auto;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #bae6fd;
}

.card-bottom-left {
    margin-left: 0;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #bbf7d0;
}

/* ===========================
   Platform Cards (Dark Section)
   =========================== */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.platform-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform var(--transition), border-color var(--transition);
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.pc-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.platform-card h3 {
    color: #f1f5f9;
    font-size: 1.375rem;
    font-family: 'Merriweather', serif;
    margin-bottom: 0.875rem;
}

.platform-card p {
    color: #94a3b8;
    font-size: 0.9375rem;
    margin: 0;
}

.platform-disclaimer {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.disclaimer-icon { font-size: 1.5rem; }

.platform-disclaimer p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9375rem;
}

.platform-disclaimer strong { color: #e2e8f0; }

/* ===========================
   Partner Cards
   =========================== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.partner-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.partner-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
}

.partner-card h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.partner-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===========================
   Suggestion Form
   =========================== */
.form-container {
    max-width: 760px;
    margin: 0 auto;
}

.suggestion-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group label .positive { color: var(--accent); }
.form-group label .negative { color: #ef4444; }
.required { color: #ef4444; }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
    background: white;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 500;
    min-height: 1rem;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    transition: background var(--transition), border-color var(--transition);
}

.radio-option:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.radio-option input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    accent-color: var(--primary);
}

.radio-option input[type="radio"]:focus {
    box-shadow: none;
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    flex: 1;
}

.btn-submit {
    white-space: nowrap;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Success State */
.form-success {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon { font-size: 3rem; margin-bottom: 1rem; }

.form-success h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.form-success p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--dark);
    color: #64748b;
    padding: 2.5rem 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}



.footer-tagline {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

.footer-copy {
    font-size: 0.8rem;
    color: #475569;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .card-main { margin-bottom: 0; grid-column: 1 / -1; }
    .card-top-right, .card-bottom-left { max-width: 100%; margin: 0; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }

    .nav-links { display: none; }
    .hamburger { display: flex; }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .platform-cards { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .stats-inner { gap: 1rem; }
    .stat-divider { display: none; }

    .about-visual {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-submit {
        width: 100%;
    }

    .suggestion-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .partner-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }

    .platform-disclaimer {
        flex-direction: column;
    }
}
