/* ============================================================
   PT. Success Integrated Solutions — static site
   Concept: "The integrated blueprint"
   ============================================================ */

:root {
    --navy: #0a1628;
    --navy-2: #0e2038;
    --navy-3: #12294a;
    --paper: #f5f8fb;
    --white: #ffffff;
    --ink: #0a1628;
    --ink-soft: #3f5170;
    --ink-mute: #6a7a95;
    --blue: #0c6fb8;
    --blue-deep: #095a96;
    --cyan: #22b3d6;
    --amber: #f4b740;
    --wa: #25d366;
    --wa-dark: #1eb85a;

    --line-ink: rgba(10, 22, 40, 0.1);
    --line-cyan: rgba(34, 179, 214, 0.22);
    --grid-cyan: rgba(34, 179, 214, 0.07);

    --radius: 14px;
    --radius-sm: 9px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.icon { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
    letter-spacing: 0.01em; color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); display: inline-block; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 16px; font-size: 1.08rem; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.98rem; transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(12, 111, 184, 0.8); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: var(--wa-dark); color: #06331a; transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(245, 248, 251, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-ink);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-weight: 500; font-size: 0.96rem; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--cyan);
    transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

.mobile-nav { display: none; border-top: 1px solid var(--line-ink); background: var(--paper); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 22px; font-weight: 500; border-bottom: 1px solid var(--line-ink); }
.mobile-nav .btn { margin: 16px 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; background: var(--navy); color: #eaf1fa; overflow: hidden;
    padding-block: clamp(70px, 10vw, 128px);
}
.hero::before { /* blueprint grid */
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--grid-cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-cyan) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 78%);
}
.hero::after { /* glow */
    content: ""; position: absolute; top: -180px; right: -160px; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(34, 179, 214, 0.28), transparent 68%); filter: blur(10px);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
    background: rgba(34, 179, 214, 0.12); border: 1px solid rgba(34, 179, 214, 0.3);
    color: #9fe0f2; font-size: 0.82rem; font-weight: 600; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,179,214,.6); animation: pulse 2.4s infinite; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); color: #fff; }
