/* CloudAxis SaaS — style.css */
:root {
  --primary: #0d1117;
  --primary-light: #161b22;
  --accent: #58a6ff;
  --accent-dark: #388bfd;
  --accent-glow: rgba(88, 166, 255, 0.15);
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --text: #1c2128;
  --text-muted: #57606a;
  --border: #d0d7de;
  --white: #ffffff;
  --success: #3fb950;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

/* ── DEMO BAR ── */
.demo-bar {
  background: #1a1a2e;
  color: #fff;
  font-size: .8rem;
  text-align: center;
  padding: .45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.demo-bar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.demo-bar a:hover { text-decoration: underline; }

/* ── NAV ── */
header {
  background: var(--primary);
  position: sticky;
  top: 2.2rem;
  z-index: 999;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--white);
}
.nav-brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav-brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.5px;
}
.nav-brand-text span { color: var(--accent); }

.nav-toggle { display: none; }
.nav-hamburger {
  display: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-menu a {
  display: block;
  padding: .4rem .75rem;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(88,166,255,.15);
  color: var(--accent);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  margin-left: .5rem;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary-light);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1rem 1rem;
    gap: .2rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-menu a { padding: .65rem .9rem; }
  .nav-cta { margin-left: 0; text-align: center; }
  header { position: sticky; top: 2.2rem; }
}

/* ── UTIL ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  line-height: 1.25;
}
.section-dark .section-title { color: var(--white); }
.section-desc {
  margin-top: .75rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-desc { color: rgba(255,255,255,.6); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline-dark:hover { background: var(--accent); color: var(--primary); }

.tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
  border: 1px solid rgba(88,166,255,.3);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── HERO (index) ── */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 0%, rgba(88,166,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(88,166,255,.12);
  border: 1px solid rgba(88,166,255,.3);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.75px;
  margin-bottom: 1.25rem;
}
.hero h1 .hl { color: var(--accent); }
.hero-desc {
  color: rgba(255,255,255,.68);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 4rem 0; }
}

/* ── STATS ── */
.stats-band {
  background: var(--primary-light);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(88,166,255,.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--primary-light);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.testimonial-text {
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid rgba(88,166,255,.3);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--white); font-size: .9rem; }
.testimonial-role { font-size: .78rem; color: rgba(255,255,255,.45); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1628 100%);
  border: 1px solid rgba(88,166,255,.15);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(88,166,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.6); margin-bottom: 1.75rem; }
.cta-band .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── ABOUT PAGE ── */
.about-hero {
  background: var(--primary);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.about-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .75rem; }
.about-hero p { color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto; }

.milestone-list { list-style: none; }
.milestone-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.milestone-item:last-child { border-bottom: none; }
.milestone-year {
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
  min-width: 55px;
  padding-top: .1rem;
}
.milestone-text { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }
.milestone-text strong { color: var(--text); }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.vm-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; color: var(--accent); }
.vm-card p { color: var(--text-muted); line-height: 1.7; font-size: .92rem; }
@media (max-width: 600px) { .vm-grid { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-glow), rgba(88,166,255,.3));
  border: 2px solid rgba(88,166,255,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 1rem;
}
.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.team-card .role { font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.team-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.cert-badge svg { color: var(--accent); flex-shrink: 0; }

/* ── LAYANAN PAGE ── */
.layanan-hero {
  background: var(--primary);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.layanan-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .75rem; }
.layanan-hero p { color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto; }

.layanan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.layanan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.layanan-icon {
  width: 56px; height: 56px;
  background: var(--accent-glow);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.layanan-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.layanan-card > p { color: var(--text-muted); font-size: .9rem; line-height: 1.65; margin-bottom: 1rem; }
.fitur-list { list-style: none; margin-bottom: 1.25rem; flex: 1; }
.fitur-list li {
  font-size: .87rem;
  color: var(--text-muted);
  padding: .3rem 0;
  padding-left: 1.3rem;
  position: relative;
}
.fitur-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.price-tag {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.price-tag strong { color: var(--accent); font-size: 1rem; }

.layanan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .layanan-grid { grid-template-columns: 1fr; } }

/* ── PORTOFOLIO PAGE ── */
.porto-hero {
  background: var(--primary);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.porto-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .75rem; }
.porto-hero p { color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto; }

/* CSS-only filter */
.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; justify-content: center; }
.filter-group input[type=radio] { display: none; }
.filter-group label {
  padding: .45rem 1.1rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
}
.filter-group input[type=radio]:checked + label {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.porto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .porto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .porto-grid { grid-template-columns: 1fr; } }

.porto-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.porto-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.porto-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--primary) 0%, #0a1e3d 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.porto-thumb-icon { color: rgba(88,166,255,.4); }
.porto-body { padding: 1.25rem; }
.porto-type {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: .35rem;
}
.porto-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.porto-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: .75rem; }
.porto-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.porto-year { font-size: .75rem; color: var(--text-muted); }
.porto-impact { font-size: .75rem; color: var(--success); font-weight: 600; }

/* ── KONTAK PAGE ── */
.kontak-hero {
  background: var(--primary);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.kontak-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .75rem; }
.kontak-hero p { color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto; }

.kontak-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; }
@media (max-width: 780px) { .kontak-grid { grid-template-columns: 1fr; } }

.kontak-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.kontak-info-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.info-row {
  display: flex;
  gap: .85rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.info-row:last-of-type { margin-bottom: 0; }
.info-icon {
  width: 38px; height: 38px;
  background: var(--accent-glow);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.info-content { font-size: .88rem; }
.info-content strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: .15rem; }
.info-content a { color: var(--accent); text-decoration: none; }
.info-content a:hover { text-decoration: underline; }

.jam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .75rem; margin-top: 1rem; font-size: .85rem; }
.jam-grid dt { color: var(--text-muted); }
.jam-grid dd { font-weight: 600; }

.map-placeholder {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: .85rem;
  position: relative;
  overflow: hidden;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,166,255,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-brand { margin-bottom: .75rem; display: inline-flex; }
.footer-brand p { font-size: .85rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: .9rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .8rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
