/* --- RESET & VARIABLES --- */
:root {
  /* Palette: Premium Dark & Clean White */
  --c-dark: #0f1115;
  --c-gray: #5b6b7c;
  --c-light: #f4f6f8;
  --c-white: #ffffff;
  --c-accent: #3b82f6; /* Royal Blue */
  --c-accent-hover: #2563eb;

  /* Spacing & Sizes */
  --header-h: 80px;
  --container: 1240px;

  /* Font */
  --font-main: 'Manrope', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--c-light);
  color: var(--c-dark);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img,
svg {
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.btn--primary {
  background-color: var(--c-dark);
  color: var(--c-white);
  border: 1px solid var(--c-dark);
}

.btn--primary:hover {
  background-color: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--c-dark);
  letter-spacing: -0.03em;
}

.logo__icon {
  color: var(--c-accent);
}

/* Nav Desktop */
.nav__list {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-weight: 500;
  color: var(--c-gray);
  font-size: 15px;
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--c-dark);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--c-accent);
  transition: 0.3s;
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger */
.burger {
  display: none;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 102;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-dark);
  position: absolute;
  transition: 0.3s;
}

.burger__line:first-child {
  top: 0;
}
.burger__line:last-child {
  bottom: 0;
}

.burger.active .burger__line:first-child {
  transform: rotate(45deg);
  top: 9px;
}
.burger.active .burger__line:last-child {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--c-white);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 101;
}

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

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

.mobile-menu__link {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-dark);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--c-white);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto; /* Push to bottom if content is short */
}

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

.footer__col--brand {
  padding-right: 40px;
}

.footer__desc {
  margin-top: 20px;
  color: var(--c-gray);
  font-size: 14px;
  line-height: 1.6;
}

.footer__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--c-dark);
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--c-gray);
  font-size: 14px;
}

.footer__links a:hover {
  color: var(--c-accent);
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--c-gray);
  font-size: 14px;
}

.footer__contacts i {
  width: 18px;
  height: 18px;
  color: var(--c-accent);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px 30px;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 18px;
  }
  .header__actions .btn {
    display: none;
  } /* Hide button on mobile header, keep burger */
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 120px 0 80px; /* Top padding to account for fixed header */
  min-height: 90vh; /* Takes up most of the screen */
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(59, 130, 246, 0.1); /* Light Blue bg */
  color: var(--c-accent);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__badge i {
  width: 16px;
  height: 16px;
}

/* Typography */
.hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--c-dark);
}

.text-accent {
  color: var(--c-accent);
  background: linear-gradient(135deg, var(--c-accent) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 18px;
  color: var(--c-gray);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
}

/* Actions */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-gray);
  font-weight: 500;
}

.hero__info i {
  color: #10b981; /* Green checkmark */
  width: 18px;
  height: 18px;
}

/* Visual / 3D Canvas */
.hero__visual {
  width: 100%;
  height: 500px;
  position: relative;
  z-index: 1;
}

/* Responsive Hero */
@media (max-width: 991px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
    text-align: center;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    height: 400px;
    order: -1; /* Move visual to top on mobile */
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 32px;
  }
}

/* --- TECH SECTION (No Cards Layout) --- */
.tech {
    padding: 100px 0;
    background-color: var(--c-white);
}

.tech__header {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--c-dark);
}

.section-title .text-gray {
    color: #94a3b8; /* Muted text for stylistic contrast */
}

.section-desc {
    font-size: 18px;
    color: var(--c-gray);
    max-width: 600px;
    line-height: 1.6;
}

/* Rows Styles */
.tech__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tech__row {
    display: grid;
    grid-template-columns: 80px 1fr 60px; /* Number - Content - Icon */
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Background sliding or slight shift */
.tech__row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--c-light);
    z-index: 0;
    transition: width 0.4s ease;
}

.tech__row:hover::before {
    width: 100%;
}

.tech__row > * {
    position: relative; /* Bring content above hover bg */
    z-index: 1;
}

.tech__row:hover {
    padding-left: 20px; /* Slight shift to right */
}

.tech__meta {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--c-accent);
    font-size: 18px;
    opacity: 0.8;
}

.tech__main {
    padding-right: 40px;
}

.tech__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--c-dark);
}

.tech__text {
    font-size: 16px;
    color: var(--c-gray);
    line-height: 1.5;
    max-width: 600px;
}

.tech__icon {
    display: flex;
    justify-content: flex-end;
    color: var(--c-dark);
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.4s ease;
}

.tech__row:hover .tech__icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--c-accent);
}

.tech__icon i {
    width: 32px;
    height: 32px;
}

/* Footer Link */
.tech__footer {
    margin-top: 50px;
    display: flex;
    justify-content: flex-start;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--c-dark);
    border-bottom: 2px solid var(--c-accent);
    padding-bottom: 4px;
}

.link-arrow:hover {
    color: var(--c-accent);
}

.link-arrow i {
    transition: transform 0.3s;
}

