/* ==============================================================================
   Duety — Official Web Portal Stylesheet
   Koonsulty Product Standard (Dark Glassmorphism)
   ============================================================================== */

:root {
  --bg-dark: #0b0c10;
  --bg-surface: #12141c;
  --bg-card: rgba(20, 24, 36, 0.72);
  --bg-card-hover: rgba(28, 34, 52, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.28);
  --border-glow-purple: rgba(157, 78, 221, 0.35);

  --cyan: #00f0ff;
  --cyan-bright: #38bdf8;
  --blue: #4facfe;
  --purple: #9d4edd;
  --purple-electric: #8b5cf6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Glows */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
}

body::before {
  top: -120px;
  left: 15%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, var(--cyan), var(--purple-electric));
}

body::after {
  bottom: 5%;
  right: 10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--purple), #e100ff);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.logo-brand img,
.logo-brand svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.logo-suite-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0099ff);
  color: #05070d;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.45);
  background: linear-gradient(135deg, #33f3ff, #1aa3ff);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), #7928ca);
  color: #fff;
  box-shadow: 0 4px 18px rgba(157, 78, 221, 0.35);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(157, 78, 221, 0.5);
}

/* Hero Section */
.hero {
  padding: 85px 0 50px 0;
  text-align: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  font-size: 1.22rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px auto;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

/* Simulator Section */
.comparator-section {
  padding: 30px 0 60px 0;
}

.simulator-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.simulator-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}

.simulator-title h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.simulator-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.simulator-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.sim-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-btn:hover {
  color: #fff;
}

.sim-btn.active {
  background: rgba(0, 240, 255, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.comparison-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.arena-card {
  background: rgba(14, 17, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s ease;
}

.arena-card.card-duety {
  border-color: var(--border-glow);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.08);
}

.arena-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.badge-lag {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-duety {
  background: rgba(0, 240, 255, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.canvas-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: #07080d;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: crosshair;
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arena-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.arena-stats span strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-top: 2px;
}

.stat-good {
  color: var(--cyan) !important;
}

.stat-bad {
  color: #f87171 !important;
}

.interactive-hint {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Features Section */
.features-section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-head h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.icon-cyan {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
}

.icon-purple {
  background: rgba(157, 78, 221, 0.12);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: var(--purple);
}

.icon-blue {
  background: rgba(79, 172, 254, 0.12);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: var(--blue);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Suite Banner */
.suite-banner-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.09), rgba(157, 78, 221, 0.14));
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 22px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
}

/* Pricing Section */
.pricing-section {
  padding: 60px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  background: rgba(22, 28, 44, 0.88);
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.18);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #05070d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

.tier-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.tier-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-height: 42px;
  margin-bottom: 18px;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
}

.price-amount {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.tier-features .check {
  color: var(--cyan);
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
}

/* Downloads Section */
.downloads-section {
  padding: 60px 0;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dl-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s;
}

.dl-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
}

.dl-info h4 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dl-card .btn {
  width: 100%;
}

/* Instructions Guide */
.guide-section {
  padding: 50px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-card h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}

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

/* Modal Dialog */
dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 480px;
  width: 90%;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

dialog::backdrop {
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  background: #141724;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 24px;
  padding: 32px;
  color: #fff;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.35rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: #090a10;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 60px;
  background: #07080b;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 980px) {
  .hero h1 { font-size: 2.6rem; }
  .grid-3, .pricing-grid, .download-cards, .steps-grid { grid-template-columns: 1fr; }
  .comparison-arena { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .nav-links { display: none; }
}
