/* ============================================================
   Autometa Technology Solutions — Stylesheet
   ============================================================ */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #faf6f2;
    --bg-header: #eaf1f3;
    --bg-dark: #0d1526;
    --bg-dark-2: #101a2e;
    --card: #ffffff;
    --text: #0f1729;
    --text-soft: #4a5468;
    --text-muted: #7a8599;
    --accent: #ef3e4a;
    --accent-dark: #d02d39;
    --pink-tint: #fde4e6;
    --pink-tint-soft: #fef1f2;
    --teal: #0d9488;
    --green: #10b981;
    --border: #e6e1db;
    --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 41, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 41, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--bg-header);
    padding: 20px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.brand-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.18em;
    margin-top: 2px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--teal);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 100px;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at top left, rgba(253, 228, 230, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(234, 241, 243, 0.5) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

.badge-pink {
    background: var(--pink-tint-soft);
    color: var(--accent);
    border: 1px solid var(--pink-tint);
}

.badge-pink .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.badge-gray {
    background: #f1eee9;
    color: var(--text-soft);
    border: 1px solid var(--border);
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-desc {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 500px;
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Placeholder: fiber-optic look. Replace with <img> for real photo. */
.hero-placeholder-fiber {
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 200, 210, 0.7), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(180, 200, 255, 0.6), transparent 55%),
        linear-gradient(135deg, #f4c2c8 0%, #9eb4d4 40%, #3a4a6b 100%);
    position: relative;
}

.hero-placeholder-fiber::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 8px, rgba(255, 255, 255, 0.05) 8px 9px),
        repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, 0.06) 12px 13px);
}

.hipaa-pill {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

/* ---------- Ecosystem (services) ---------- */
.ecosystem {
    padding: 80px 0 100px;
    background: var(--bg);
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-heading h2 {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}

.section-heading p {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pink-tint-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text);
}

.service-card p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ---------- FDA dark section ---------- */
.fda-section {
    background: var(--bg-dark);
    color: #fff;
    padding: 90px 0;
}

.fda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.fda-visual {
    position: relative;
}

.fda-image {
    width: 100%;
    height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Placeholder: clinic / tablet look. Replace with <img>. */
.fda-placeholder-tablet {
    background:
        linear-gradient(180deg, #d4d0c8 0%, #a39f97 50%, #6b675f 100%);
    position: relative;
}

.fda-placeholder-tablet::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
    width: 52%;
    height: 32%;
    background: linear-gradient(135deg, #e8ecf0 0%, #c9d1db 100%);
    border: 4px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.status-panel {
    position: absolute;
    top: 40px;
    right: 30px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
}

.status-panel ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-panel li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.dot-green {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

.fda-content h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 22px;
}

.fda-content > p {
    font-size: 15px;
    color: #c2cadb;
    line-height: 1.7;
    margin-bottom: 28px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #e6eaf1;
    line-height: 1.55;
}

.bullet {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* ---------- Security ---------- */
.security {
    padding: 90px 0;
    background: var(--bg);
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.security-content h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 20px 0 22px;
    color: var(--text);
}

.security-content > p {
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 32px;
}

.security-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
}

.stat-icon {
    margin-bottom: 12px;
}

.stat-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.5;
}

.security-visual {
    position: relative;
}

.security-image {
    width: 100%;
    height: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Placeholder: server-room look. Replace with <img>. */
.security-placeholder-server {
    background:
        radial-gradient(circle at 30% 50%, rgba(239, 62, 74, 0.35), transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(239, 62, 74, 0.25), transparent 45%),
        linear-gradient(135deg, #0a1a2f 0%, #1a3a5c 50%, #0d1526 100%);
    position: relative;
}

.security-placeholder-server::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 14px, rgba(239, 62, 74, 0.15) 14px 16px, transparent 16px 30px),
        repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 255, 255, 0.03) 40px 41px);
}

/* ---------- CTA ---------- */
.cta {
    background: var(--bg-dark);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.875rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 18px;
}

.cta p {
    color: #c2cadb;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient {
    background: linear-gradient(90deg, #f97316 0%, #ef3e4a 50%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(239, 62, 74, 0.35);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(239, 62, 74, 0.45);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark-2);
    color: #c2cadb;
    padding: 70px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    padding-bottom: 48px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 420px;
    color: #9aa3b8;
    margin-bottom: 22px;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa3b8;
    transition: background 0.2s ease, color 0.2s ease;
}

.socials a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #9aa3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #7a8599;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    gap: 28px;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-contact {
        align-items: flex-start;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero-grid,
    .fda-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image,
    .fda-image,
    .security-image {
        height: 320px;
    }

    .status-panel {
        right: 16px;
        top: 16px;
        min-width: 180px;
    }
}

@media (max-width: 560px) {
    .service-grid,
    .security-stats {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 16px;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .ecosystem,
    .fda-section,
    .security,
    .cta {
        padding: 60px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