.link-arrow:hover i {
    transform: translateX(6px);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }

    .tech__row {
        grid-template-columns: 50px 1fr;
        padding: 24px 0;
    }
    
    .tech__icon {
        display: none; /* Hide icon on mobile to save space */
    }
    
    .tech__row:hover {
        padding-left: 0; /* Disable shift on mobile */
    }
    
    .tech__title {
        font-size: 20px;
    }
}
/* --- TICKER (MARQUEE) --- */
.ticker-wrap {
    background-color: var(--c-dark);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker {
    display: flex;
    width: fit-content;
    gap: 4rem; /* Gap between groups */
}

.ticker__group {
    display: flex;
    align-items: center;
    gap: 4rem; /* Gap between items */
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

/* Keyframes for infinite scroll */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.ticker__item {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 800;
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticker__icon {
    height: 24px;
    width: 24px;
    filter: brightness(0) invert(1); /* Make SVG white */
    opacity: 0.5;
}

/* --- CTA BLOCK --- */
.cta-block {
    padding: 120px 0;
    background-color: var(--c-light);
    text-align: center;
}

.cta-block__content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-block__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--c-dark);
}

.cta-block__text {
    font-size: 20px;
    color: var(--c-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-block__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn--large {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 50px; /* Fully rounded for CTA */
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4); /* Glow effect */
}

.btn--large:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
}

.cta-block__note {
    font-size: 14px;
    color: var(--c-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cta-block__note i {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .ticker__item {
        font-size: 18px;
    }
    
    .cta-block__title {
        font-size: 36px;
    }
    
    .cta-block__text {
        font-size: 16px;
    }
}

/* --- SOLUTIONS (BENTO GRID) --- */
.solutions {
    padding: 100px 0;
    background-color: var(--c-light);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

/* Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 24px;
}

.bento-item {
    background-color: var(--c-white);
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text at bottom */
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    border-color: var(--c-accent);
}

/* Grid Spanning */
.bento-item--large {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--c-white) 0%, #f0f9ff 100%);
}

.bento-item--wide {
    grid-column: span 2;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background-color: var(--c-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
    margin-bottom: 24px;
}

.bento-item--large .bento-icon {
    background-color: var(--c-accent);
    color: var(--c-white);
}

.bento-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bento-content p {
    font-size: 15px;
    color: var(--c-gray);
    line-height: 1.5;
}

/* --- RESULTS (DARK SECTION) --- */
.results {
    background-color: var(--c-dark);
    padding: 100px 0;
    color: var(--c-white);
    overflow: hidden;
}

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

.text-white { color: var(--c-white); }
.text-gray-light { color: #94a3b8; }

.results__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--c-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Visual Graph Card */
.graph-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 30px;
    position: relative;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    color: #94a3b8;
    font-size: 14px;
}

.graph-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    gap: 20px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
    gap: 12px;
}

.bar {
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: height 1s ease;
    position: relative;
}

.bar--active {
    background-color: var(--c-accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.bar-label {
    font-size: 12px;
    color: #64748b;
}

.graph-badge {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .bento-item--large, .bento-item--wide {
        grid-column: span 1;
    }

    .results__inner {
        grid-template-columns: 1fr;
    }
}

/* --- ABOUT SECTION --- */
.about {
    padding: 80px 0;
    background-color: var(--c-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.about__content {
    max-width: 600px;
}

.about__text {
    font-size: 16px;
    color: var(--c-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.about__features {
    display: flex;
    gap: 30px;
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--c-dark);
}

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

.about__decoration {
    opacity: 0.5;
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 100px 0;
    background-color: var(--c-light);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact__list {
    margin-top: 40px;
}

.contact__list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact__icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--c-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
    box-shadow: var(--shadow-sm);
}

.contact__label {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.contact__value {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-dark);
}

/* Contact Form */
.contact__form-wrapper {
    background-color: var(--c-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-dark);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: 0.3s;
    background-color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--c-accent);
    background-color: var(--c-white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--c-gray);
    line-height: 1.4;
}

.form-checkbox input {
    margin-top: 3px;
}

.form-checkbox a {
    color: var(--c-accent);
    text-decoration: underline;
}

.btn--full {
    width: 100%;
    position: relative;
}

/* Loader in Button */
.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -10px;
}

.btn.loading .btn-text { visibility: hidden; }
.btn.loading .btn-loader { display: block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--c-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    z-index: 10;
}

.success-message.active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150px); /* Hidden initially */
    background-color: var(--c-dark);
    color: var(--c-white);
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 90%;
    max-width: 500px;
}

.cookie-popup.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    font-size: 13px;
    margin: 0;
}

.cookie-content a {
    color: var(--c-accent);
    text-decoration: underline;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
}

/* --- POLICY PAGES STYLES (Standard Layout) --- */
/* Add this class to <main> or a container in privacy.html etc */
.pages {
    padding: 120px 0 80px; /* Space for header */
}

.pages h1 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--c-dark);
}

.pages h2 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--c-dark);
}

.pages p {
    margin-bottom: 16px;
    color: var(--c-gray);
}

.pages ul {
    margin-bottom: 16px;
    padding-left: 20px;
    list-style: disc;
    color: var(--c-gray);
}

.pages li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about__container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
}