.hero h1 .grad { background: linear-gradient(100deg, var(--cyan), #6fd8f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 22px; max-width: 46ch; color: #a9bcd6; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: #7f93b3; font-size: 0.9rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--cyan); }

/* hero module diagram */
.diagram { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; margin-inline: auto; }
.diagram svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.diagram .wire { fill: none; stroke: var(--cyan); stroke-width: 1.4; opacity: 0.5; stroke-dasharray: 6 5; }
.diagram .hub {
    position: absolute; top: 50%; left: 50%; translate: -50% -50%;
    width: 30%; aspect-ratio: 1; border-radius: 18px; z-index: 3;
    background: linear-gradient(150deg, var(--blue), var(--cyan));
    display: grid; place-items: center; text-align: center; color: #fff;
    box-shadow: 0 20px 50px -18px rgba(34, 179, 214, 0.8);
    font-family: var(--font-display); font-weight: 700;
}
.diagram .hub span { font-size: 0.66rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.04em; display: block; margin-top: 2px; }
.diagram .node {
    position: absolute; width: 24%; aspect-ratio: 1; z-index: 2;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(34, 179, 214, 0.35);
    border-radius: 14px; backdrop-filter: blur(4px);
    display: grid; place-items: center; color: #bfe6f3;
}
.diagram .node svg { width: 38%; height: 38%; }
.diagram .node::after {
    content: attr(data-label); position: absolute; bottom: 7px; left: 0; right: 0;
    font-size: 0.56rem; text-align: center; color: #8fb2cf; font-weight: 500;
}
/* six positions around the hub */
.diagram .n1 { top: 0; left: 6%; }
.diagram .n2 { top: 0; right: 6%; }
.diagram .n3 { top: 50%; translate: 0 -50%; left: -2%; }
.diagram .n4 { top: 50%; translate: 0 -50%; right: -2%; }
.diagram .n5 { bottom: 0; left: 6%; }
.diagram .n6 { bottom: 0; right: 6%; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--navy-2); color: #eaf1fa; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.07); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.07); }
.stat { background: var(--navy-2); padding: 34px 26px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; letter-spacing: -0.03em; }
.stat .num .suffix { color: var(--cyan); }
.stat .label { color: #90a6c4; font-size: 0.92rem; margin-top: 6px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--paper); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 26px; }
.vm-card { position: relative; padding: 34px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-ink); overflow: hidden; }
.vm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--blue), var(--cyan)); }
.vm-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.vm-card .ic svg { width: 24px; height: 24px; }
.vm-card.vision .ic { background: var(--blue); }
.vm-card.mission .ic { background: var(--cyan); }
.vm-card h3 { font-size: 1.4rem; }
.vm-card p { margin-top: 12px; color: var(--ink-soft); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-ink); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.value { padding: 30px 26px; border-right: 1px solid var(--line-ink); }
.value:last-child { border-right: none; }
.value .vic { color: var(--blue); margin-bottom: 14px; }
.value .vic svg { width: 30px; height: 30px; }
.value h4 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 600; }
.value p { margin-top: 8px; color: var(--ink-mute); font-size: 0.94rem; }

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions { background: var(--white); }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mod {
    position: relative; padding: 30px; border-radius: var(--radius);
    border: 1px solid var(--line-ink); background: var(--paper);
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.mod::before { /* corner blueprint tick */
    content: ""; position: absolute; top: 0; right: 0; width: 54px; height: 54px;
    background: linear-gradient(225deg, rgba(34,179,214,.16), transparent 60%);
}
.mod:hover { transform: translateY(-5px); border-color: rgba(34, 179, 214, 0.5); box-shadow: 0 24px 44px -26px rgba(12, 111, 184, 0.55); }
.mod .m-ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: rgba(12,111,184,.1); color: var(--blue); transition: background 0.3s, color 0.3s; }
.mod .m-ic svg { width: 26px; height: 26px; }
.mod:hover .m-ic { background: var(--blue); color: #fff; }
.mod h3 { font-size: 1.25rem; margin-top: 20px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
.mod p { margin-top: 10px; color: var(--ink-soft); font-size: 0.97rem; }
.mod ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 9px; }
.mod li { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--ink); }
.mod li svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--paper); }
.marquee { position: relative; overflow: hidden; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 160s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-chip {
    flex: none; width: 190px; height: 108px; background: var(--white); border: 1px solid var(--line-ink);
    border-radius: var(--radius-sm); display: grid; place-items: center; padding: 22px;
}
.logo-chip img { max-height: 62px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: filter 0.3s, opacity 0.3s; }
.logo-chip:hover img { filter: none; opacity: 1; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { background: var(--navy); color: #eaf1fa; position: relative; overflow: hidden; }
.testi::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-cyan) 1px, transparent 1px), linear-gradient(90deg, var(--grid-cyan) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(circle at 80% 90%, #000, transparent 75%); mask-image: radial-gradient(circle at 80% 90%, #000, transparent 75%); }
.testi .wrap { position: relative; z-index: 2; }
.testi .eyebrow { color: #9fe0f2; }
.testi .eyebrow::before { background: var(--cyan); }
.testi .section-head h2 { color: #fff; }
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.t-card { padding: 34px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1); }
.t-card .q { color: var(--cyan); font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.t-card blockquote { margin-top: 10px; font-size: 1.12rem; color: #dbe7f5; }
.t-card .who { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.t-card .who strong { color: #fff; font-weight: 600; }
.t-card .who span { display: block; color: #8fa6c4; font-size: 0.9rem; margin-top: 2px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--white); }
.contact .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 14px; }
.contact .lead { color: var(--ink-soft); margin-top: 16px; font-size: 1.08rem; }
.form { margin-top: 30px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
    width: 100%; font: inherit; font-size: 0.98rem; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-ink); background: var(--paper); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12, 111, 184, 0.14); }

.info { display: grid; gap: 14px; }
.info-row { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line-ink); border-radius: var(--radius); background: var(--paper); }
.info-row .ic { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(12,111,184,.1); color: var(--blue); }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .rt { font-size: 0.86rem; font-weight: 600; }
.info-row .rv { color: var(--ink-soft); font-size: 0.96rem; margin-top: 2px; }
.info-row a:hover { color: var(--blue); }

/* ============================================================
   FOOTER + FLOATING WA
   ============================================================ */
.footer { background: var(--navy); color: #90a6c4; border-top: 1px solid rgba(255,255,255,.08); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 30px; flex-wrap: wrap; }
.footer img { height: 30px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer .fl { display: flex; align-items: center; gap: 14px; }
.footer .tag { font-family: var(--font-display); color: #c9d8ea; }

.fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 70;
    width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
    display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6);
    transition: transform 0.25s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }
.fab .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: 0.4; animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; z-index: -1; }

/* ============================================================
   MOTION
   ============================================================ */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,179,214,.55); } 70% { box-shadow: 0 0 0 9px rgba(34,179,214,0); } 100% { box-shadow: 0 0 0 0 rgba(34,179,214,0); } }
@keyframes ping { 75%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* scroll reveal — only hides when JS is confirmed running (.js on <html>) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: 0.08s; }
.js .reveal[data-d="2"] { transition-delay: 0.16s; }
.js .reveal[data-d="3"] { transition-delay: 0.24s; }
.js .reveal[data-d="4"] { transition-delay: 0.32s; }
.js .reveal[data-d="5"] { transition-delay: 0.4s; }

/* hero orchestrated load */
.hero-in .node, .hero-in .hub { opacity: 0; transform: scale(0.7); animation: pop 0.6s var(--ease) forwards; }
.hero-in .hub { animation-delay: 0.15s; }
.hero-in .n1 { animation-delay: 0.35s; } .hero-in .n2 { animation-delay: 0.45s; }
.hero-in .n3 { animation-delay: 0.55s; } .hero-in .n4 { animation-delay: 0.65s; }
.hero-in .n5 { animation-delay: 0.75s; } .hero-in .n6 { animation-delay: 0.85s; }
.hero-in .wire { stroke-dashoffset: 220; animation: draw 1s var(--ease) 0.5s forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; opacity: 0.5; } }
/* node position keeps translate for centered ones */
.hero-in .n3, .hero-in .n4 { transform: scale(0.7) translateY(-50%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
    .diagram { order: -1; max-width: 360px; }
    .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
    .mod-grid { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); }
    .value:nth-child(2) { border-right: none; }
    .value:nth-child(-n+2) { border-bottom: 1px solid var(--line-ink); }
    .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .nav, .header-cta .btn { display: none; }
    .menu-btn { display: flex; }
    .vm { grid-template-columns: 1fr; }
    .t-grid { grid-template-columns: 1fr; }
    .form .row { grid-template-columns: 1fr; }
    body { font-size: 16px; }
}
@media (max-width: 520px) {
    .mod-grid { grid-template-columns: 1fr; }
    .values { grid-template-columns: 1fr; }
    .value { border-right: none; border-bottom: 1px solid var(--line-ink); }
    .value:last-child { border-bottom: none; }
    .stats .wrap { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}
