:root {
    color-scheme: dark;
    --ink-950: #050812;
    --ink-900: #080d1b;
    --ink-800: #111a31;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --cyan-400: #22d3ee;
    --white: #ffffff;
    --slate-200: #d7dfec;
    --slate-400: #96a3b8;
    --slate-500: #718097;
    --border: rgba(255, 255, 255, 0.1);
    --display: 'Poppins', 'Inter', sans-serif;
    --body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    isolation: isolate;
    min-width: 320px;
    min-height: 100svh;
    overflow-x: hidden;
    padding: clamp(1rem, 4vw, 3rem);
    color: var(--slate-200);
    background:
        radial-gradient(circle at 16% 14%, rgba(37, 99, 235, 0.2), transparent 28%),
        radial-gradient(circle at 85% 76%, rgba(34, 211, 238, 0.09), transparent 25%),
        linear-gradient(145deg, var(--ink-950), #08152d 55%, #050914);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 10;
    opacity: 0.035;
    pointer-events: none;
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection {
    color: var(--white);
    background: rgba(59, 130, 246, 0.7);
}

:focus-visible {
    outline: 3px solid var(--cyan-400);
    outline-offset: 4px;
}

.route-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.045) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(circle at center, black, transparent 82%);
}

.ambient {
    position: fixed;
    z-index: -2;
    border: 1px solid rgba(96, 165, 250, 0.13);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 90px rgba(37, 99, 235, 0.08), inset 0 0 70px rgba(37, 99, 235, 0.06);
}

.ambient-one {
    top: -18vw;
    right: -10vw;
    width: 48vw;
    height: 48vw;
    animation: ambient 13s ease-in-out infinite;
}

.ambient-two {
    bottom: -17vw;
    left: -10vw;
    width: 38vw;
    height: 38vw;
    animation: ambient 16s ease-in-out -5s infinite reverse;
}

.details-wrap {
    display: grid;
    width: min(1120px, 100%);
    min-height: calc(100svh - clamp(2rem, 8vw, 6rem));
    margin: 0 auto;
    place-items: center;
}

.details-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: clamp(1.2rem, 4vw, 3rem);
    border: 1px solid var(--border);
    border-radius: clamp(1.5rem, 4vw, 2.75rem);
    background: linear-gradient(145deg, rgba(17, 30, 58, 0.78), rgba(6, 13, 29, 0.74));
    box-shadow: 0 45px 120px rgba(0, 4, 15, 0.5), inset 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(135%);
    animation: card-enter 850ms var(--ease) both;
}

.details-card::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    content: '';
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.55), transparent 27%, transparent 72%, rgba(34, 211, 238, 0.24));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.details-card::after {
    position: absolute;
    top: -180px;
    left: 50%;
    z-index: -1;
    width: 520px;
    height: 280px;
    border-radius: 50%;
    content: '';
    background: rgba(37, 99, 235, 0.22);
    filter: blur(85px);
    transform: translateX(-50%);
}

.brand {
    position: relative;
    text-align: center;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.2rem;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 27px;
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 20px 50px rgba(0, 7, 25, 0.35), 0 0 45px rgba(37, 99, 235, 0.16), inset 0 1px rgba(255, 255, 255, 0.12);
    animation: logo-float 4.5s ease-in-out infinite;
}

.brand-mark::before {
    position: absolute;
    inset: -8px;
    border: 1px dashed rgba(34, 211, 238, 0.2);
    border-radius: 33px;
    content: '';
    animation: slow-spin 18s linear infinite;
}

.brand-logo {
    display: block;
    width: 68px;
    height: 68px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 21px;
    object-fit: cover;
}

.brand h1 {
    color: var(--white);
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 620;
    line-height: 1.1;
    letter-spacing: -0.055em;
}

.brand p {
    margin-top: 0.5rem;
    color: var(--slate-400);
    font-size: clamp(0.82rem, 2vw, 0.95rem);
}

