:root {
  --bg-color: #0a0a0c;
  --card-bg: #111114;
  --border-color: #1c1c22;
  --accent-cyan: #00d4ff;
  --accent-hover: #00b8d9;
  --text-primary: #e8e8ed;
  --text-muted: #6b6b78;
  --font-family: 'Inter', sans-serif;
}

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

body {
  background: 
    radial-gradient(circle at 50% -20%, rgba(0, 212, 255, 0.15) 0%, rgba(10, 10, 12, 1) 60%),
    url('../img/hero_bg.png') no-repeat center top / cover fixed;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-button {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.nav-button:hover {
  border-color: var(--accent-cyan);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  padding: 6rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent-cyan), #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-cyan);
  color: var(--bg-color);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--accent-hover);
}

.section-container {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-align: center;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bots-grid {
  grid-template-columns: repeat(3, 1fr);
}

.plan-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.05);
}

.plan-card.popular {
  border-color: var(--border-color);
}
.plan-card.popular:hover {
  border-color: var(--accent-cyan);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-cyan);
  color: var(--bg-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-specs {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-specs li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.plan-specs li i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.location-select {
  width: 100%;
  background-color: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236b6b78%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

.location-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.buy-button {
  width: 100%;
  background-color: var(--accent-cyan);
  color: var(--bg-color);
  border: none;
  padding: 0.875rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s, opacity 0.2s;
}

.buy-button:hover {
  background-color: var(--accent-hover);
}

.buy-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

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

footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links i {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .bots-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

.plan-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(20px);
  animation: slideUpModal 0.4s ease-out forwards;
}

@keyframes slideUpModal {
  to { transform: translateY(0); }
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-family);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.submit-btn {
  width: 100%;
  background: var(--accent-cyan);
  color: var(--bg-color);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--accent-hover);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* --- COOKIE TERMINAL --- */
.cookie-terminal {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 400px;
    max-width: calc(100vw - 4rem);
    background-color: #131316;
    border: 1px solid #FFB800;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.cookie-header {
    background-color: #FFB800;
    color: #09090b;
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}
.cookie-body {
    padding: 1.5rem 1rem 1rem 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #FAFAFA;
}
.cookie-actions {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    gap: 1rem;
}
.btn-cookie {
    background: transparent;
    border: 1px solid #27272A;
    color: #A1A1AA;
    font-family: monospace;
    padding: 0.5rem 1rem;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}
.btn-cookie.accept {
    border-color: #FFB800;
    color: #FFB800;
}
.btn-cookie.accept:hover {
    background: #FFB800;
    color: #09090b;
}
.btn-cookie.reject:hover {
    background: #27272A;
    color: #FAFAFA;
}

/* --- 3D CONTACT DOCK (EXPANDABLE) --- */
.contact-dock {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    z-index: 9998;
    perspective: 1000px;
}
.mech-key {
    display: block;
    height: 50px;
    background: #000;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 6px 0 #27272A, 0 10px 15px rgba(0,0,0,0.5);
    border: none;
    outline: none;
}
.mech-key .key-face {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 14px;
    background: #131316;
    border: 1px solid #27272A;
    border-radius: 6px;
    color: #A1A1AA;
    transform: translateY(-6px);
    transition: transform 0.1s, color 0.2s, border-color 0.2s, padding 0.3s ease;
    overflow: hidden;
}
.key-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: fill 0.2s;
}
.key-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.2s ease 0.1s, margin-left 0.3s ease;
    margin-left: 0;
}
.mech-key:hover .key-face {
    color: #FFB800;
    border-color: #FFB800;
    padding: 0 20px;
}
.mech-key:hover .key-text {
    max-width: 100px;
    opacity: 1;
    margin-left: 8px;
}
.mech-key:active {
    box-shadow: 0 0 0 #27272A, 0 0 5px rgba(0,0,0,0.5);
    transform: translateY(6px);
}
.mech-key:active .key-face {
    transform: translateY(0);
}
@media (max-width: 768px) {
    .contact-dock {
        right: 1rem;
        bottom: 1rem;
        gap: 0.75rem;
    }
}

    .mech-key { width: 50px; height: 50px; }
    .cookie-terminal { left: 1rem; bottom: 1rem; width: calc(100vw - 2rem); }
}
