:root {
  --color-bg: #f3f4f6;
  --color-surface: #ffffff;
  --color-dark: #1e1b4b;
  --color-dark-alt: #312e81;
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-secondary: #fb7185;

  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f9fafb;

  --border-color: #e5e7eb;

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --transition: 0.3s ease;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

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

.text-center {
  text-align: center;
}
.text-white {
  color: var(--text-light);
}
.text-white p {
  color: #d1d5db;
}
.max-w-800 {
  max-width: 800px;
  margin-inline: auto;
}
.mt-8 {
  margin-top: 32px;
}
.w-full {
  width: 100%;
}

.divider {
  width: 64px;
  height: 4px;
  background-color: var(--color-accent);
  margin-bottom: 32px;
}

.center-divider {
  margin: 0 auto 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background-color: var(--color-dark);
  color: var(--color-surface);
}

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

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

.btn-outline-white:hover {
  background-color: var(--color-surface);
  color: var(--color-dark);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1100;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.burger-btn {
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  transition: var(--transition);
}

.burger-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: var(--transition);
}

.burger-btn:hover {
  border-color: var(--color-dark);
}

/* Side Panel */
.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  pointer-events: none;
  display: flex;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.side-panel-content {
  position: relative;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background-color: var(--color-dark);
  z-index: 2;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px;
  overflow-y: auto;
}

body.no-scroll .side-panel {
  pointer-events: auto;
}
body.no-scroll .panel-backdrop {
  opacity: 1;
}
body.no-scroll .side-panel-content {
  transform: translateX(0);
}

.close-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--color-surface);
  cursor: pointer;
  padding: 8px;
}

.close-panel i {
  width: 32px;
  height: 32px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
}

.side-link {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: #9ca3af;
  display: inline-block;
}

.side-link:hover {
  color: var(--color-surface);
  transform: translateX(10px);
}
.accent-link {
  color: var(--color-accent) !important;
}

.side-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6b7280;
  font-size: 0.95rem;
}

/* Sections Global */
.blog-section {
  padding: 120px 0;
}
@media (max-width: 768px) {
  .blog-section {
    padding: 80px 0;
  }
}

.bg-surface {
  background-color: var(--color-surface);
}
.bg-dark {
  background-color: var(--color-dark);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.align-items-center {
  align-items: center;
}

@media (max-width: 991px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .reverse-grid .blog-visual {
    order: 2;
  }
  .reverse-grid .blog-text {
    order: 1;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 75, 0.95),
    rgba(30, 27, 75, 0.7)
  );
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  color: var(--color-surface);
}

.hero-content h1 {
  color: var(--color-surface);
  margin-bottom: 24px;
}
.hero-content p {
  color: #d1d5db;
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--color-accent);
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Visual Cards */
.image-card img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.icon-large {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 32px;
}
.icon-large i {
  width: 40px;
  height: 40px;
}

/* Features Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.article-card {
  background: var(--color-bg);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-dark);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--color-dark);
  color: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.card-icon i {
  width: 32px;
  height: 32px;
}

/* Case Cards */
.case-card {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.case-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
}
.case-body {
  padding: 32px;
}

/* Info Box */
.info-box {
  background: var(--color-dark);
  padding: 48px;
  border-radius: var(--radius-lg);
  color: var(--color-surface);
}

.info-box h3 {
  color: var(--color-surface);
}
.info-box p {
  color: #d1d5db;
  margin-bottom: 32px;
}
.info-box i {
  width: 48px;
  height: 48px;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

/* FAQ */
.faq-wrapper {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--color-dark);
}

.faq-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: left;
}

@media (max-width: 576px) {
  .faq-button {
    padding: 20px 24px;
  }
}

.faq-button span {
  padding-right: 24px;
}
.faq-button i {
  color: var(--color-accent);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.active .faq-button i {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-content p {
  padding: 0 32px 32px;
  margin-bottom: 0;
}
@media (max-width: 576px) {
  .faq-content p {
    padding: 0 24px 24px;
  }
}

/* Contact Form */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
}
.contact-row i {
  color: var(--color-accent);
  flex-shrink: 0;
}

.form-wrapper {
  background: var(--color-surface);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
  .form-wrapper {
    padding: 32px 24px;
  }
}

.tech-form h3 {
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.tech-form input[type="text"],
.tech-form input[type="tel"],
.tech-form input[type="email"],
.tech-form input[type="number"] {
  width: 100%;
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.tech-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.checkbox-group input {
  margin-top: 6px;
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-group a {
  color: var(--color-dark);
  text-decoration: underline;
  font-weight: 500;
}
.checkbox-group a:hover {
  color: var(--color-accent);
}

/* Footer */
.footer {
  background-color: var(--color-surface);
  padding: 80px 0 24px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}

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

.footer-brand .logo {
  margin-bottom: 24px;
}
.footer-brand p {
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links-group h4,
.footer-contact h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}
.footer-links i {
  color: var(--color-dark);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-accent-link {
  color: var(--color-dark) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-block;
  margin-top: 8px;
}

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

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 32px;
  left: 32px;
  max-width: 450px;
  background: var(--color-dark);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 576px) {
  .cookie-modal {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
  }
}

.cookie-modal.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-box {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-icon i {
  color: var(--color-secondary);
  width: 32px;
  height: 32px;
}
.cookie-text h4 {
  color: var(--color-surface);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.cookie-text p {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 0;
}
.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

#accept-cookies {
  width: 100%;
}

.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;
  display: flex;
  justify-content: center;
}

.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;
  }
}
