/* ================================================================
   REMKA PRIMA PERKASA - Premium Mobile CSS
   ================================================================ */

/* === BASE RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--green); color: var(--white); }

/* === VARIABLES === */
:root {
    --navy: #0a1628;
    --navy-light: #132040;
    --blue: #1a6bff;
    --green: #22c55e;
    --white: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --text-soft: #64748b;
    --text-light: #94a3b8;
    --border: rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === SECTION === */
.section {
    padding: 60px 0;
}

/* === TYPOGRAPHY === */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}
.section-label::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--green);
    border-radius: 1px;
}
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-desc {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.brand-tag {
    color: var(--text-light);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* === MOBILE MENU TOGGLE === */
.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}
.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle.active {
    background: var(--white);
}
.menu-toggle.active span {
    background: var(--white);
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === MOBILE DROPDOWN MENU === */
.nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 12px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition);
}
.nav-links.open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    text-align: left;
}
.nav-link:hover, .nav-link.active {
    background: var(--surface);
    color: var(--blue);
}
.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    text-align: center !important;
    margin-top: 4px;
    border-radius: 10px !important;
}
.nav-cta:hover {
    background: #3d8aff !important;
}

/* === HERO === */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}
.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-glow.blue {
    top: -100px;
    right: -50px;
    background: rgba(26,107,255,0.2);
}
.hero-glow.green {
    bottom: -150px;
    left: 10%;
    background: rgba(34,197,94,0.15);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    margin-bottom: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}
.hero h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.hero h1 span {
    background: linear-gradient(135deg, #4ade80, #3d8aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--green), #4ade80);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-num {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}
.stat-label {
    color: var(--text-light);
    font-size: 0.65rem;
    margin-top: 4px;
}

/* === ABOUT SECTION === */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.about-visual {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.about-logo-large {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}
.about-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.about-visual-text h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.about-visual-text p {
    color: var(--text-soft);
    font-size: 0.85rem;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
}
.about-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.about-feature-icon.blue {
    background: rgba(26,107,255,0.1);
    color: var(--blue);
}
.about-feature-icon.green {
    background: rgba(34,197,94,0.1);
    color: var(--green);
}
.about-feature-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* === SERVICES === */
.services {
    background: var(--surface);
}
.services-header {
    text-align: center;
    margin-bottom: 32px;
}
.services-header .section-label {
    justify-content: center;
}
.services-header .section-desc {
    margin-inline: auto;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:active {
    transform: scale(0.98);
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    opacity: 0;
    transition: var(--transition);
}
.service-card:active::before {
    opacity: 1;
}
.service-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--surface);
    position: absolute;
    top: 16px;
    right: 16px;
    line-height: 1;
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.service-icon.blue {
    background: rgba(26,107,255,0.1);
    color: var(--blue);
}
.service-icon.green {
    background: rgba(34,197,94,0.1);
    color: var(--green);
}
.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.service-card p {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* === WORKFLOW === */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.workflow-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.workflow-step {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), #3d8aff);
    color: var(--white);
    flex-shrink: 0;
}
.workflow-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.workflow-item p {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* === VALUES === */
.values {
    background: var(--surface);
}
.values-header {
    text-align: center;
    margin-bottom: 32px;
}
.values-header .section-label {
    justify-content: center;
}
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.value-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.value-card:active {
    transform: scale(0.98);
}
.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.value-icon.blue {
    background: rgba(26,107,255,0.1);
    color: var(--blue);
}
.value-icon.green {
    background: rgba(34,197,94,0.1);
    color: var(--green);
}
.value-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.value-card p {
    font-size: 0.82rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* === CTA BAND === */
.cta-band {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 48px 20px;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-text h2 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}
.cta-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* === CONTACT === */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: rgba(26,107,255,0.1);
    color: var(--blue);
}
.contact-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 2px;
}
.contact-item-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.5;
}
.contact-form {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-form h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
    -webkit-appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,107,255,0.1);
}
textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* === PAGE HEADER === */
.page-header {
    padding: 100px 0 40px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}
.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* === FOOTER === */
.footer {
    background: var(--white);
    padding: 40px 20px 20px;
    color: var(--white);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand .brand-name {
    color: var(--white);
}
.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.6;
}
.footer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 4px 0;
}
.footer-links a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* === REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === TOUCH FEEDBACK === */
@media (hover: none) {
    .service-card:active,
    .value-card:active,
    .about-feature:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
}

/* === SAFE AREA (iPhone) === */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    .hero {
        padding-top: calc(100px + env(safe-area-inset-top));
    }
    .page-header {
        padding-top: calc(100px + env(safe-area-inset-top));
    }
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* === LANDSCAPE === */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .page-header {
        padding: 80px 0 30px;
    }
}

/* === TABLET (768px+) === */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    .section {
        padding: 80px 0;
    }
    .nav-inner {
        height: 80px;
        padding: 0 40px;
    }
    .brand img {
        height: 48px;
    }
    .brand-name {
        font-size: 1rem;
    }
    .menu-toggle {
        display: none;
    }
    .nav-links {
        display: flex !important;
        position: static;
        background: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        min-width: auto;
        flex-direction: row;
        gap: 24px;
        opacity: 1;
        transform: none;
    }
    .nav-link {
        padding: 8px 0;
        font-size: 0.88rem;
        color: var(--text-soft);
        border-bottom: none;
        text-align: left;
        width: auto;
    }
    .nav-link:hover, .nav-link.active {
        background: none;
        color: var(--white);
    }
    .nav-cta {
        padding: 10px 24px;
        margin-top: 0;
        border-radius: var(--radius-pill, 100px) !important;
        text-align: center !important;
    }
    .hero {
        padding: 120px 0 80px;
    }
    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .hero-actions {
        flex-direction: row;
        gap: 16px;
    }
    .hero-actions .btn {
        width: auto;
    }
    .about-grid {
        flex-direction: row;
        gap: 40px;
        align-items: center;
    }
    .about-visual {
        flex: 0 0 40%;
    }
    .about-content {
        flex: 1;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        flex-direction: row;
        gap: 40px;
    }
    .contact-info {
        flex: 0 0 40%;
    }
    .contact-form {
        flex: 1;
    }
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    .page-header {
        padding: 140px 0 60px;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* === DESKTOP (1024px+) === */
@media (min-width: 1024px) {
    .container {
        padding: 0 60px;
    }
    .section {
        padding: 100px 0;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .workflow-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
