/* === VARIABLES & RESET === */
:root {
  --bg-dark: #0f111a;
  --bg-card: #161b28;
  --primary: #7b61ff;
  --primary-hover: #6248e8;
  --secondary: #00d2a0;
  --text-main: #e0e6ed;
  --text-muted: #94a3b8;
  --border: #2d3748;
  --container-width: 1240px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 25px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 30px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary,
.btn-secondary,
.submit-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-primary,
.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-primary:hover,
.submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(123, 97, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

.desktop-nav {
  display: flex;
  gap: 30px;
}

.nav-item {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-btn-mini {
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
}

.contact-btn-mini:hover {
  background: var(--primary);
  color: #fff;
}

.burger-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 2000;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}

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

.mm-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.mm-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.mm-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.mm-link:hover {
  color: var(--primary);
}

/* === HERO === */
.hero {
  padding-top: 150px;
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(
    circle at top right,
    rgba(123, 97, 255, 0.1),
    transparent 40%
  );
}

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  background: rgba(0, 210, 160, 0.1);
  padding: 5px 12px;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.code-block {
  background: #000;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: monospace;
  font-size: 14px;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.cb-body p {
  margin-bottom: 5px;
  color: #abb2bf;
  font-size: 14px;
}
.kwd {
  color: #c678dd;
}
.str {
  color: #98c379;
}
.num {
  color: #d19a66;
}
.com {
  color: #5c6370;
}
.indent {
  padding-left: 20px;
}

/* === SECTIONS GENERAL === */
.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.sub-h {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
}

.line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin-top: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Feature Card */
.feature-card.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

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

/* Blog Cards */
.dark-bg {
  background: #12151e;
}

.blog-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid transparent;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.bc-img {
  height: 200px;
  overflow: hidden;
}
.bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.blog-card:hover .bc-img img {
  transform: scale(1.1);
}

.bc-content {
  padding: 30px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 15px;
}
.link-arrow:hover {
  gap: 12px;
}

/* Integration */
.row-flex {
  display: flex;
  gap: 60px;
  align-items: center;
}
.row-flex.reverse {
  flex-direction: row-reverse;
}
.txt-side {
  flex: 1;
}
.img-side {
  flex: 1;
}
.img-side img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}
.check-list i {
  color: var(--secondary);
  width: 20px;
}

/* Bento Grid */
.alt-bg {
  background: radial-gradient(
    circle at bottom left,
    rgba(0, 210, 160, 0.05),
    transparent 40%
  );
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

.bento-item {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.bento-item.main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), rgba(123, 97, 255, 0.1));
}

.bento-item i {
  color: var(--secondary);
  margin-bottom: 15px;
  width: 32px;
  height: 32px;
}
.bento-item.main i {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.btn-text {
  color: #fff;
  text-decoration: underline;
  margin-top: auto;
  font-weight: 600;
}

/* Highlight Box */
.center-text {
  text-align: center;
}
.highlight-box {
  background: linear-gradient(180deg, var(--bg-card), #000);
  border: 1px solid var(--primary);
  padding: 60px;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 0 50px rgba(123, 97, 255, 0.1);
}

/* FAQ */
.narrow {
  max-width: 800px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  transition: 0.3s;
}

.faq-question:hover {
  color: var(--primary);
}
.faq-question i {
  transition: 0.3s;
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
  padding: 0 25px;
}

.faq-item.active .faq-answer {
  padding-bottom: 25px;
}

/* FORM */
.form-section {
  background: #0b0d12;
}
.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.ci-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.ci-item i {
  color: var(--primary);
}

.cyber-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
}

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

.form-checkbox {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}
.form-checkbox label {
  white-space: nowrap;
}

.submit-btn {
  width: 100%;
  font-size: 1.1rem;
}

/* FOOTER */
.footer {
  background: #000;
  padding: 80px 0 20px;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0.6;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

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

.footer-contact-link {
  color: var(--secondary) !important;
  font-weight: 600;
  margin-top: 20px;
}

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

/* COOKIE */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  padding: 25px;
  border-radius: 12px;
  z-index: 5000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.cookie-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
}
.cookie-btn:hover {
  background: #ddd;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .burger-btn {
    display: block;
  }
  .desktop-nav,
  .header-actions .contact-btn-mini {
    display: none;
  }
  .hero-container,
  .grid-2,
  .form-wrapper,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .row-flex,
  .row-flex.reverse {
    display: flex;
    flex-direction: column;
  }
  .grid-3,
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item.main {
    grid-column: 1;
    grid-row: auto;
  }
  .form-checkbox label {
    white-space: normal;
  } /* Allow wrap on mobile */
  .hero-visual {
    display: none;
  } /* Hide heavy visual on mobile */
  h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
  h1 {
    font-size: 2.2rem;
  }
  .cookie-modal {
    left: 20px;
    right: 20px;
    width: auto;
  }
}

.pages {
  padding: 120px 0;
}

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

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  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 h3 {
  color: #000000;
  margin-bottom: 20px;
}

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

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

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

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

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

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
}

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

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
