/* ==========================================================
   NaraTechnology
   Palet: navy malam, oranye kabel fiber, hijau LED.
   ========================================================== */

:root {
    --night: #0C1D2E;
    --night-2: #12283D;
    --night-3: #1B3A55;
    --ink: #0F2234;
    --ink-soft: #3E4F60;
    --paper: #F3F6F8;
    --white: #FFFFFF;
    --line: #D6DEE5;
    --fiber: #F26A1B;
    --fiber-text: #B8430A;   /* oranye lebih gelap untuk teks di latar terang */
    --led: #34D399;

    --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius: 6px;
    --container: 1120px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    color: var(--night);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--fiber-text); text-underline-offset: 3px; }
a:hover { color: var(--night); }

:focus-visible {
    outline: 3px solid var(--fiber);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--fiber);
    color: var(--night);
    padding: 0.6rem 1rem;
    font-weight: 600;
    z-index: 100;
    border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    background: var(--fiber);
    color: var(--night);
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none;
    border: 2px solid var(--fiber);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: #FF8442; border-color: #FF8442; color: var(--night); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--night); }
.btn-ghost-dark { background: transparent; color: var(--night); border-color: var(--night); }
.btn-ghost-dark:hover { background: var(--night); border-color: var(--night); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--night);
}
.brand-name { font: 700 1.2rem/1 var(--font-head); letter-spacing: -0.01em; }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }
.brand-light .logo-mark rect { fill: var(--night-3); }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.main-nav li a {
    display: block;
    padding: 0.4rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.main-nav li a:hover { border-bottom-color: var(--line); color: var(--night); }
.main-nav li a[aria-current="page"] { border-bottom-color: var(--fiber); color: var(--night); }

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    font: 600 0.95rem/1 var(--font-body);
    color: var(--night);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--night);
    color: var(--white);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(3rem, 8vw, 6rem);
}
.hero h1 { color: var(--white); max-width: 15ch; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.hero .lead { color: #C3D0DC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

.hero-art { position: relative; }
.rack { display: block; width: 100%; max-width: 520px; margin-inline: auto; overflow: visible; }

/* Ilustrasi rak */
.rack-frame { fill: var(--night-2); stroke: #2A4A66; stroke-width: 2; }
.rack .unit { fill: #173249; stroke: #2B4A66; stroke-width: 1.5; }
.rack .port { fill: #08121D; stroke: #35566F; stroke-width: 1.2; }
.rack .port.on { stroke: var(--fiber); fill: #3A1D0B; }
.rack .bay { fill: #0F2336; stroke: #35566F; stroke-width: 1.2; }
.rack .vent { fill: #0F2336; }
.rack .screen { fill: #08121D; stroke: #35566F; stroke-width: 1.2; }
.rack .screen-line { stroke: #35566F; stroke-width: 3; stroke-linecap: round; fill: none; }
.rack .rec { fill: #E5484D; }
.rack .meter { fill: var(--led); opacity: 0.85; }
.rack .meter:nth-of-type(n+5) { opacity: 0.3; }
.rack .led { fill: var(--led); }
.rack .led.amber { fill: var(--fiber); }
.rack .blink { animation: blink 2.6s steps(1, end) infinite; }

.fiber-path { fill: none; stroke: var(--fiber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.fiber-pulse {
    fill: none;
    stroke: #FFD9BD;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8 120;
    animation: travel 3.2s linear infinite;
}
.fiber-end { fill: var(--fiber); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes travel { to { stroke-dashoffset: -128; } }

/* ---------- Seksi umum ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tint { background: var(--paper); }

.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.page-head {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head .lead { margin-bottom: 0; }

.split {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}

/* ---------- Kelompok layanan (beranda) ---------- */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.group { border-top: 3px solid var(--night); padding-top: 1.25rem; }
.group h3 { margin-bottom: 0.4em; }
.group-text { color: var(--ink-soft); font-size: 1rem; }
.group-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.group-list li { border-top: 1px solid var(--line); }
.group-list a {
    display: block;
    padding: 0.9rem 0;
    color: inherit;
    text-decoration: none;
}
.gl-title { display: block; font-weight: 600; color: var(--night); }
.gl-sum { display: block; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.group-list a:hover .gl-title { color: var(--fiber-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Langkah kerja ---------- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: none;
}
.step { padding: 0 1.5rem 0 0; position: relative; }
.step::before {
    content: "";
    display: block;
    height: 2px;
    background: var(--line);
    margin-bottom: 1.25rem;
}
.step-no {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.9rem;
    font: 700 0.95rem/1 var(--font-head);
    color: var(--night);
    background: var(--fiber);
    border-radius: 50%;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.step p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }

/* ---------- Daftar polos ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.plain-list strong { display: block; color: var(--night); font-size: 1.1rem; margin-bottom: 0.2rem; }

.prose p { color: var(--ink); }

.principles { margin: 0; }
.principles > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.principles > div:last-child { border-bottom: 1px solid var(--line); }
.principles dt { font: 700 1.15rem/1.3 var(--font-head); color: var(--night); margin-bottom: 0.25rem; }
.principles dd { margin: 0; color: var(--ink-soft); max-width: 60ch; }

.check-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.check-list li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 0.8rem;
    height: 0.4rem;
    border-left: 2.5px solid var(--fiber);
    border-bottom: 2.5px solid var(--fiber);
    transform: rotate(-45deg) translateY(-50%);
    transform-origin: left top;
}

.text-link { font-weight: 600; }

/* ---------- Halaman layanan ---------- */
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; }
.jump a {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--night);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.jump a:hover { border-color: var(--fiber); color: var(--fiber-text); }

.service-group + .service-group { border-top: 1px solid var(--line); }
.service-row {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding-block: 2rem;
    border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 2px solid var(--night); }
.service-title h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.service-title p { color: var(--ink-soft); }
.service-body p { color: var(--ink); }

/* ---------- CTA ---------- */
.cta { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin-bottom: 0.3em; max-width: 24ch; }
.cta p { margin: 0; color: var(--ink-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info dl { margin: 0; }
.contact-info dl > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.contact-info dl > div:last-child { border-bottom: 1px solid var(--line); }
.contact-info dt { font-size: 0.9rem; color: var(--ink-soft); }
.contact-info dd { margin: 0.1rem 0 0; font-weight: 500; color: var(--night); }
.contact-info dd a { color: var(--night); }
.contact-info dd a:hover { color: var(--fiber-text); }

.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.97rem; margin-bottom: 0.35rem; color: var(--night); }
.optional { font-weight: 400; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid #9AAAB8;
    border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 9rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(242, 106, 27, 0.35); border-color: var(--fiber); }

.has-error input, .has-error select, .has-error textarea { border-color: #C23030; }
.field-error { margin: 0.35rem 0 0; font-size: 0.93rem; color: #A32020; }
.hint { margin: 0.35rem 0 0; font-size: 0.93rem; color: var(--ink-soft); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 4px solid; }
.notice ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.notice-ok { background: #E7F7EF; border-color: #1B9A63; color: #0B4B30; }
.notice-error { background: #FCEBEB; border-color: #C23030; color: #6E1414; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #B7C6D4; padding-top: clamp(2.5rem, 6vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-about p { margin-top: 1rem; font-size: 0.97rem; max-width: 38ch; }
.footer-title { font: 600 1rem/1.3 var(--font-body); color: var(--white); letter-spacing: 0; margin-bottom: 0.9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 0.97rem; }
.footer-list li { padding: 0.25rem 0; }
.site-footer a { color: #DCE6EF; text-decoration-color: rgba(220, 230, 239, 0.35); }
.site-footer a:hover { color: var(--fiber); }
.footer-bottom { border-top: 1px solid #1F3850; padding-block: 1.25rem; font-size: 0.9rem; }
.footer-bottom p { margin: 0; max-width: none; }

/* ---------- Tombol WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    color: var(--white);
    background: #1FA855;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(12, 29, 46, 0.3);
    transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.06); color: var(--white); }

/* ---------- Responsif ---------- */
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 20ch; }
    .hero-art { max-width: 440px; margin-inline: auto; width: 100%; }
    .groups { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
    .split,
    .service-row,
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
    .main-nav .btn { text-align: center; }
}

@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rack .blink,
    .fiber-pulse { animation: none; }
    .btn, .wa-float { transition: none; }
}