.meta {
    width: max-content;
    max-width: 100%;
    margin: 1.2rem auto 2.4rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(96, 165, 250, 0.17);
    border-radius: 99px;
    color: var(--blue-400);
    background: rgba(59, 130, 246, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

.office-card {
    position: relative;
    min-height: 255px;
    overflow: hidden;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.45rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
    transition: transform 300ms var(--ease), border-color 300ms, background 300ms, box-shadow 300ms;
    animation: office-enter 750ms var(--ease) both;
}

.office-card:nth-child(2) { animation-delay: 90ms; }
.office-card:nth-child(3) { animation-delay: 180ms; }

.office-card::after {
    position: absolute;
    right: -48px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    content: '';
    background: rgba(37, 99, 235, 0.07);
    transition: background 300ms, transform 500ms var(--ease);
}

.office-card:hover {
    border-color: rgba(96, 165, 250, 0.25);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.13), rgba(255, 255, 255, 0.03));
    box-shadow: 0 26px 60px rgba(0, 7, 25, 0.24), inset 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-7px);
}

.office-card:hover::after {
    background: rgba(34, 211, 238, 0.1);
    transform: scale(1.25);
}

.office-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.19);
    border-radius: 15px;
    color: var(--cyan-400);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.office-card h2 {
    color: var(--white);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.office-card p {
    position: relative;
    z-index: 1;
    margin-top: 0.55rem;
    color: var(--slate-400);
    font-size: 0.8rem;
    line-height: 1.7;
}

.action-row {
    position: relative;
    z-index: 1;
    display: flex;
    margin-top: 1.2rem;
    gap: 0.55rem;
}

.btn {
    display: inline-flex;
    min-height: 42px;
    padding: 0 0.8rem;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid;
    border-radius: 0.85rem;
    font-size: 0.72rem;
    font-weight: 650;
    text-decoration: none;
    transition: transform 250ms var(--ease), box-shadow 250ms, background 250ms;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-call {
    border-color: rgba(96, 165, 250, 0.34);
    color: #b9d5ff;
    background: rgba(59, 130, 246, 0.12);
}

.btn-call:hover {
    background: rgba(59, 130, 246, 0.22);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
}

.btn-wa {
    border-color: rgba(52, 211, 153, 0.28);
    color: #82e6bf;
    background: rgba(52, 211, 153, 0.08);
}

.btn-wa:hover {
    background: rgba(52, 211, 153, 0.17);
    box-shadow: 0 12px 30px rgba(52, 211, 153, 0.12);
}

.qr-wrap {
    position: relative;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.qr-frame {
    position: relative;
    display: grid;
    width: 138px;
    height: 138px;
    margin: 0 auto;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 5, 20, 0.3), inset 0 1px rgba(255, 255, 255, 0.1);
}

.qr-frame img {
    display: block;
    width: 114px;
    height: 114px;
    border: 5px solid var(--white);
    border-radius: 0.8rem;
}

.qr-frame span {
    position: absolute;
    right: 10px;
    left: 10px;
    height: 1px;
    background: var(--cyan-400);
    box-shadow: 0 0 10px var(--cyan-400), 0 0 22px var(--cyan-400);
    animation: scan 2.8s ease-in-out infinite;
}

.qr-wrap p {
    margin-top: 0.75rem;
    color: var(--slate-500);
    font-size: 0.73rem;
}

.qr-wrap strong {
    color: var(--slate-200);
    font-weight: 550;
}

.home-link {
    display: inline-flex;
    margin-top: 0.7rem;
    align-items: center;
    gap: 0.45rem;
    color: var(--blue-400);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

@keyframes card-enter {
    from { opacity: 0; filter: blur(10px); transform: translateY(24px) scale(0.985); }
    to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes office-enter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes slow-spin {
    to { transform: rotate(1turn); }
}

@keyframes ambient {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(20px, -15px, 0) scale(1.04); }
}

@keyframes scan {
    0%, 100% { top: 12px; opacity: 0.45; }
    50% { top: calc(100% - 12px); opacity: 1; }
}

@media (max-width: 850px) {
    .office-grid { grid-template-columns: 1fr; }
    .office-card { min-height: auto; }
}

@media (max-width: 520px) {
    body { padding: 0.6rem; }
    .details-card { padding: 1.25rem 0.85rem; border-radius: 1.35rem; }
    .brand-mark { width: 76px; height: 76px; border-radius: 22px; }
    .brand-logo { width: 58px; height: 58px; border-radius: 17px; }
    .meta { margin-bottom: 1.6rem; }
    .office-card { padding: 1.1rem; border-radius: 1.15rem; }
    .action-row { flex-direction: row; }
    .qr-wrap { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
