/* About page */

body {
    background:
        radial-gradient(circle at 16% 10%, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at 84% 24%, rgba(20, 184, 166, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 45%, #f8fafc 100%);
}

.about-hero,
.about-section,
.about-cta {
    position: relative;
    overflow: hidden;
}

.about-section.about-hero {
    min-height: clamp(320px, 56vw, 720px);
    display: flex;
    align-items: center;
    padding: clamp(48px, 7vw, 96px) 0;
    color: #ffffff;
    background: #0f172a;
}

/* hero ใช้ media layer แทน decoration ของ base about-section */
.about-section.about-hero::before {
    content: none;
}

.about-hero-media {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.about-hero-overlay,
.about-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(115deg, rgb(15 23 42 / 96%) 0%, rgb(5 29 107 / 90%) 47%, rgb(14 165 233 / 12%) 100%),
        linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.58) 100%);
}

.about-hero-shapes {
    z-index: 2;
    overflow: hidden;
}

.about-hero-shape {
    position: absolute;
    display: block;
    border-radius: 999px;
    opacity: 0.95;
}

.about-hero-shape-one {
    top: -9%;
    right: -6%;
    width: min(28vw, 360px);
    height: min(28vw, 360px);
    background: radial-gradient(circle at 35% 35%, rgba(125, 211, 252, 0.88), rgba(37, 99, 235, 0.18) 62%, rgba(37, 99, 235, 0) 72%);
}

.about-hero-shape-two {
    bottom: -18%;
    left: -4%;
    width: min(24vw, 320px);
    height: min(24vw, 320px);
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.4), rgba(15, 23, 42, 0) 70%);
}

.about-hero-grid {
    position: absolute;
    inset: auto 6% 8% auto;
    width: min(26vw, 340px);
    height: min(16vw, 210px);
    display: block;
    border-radius: 28px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 100%);
    opacity: 0.4;
    transform: rotate(-10deg);
}

.about-section::before,
.about-cta::before {
    position: absolute;
    pointer-events: none;
    content: "";
}

.about-section .container,
.about-cta .container {
    position: relative;
    z-index: 2;
}

.about-hero .container {
    position: relative;
    z-index: 3;
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-kicker-light {
    color: #bfdbfe;
}

.about-hero .about-kicker {
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(6px);
    color: #7dd3fc;
    font-size: 0.9rem;
}

.about-hero h1 {
    max-width: 820px;
    letter-spacing: 0;
    color: #ffffff;
}

.about-hero .lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.system-panel {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.42);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.system-panel::before {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    pointer-events: none;
    content: "";
}

.panel-header {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.panel-header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    min-height: 128px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.06);
    background-size: 22px 22px;
}

.metric-card span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 1.1rem;
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
}

.metric-card-wide {
    grid-column: 1 / -1;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    height: 74px;
    margin-top: 1rem;
}

.signal-bars i {
    width: 100%;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #7dd3fc, rgba(37, 99, 235, 0.28));
}

.signal-bars i:nth-child(1) {
    height: 36%;
}

.signal-bars i:nth-child(2) {
    height: 68%;
}

.signal-bars i:nth-child(3) {
    height: 48%;
}

.signal-bars i:nth-child(4) {
    height: 88%;
}

.signal-bars i:nth-child(5) {
    height: 58%;
}

.data-stream {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.data-stream span {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.75), rgba(125, 211, 252, 0.06));
}

.data-stream span:nth-child(2) {
    width: 72%;
}

.data-stream span:nth-child(3) {
    width: 46%;
}

.about-section {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.about-section::before {
    width: clamp(220px, 28vw, 420px);
    height: clamp(140px, 18vw, 250px);
    border: 1px solid rgba(37, 99, 235, 0.13);
    border-radius: 18px;
    background:
        linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
    opacity: 0.65;
}

.about-values::before {
    top: 60px;
    right: -88px;
}

.about-stack {
    background: linear-gradient(180deg, #f8fafc, #eef7ff);
}

.about-stack::before {
    left: -92px;
    bottom: 70px;
}

.about-team::before {
    top: 72px;
    right: -90px;
}

.section-heading p {
    max-width: 720px;
}

.tech-card,
.team-card,
.workflow-node {
    position: relative;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.tech-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tech-card::before,
.team-card::before {
    position: absolute;
    inset: 0;
    border-top: 3px solid var(--blue-600);
    pointer-events: none;
    content: "";
}

.tech-card:hover,
.team-card:hover,
.workflow-node:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 1.55rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.workflow-node {
    min-height: 180px;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
}

.workflow-node::after {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 74px;
    height: 42px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background:
        linear-gradient(90deg, transparent 0 42%, rgba(37, 99, 235, 0.16) 42% 44%, transparent 44%),
        linear-gradient(0deg, transparent 0 54%, rgba(37, 99, 235, 0.16) 54% 56%, transparent 56%);
    clip-path: polygon(12% 0, 100% 0, 100% 72%, 84% 100%, 0 100%, 0 24%);
    opacity: 0.8;
    content: "";
}

.workflow-node span {
    color: var(--blue-600);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.workflow-node strong,
.workflow-node small {
    display: block;
}

.workflow-node strong {
    margin: 0.7rem 0 0.35rem;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.workflow-node small {
    color: var(--gray-500);
    font-size: 0.92rem;
}

.team-card {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.team-avatar {
    width: 96px;
    height: 96px;
    display: block;
    margin: 0 auto 1rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.about-cta {
    padding: 0 0 clamp(4rem, 7vw, 6rem);
}

.about-cta::before {
    right: 6%;
    bottom: 18px;
    width: 260px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
    opacity: 0.38;
}

.about-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2rem, 5vw, 3.25rem);
    border-radius: var(--radius-2xl);
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.about-cta-inner::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 16% 20%, rgba(125, 211, 252, 0.26), transparent 32%);
    pointer-events: none;
    content: "";
}

.about-cta-inner > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .about-section.about-hero {
        min-height: auto;
    }

    .about-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .about-section.about-hero {
        padding: 4rem 0;
    }

    .about-hero-actions .btn {
        width: 100%;
    }

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

    .system-panel {
        border-radius: 18px;
    }

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

    .metric-card-wide {
        grid-column: auto;
    }

    .about-section::before {
        opacity: 0.28;
    }

    .about-hero-shape,
    .about-hero-grid {
        opacity: 0.28;
    }
}
