/* Variables */
:root {
  --bg-main: #0f172a;
  --bg-secondary: #1e293b;
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --gradient: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

/* Components */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-main);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

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

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.1);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--bg-main);
  border: none;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: "Courier New", monospace;
}

.logo i {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
}

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

.btn-nav {
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 4px;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  width: 100%;
  height: 2px;
  background: var(--text-main);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.close-menu {
  position: absolute;
  top: 25px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-links a {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(34, 211, 238, 0.05) 0%,
    transparent 50%
  );
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.tech-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: pulse 4s infinite;
}

.hero-icon {
  width: 100px;
  height: 100px;
  color: var(--accent);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.1);
  }
  70% {
    box-shadow: 0 0 0 50px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

/* About Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.code-window {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.window-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ef4444;
}
.yellow {
  background: #eab308;
}
.green {
  background: #22c55e;
}

.window-body pre {
  color: var(--accent);
  font-family: monospace;
}

/* Features */
.bg-darker {
  background-color: #0b1120;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

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

.feature-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
}

.feature-card i {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.cta-mini {
  text-align: center;
  margin-top: 40px;
}

.link-arrow {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Process */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step {
  position: relative;
  padding-top: 20px;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: -20px;
  left: 0;
}

/* Blog */
.bg-gradient {
  background: var(--gradient);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.blog-post {
  background: var(--bg-main);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.post-content {
  padding: 30px;
}

.read-more {
  color: var(--accent);
  margin-top: 15px;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* FAQ */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-secondary);
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-header i {
  transition: 0.3s;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: 0.3s;
}

.faq-body p {
  padding-bottom: 20px;
}

.faq-item.active .faq-body {
  max-height: 200px;
}

.faq-item.active .faq-header {
  color: var(--accent);
}

.faq-item.active .faq-header i {
  transform: rotate(180deg);
}

/* Contact */
.contact-section {
  background-color: #0b1120;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 50px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 5px;
}

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

.form-check {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.form-check input {
  margin-top: 5px;
}

.form-check label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  display: block;
  margin-top: 5px;
  height: 14px;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--bg-main);
  padding: 14px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--accent-hover);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
  background: var(--bg-main);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 20px;
}

.footer-col h4 {
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-links {
  list-style: none;
}

.legal-links li {
  margin-bottom: 10px;
}

.legal-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--accent);
  padding: 20px 0;
  z-index: 5000;
  transition: 0.5s ease-out;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media (max-width: 992px) {
  .grid-2,
  .hero-content,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .steps-container {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .hero-content {
    gap: 30px;
    text-align: center;
    margin-top: 20px;
  }
  .hero-actions {
    justify-content: center;
  }
  .image-block,
  .hero-image {
    margin-top: 30px;
  }
}

@media (max-width: 950px) {
  .desktop-nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  h2 {
    font-size: 2rem;
  }
  .hero-text {
    margin-bottom: 30px;
  }
  .tech-circle {
    margin-bottom: 50px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: #6366f1;
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f1f1f1;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #64748b;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper a {
  color: #0b1120;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #000000;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: #6366f1;
  top: 0;
}

.text-wrapper strong {
  color: #4f46e5;
}

.text-wrapper a.email {
  color: #6366f1;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
}
