/* ========== VARIABLES ========== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg-light: #ffffff;
  --bg-soft: #f8fafc;
  --text-dark: #1e1b4b;
  --text-soft: #64748b;
  --border-light: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 30px -10px rgba(99, 102, 241, 0.15);
  --transition: all 0.2s ease;
  --radius-card: 24px;
  --radius-btn: 50px;
}

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.bg-soft {
  background: var(--bg-soft);
}

/* ========== TYPOGRAPHY ========== */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ========== HEADER ========== */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease, transform 0.3s ease;
}

.glass-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: transparent;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.15s;
  font-size: 0.95rem;
}

.desktop-nav a:hover {
  color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  padding: 20px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

/* ========== FLOATING WA ========== */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  z-index: 99;
  transition: transform 0.15s;
  text-decoration: none;
}

.floating-wa:hover {
  transform: scale(1.08);
}

/* ========== HERO ========== */
.hero {
  padding: 50px 0 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.typing-text {
  display: inline-block;
  border-right: 2px solid var(--primary);
  padding-right: 6px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: transparent; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 20px 0 28px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border-light);
  background: white;
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: 36px;
  margin-top: 36px;
}

.metric .metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.metric-label {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

.hero-img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}

.tech-stack {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  font-size: 1.8rem;
  color: #94a3b8;
  justify-content: center;
}

.tech-stack i {
  transition: color 0.15s;
  cursor: default;
}

.tech-stack i:hover {
  color: var(--primary);
}

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 40px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.section-header p {
  color: var(--text-soft);
  margin-top: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== DOMAIN CHECKER ========== */
.domain-checker-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  max-width: 700px;
  margin: 0 auto;
  transition: var(--transition);
}

.input-group {
  margin-bottom: 0;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-icon {
  color: #94a3b8;
  font-size: 1.2rem;
  margin-left: 4px;
}

.input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 4px;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  outline: none;
  min-width: 0;
}

.input-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.btn-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-check:hover {
  background: var(--primary-dark);
}

.btn-check:active {
  transform: scale(0.97);
}

/* Loading */
.loading-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 20px 0 0;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.loading-spinner.hidden {
  display: none;
}

.loading-spinner i {
  color: var(--primary);
  font-size: 1.3rem;
}

/* Status Box */
.status-box {
  margin-top: 20px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid var(--border-light);
  animation: fadeSlideIn 0.3s ease;
}

.status-box.hidden {
  display: none;
}

.status-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.status-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.status-box[data-status="available"] .status-icon-wrap {
  background: #dcfce7;
  color: var(--success);
}

.status-box[data-status="taken"] .status-icon-wrap {
  background: #fee2e2;
  color: var(--danger);
}

.status-box[data-status="error"] .status-icon-wrap {
  background: #fef3c7;
  color: var(--warning);
}

.status-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.status-info p {
  color: #475569;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.whois-extra {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: #f1f5f9;
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.whois-extra.hidden {
  display: none;
}

.whois-extra span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.whois-extra i {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  background: var(--success);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-continue:hover {
  background: #059669;
}

.btn-continue:active {
  transform: scale(0.98);
}

.btn-continue.hidden {
  display: none;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== PRICING DOMAIN ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 28px 18px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-light);
  position: relative;
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.popular {
  border: 2px solid var(--primary);
}

.popular-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 18px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

.pricing-tld {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 8px 0 2px;
  color: var(--text-dark);
}

.price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
}

.pricing-header p {
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 20px 0 24px;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.pricing-features i {
  color: var(--success);
  width: 16px;
  flex-shrink: 0;
}

.btn-pricing {
  display: block;
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-pricing:hover {
  background: var(--primary);
  color: white;
}

.btn-primary-pricing {
  background: var(--primary);
  color: white;
}

/* ========== KEUNGGULAN ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  padding: 32px 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-light);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.service-icon {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #e2e8f0;
  padding: 60px 0 0;
  border-top: none;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.footer-logo-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-brand p {
  color: #a0aec0;
  max-width: 320px;
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.link-group h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.link-group h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.link-group a {
  display: block;
  text-decoration: none;
  color: #a0aec0;
  margin-bottom: 12px;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.link-group a i {
  margin-right: 8px;
  font-size: 0.75rem;
  color: var(--primary);
}

.link-group a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: #a0aec0;
  font-size: 0.85rem;
}

.footer-bottom i {
  color: #e74c3c;
  margin: 0 4px;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: white;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .pricing-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero-container,
  .pricing-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 60px 0;
  }

  .hero {
    padding: 30px 0 50px;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-metrics {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 30px;
  }

  .input-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .btn-check {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-logo {
    justify-content: center;
  }

  .link-group h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .link-group {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .domain-checker-card {
    padding: 20px 14px;
  }

  .status-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .whois-extra {
    justify-content: center;
  }
}