*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: #0A0B1A;
    color: #F8FAFC;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.text-muted-custom { color: #94A3B8; }

.btn-primary-custom {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #F8FAFC;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary-custom:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #F8FAFC;
}

.btn-outline-custom {
    background: transparent;
    color: #F8FAFC;
    border: 1px solid rgba(99, 102, 241, 0.5);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline-custom:hover {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
    color: #F8FAFC;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6366F1;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: #94A3B8;
    max-width: 560px;
    line-height: 1.7;
}

.card-dark {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.card-dark:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: #6366F1;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 10px;
}

.card-text {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.65;
}

.gradient-text {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    background: rgba(10, 11, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav .navbar-brand {
    font-size: 22px;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -0.5px;
}

.site-nav .nav-link {
    color: #94A3B8;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.site-nav .nav-link:hover, .site-nav .nav-link.active {
    color: #F8FAFC;
}

.site-nav .navbar-toggler {
    border-color: rgba(99, 102, 241, 0.3);
}

.site-nav .navbar-toggler-icon {
    filter: invert(1);
}

.hero-section {
    background: #0A0B1A;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    color: #F8FAFC;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 19px;
    color: #94A3B8;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-data-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hero-data-card {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.hero-data-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
}

.hero-data-value {
    font-size: 28px;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -0.5px;
    display: block;
}

.hero-data-label {
    font-size: 13px;
    color: #94A3B8;
    margin-top: 4px;
    display: block;
}

.hero-data-trend {
    font-size: 12px;
    color: #34D399;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.features-section {
    background: #0A0B1A;
    padding: 96px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.metrics-section {
    background: #111827;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 72px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.metric-item {
    text-align: center;
    padding: 32px 24px;
    border-right: 1px solid rgba(99, 102, 241, 0.1);
}

.metric-item:last-child { border-right: none; }

.metric-value {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.metric-label {
    font-size: 15px;
    color: #94A3B8;
    margin-top: 8px;
    display: block;
}

.testimonial-section {
    background: #0A0B1A;
    padding: 96px 0;
}

.testimonial-card {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-quote {
    font-size: 22px;
    color: #F8FAFC;
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 32px;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 64px;
    color: #6366F1;
    line-height: 0;
    vertical-align: -24px;
    margin-right: 4px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #F8FAFC;
    font-weight: 700;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 700;
    color: #F8FAFC;
}

.testimonial-role {
    font-size: 14px;
    color: #94A3B8;
}

.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    padding: 96px 0;
    text-align: center;
}

.cta-title {
    font-size: 44px;
    font-weight: 800;
    color: #F8FAFC;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 18px;
    color: #94A3B8;
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.site-footer {
    background: #060710;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 72px 0 32px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    color: #F8FAFC;
    margin-bottom: 16px;
    display: block;
}

.footer-tagline {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.65;
    max-width: 260px;
    margin-bottom: 24px;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #F8FAFC;
    margin-bottom: 20px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 14px;
    color: #94A3B8;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: #F8FAFC; }

.footer-divider {
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    padding-top: 28px;
    margin-top: 48px;
}

.footer-copyright {
    font-size: 14px;
    color: #94A3B8;
}

.footer-legal-links { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-legal-links a {
    font-size: 14px;
    color: #94A3B8;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover { color: #F8FAFC; }

.page-hero {
    background: #0A0B1A;
    padding: 80px 0 64px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-hero-subtitle {
    font-size: 18px;
    color: #94A3B8;
    max-width: 520px;
    line-height: 1.7;
}

.product-feature {
    padding: 96px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.product-feature:last-child { border-bottom: none; }

.product-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #6366F1;
    margin-bottom: 24px;
}

.product-feature-title {
    font-size: 30px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 16px;
}

.product-feature-text {
    font-size: 16px;
    color: #94A3B8;
    line-height: 1.75;
    margin-bottom: 24px;
}

.product-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-feature-list li {
    font-size: 15px;
    color: #94A3B8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-feature-list li i {
    color: #6366F1;
    margin-top: 3px;
    flex-shrink: 0;
}

.product-visual {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.product-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.about-story {
    padding: 96px 0;
    background: #0A0B1A;
}

.about-story-title {
    font-size: 36px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-story-text {
    font-size: 16px;
    color: #94A3B8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.values-section {
    background: #111827;
    padding: 96px 0;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.value-card {
    background: #0A0B1A;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 32px;
    height: 100%;
}

.value-icon {
    font-size: 28px;
    color: #6366F1;
    margin-bottom: 16px;
}

.value-title {
    font-size: 18px;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 10px;
}

.value-text {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.65;
}

.team-section {
    background: #0A0B1A;
    padding: 96px 0;
}

.team-card {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.team-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
}

.team-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-info {
    padding: 24px;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 4px;
}

.team-role {
    font-size: 14px;
    font-weight: 600;
    color: #6366F1;
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.65;
}

.contact-section {
    background: #0A0B1A;
    padding: 96px 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6366F1;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 13px;
    font-weight: 700;
    color: #6366F1;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 16px;
    color: #F8FAFC;
}

.contact-form-card {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
    padding: 40px;
}

.form-label-custom {
    font-size: 14px;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 8px;
    display: block;
}

.form-input-custom {
    width: 100%;
    background: #0A0B1A;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #F8FAFC;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-input-custom:focus { border-color: #6366F1; }

.form-input-custom::placeholder { color: #4B5563; }

textarea.form-input-custom { resize: vertical; min-height: 140px; }

.form-group-custom { margin-bottom: 20px; }

.blog-section {
    background: #0A0B1A;
    padding: 96px 0;
}

.blog-card {
    background: #111827;
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
    height: 100%;
}

.blog-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(99, 102, 241, 0.4);
}

.blog-card-body { padding: 28px; }

.blog-card-date {
    font-size: 13px;
    color: #6366F1;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.65;
    margin-bottom: 20px;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #6366F1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.blog-read-more:hover {
    color: #8B5CF6;
    gap: 10px;
}

.legal-section {
    background: #0A0B1A;
    padding: 64px 0 96px;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #F8FAFC;
    margin-top: 40px;
    margin-bottom: 14px;
}

.legal-content p, .legal-content li {
    font-size: 15px;
    color: #94A3B8;
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-updated {
    font-size: 13px;
    color: #6366F1;
    font-weight: 600;
    margin-bottom: 32px;
    display: block;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111827;
    border-top: 1px solid rgba(99, 102, 241, 0.25);
    padding: 18px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#cookie-banner p {
    font-size: 14px;
    color: #94A3B8;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

#cookie-banner a {
    color: #6366F1;
    text-decoration: underline;
}

#cookie-banner a:hover { color: #8B5CF6; }

.cookie-btn-accept {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #F8FAFC;
    border: none;
    padding: 9px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn-decline {
    background: transparent;
    color: #94A3B8;
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 9px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn-decline:hover { color: #F8FAFC; }

@media (max-width: 991px) {
    .hero-title { font-size: 40px; }
    .section-title { font-size: 30px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-item { border-right: none; border-bottom: 1px solid rgba(99, 102, 241, 0.1); }
    .metric-item:nth-child(2n) { border-bottom: 1px solid rgba(99, 102, 241, 0.1); }
    .metric-item:nth-last-child(-n+2) { border-bottom: none; }
    .hero-data-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .cta-title { font-size: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .hero-data-cards { grid-template-columns: 1fr; }
    .hero-data-cards .hero-data-card:last-child { display: none; }
    .section-title { font-size: 26px; }
    .testimonial-card { padding: 32px 24px; }
    .testimonial-quote { font-size: 18px; }
}

/* === Card Uniformity Fix (auto-generated) === */

.blog-card {
  display: flex;
  flex-direction: column;
}

.team-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-read-more {
  margin-top: auto;
  display: inline-block;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.testimonial-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* === Read More Pin Fix (auto-generated) === */

.card-text > p {
  flex: 1;
}

.card-text > a:last-child,
.card-text > a:last-of-type {
  margin-top: auto;
  padding-top: 12px;
}

/* === Last-Child Pin Fix (auto-generated) === */

.card-text > :last-child {
  margin-top: auto;
}

.contact-form-card > :last-child {
  margin-top: auto;
}

.hero-data-card > :last-child {
  margin-top: auto;
}

.team-card > :last-child {
  margin-top: auto;
}

.testimonial-card > :last-child {
  margin-top: auto;
}

a.read-more,
[class*="read-more"],
[class*="blog-read-more"] {
  margin-top: auto;
}

/* === Blog Article Width Fix === */
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow img {
  max-width: 100%;
  height: auto;
}

/* Card title link styling */
.blog-card h3 a, .blog-card h4 a, .blog-card h5 a,
.news-card h3 a, .news-card h4 a, .news-card h5 a,
.insight-card h3 a, .insight-card h4 a, .insight-card h5 a,
[class*="-card"] h3 a, [class*="-card"] h4 a, [class*="-card"] h5 a {
  color: inherit;
  text-decoration: none;
}
[class*="-card"] h3 a:hover, [class*="-card"] h4 a:hover, [class*="-card"] h5 a:hover {
  text-decoration: underline;
}

/* Universal card equal height */
[class$="-card"], [class*="-card "] {
  height: 100%;
  display: flex;
  flex-direction: column;
}
