/* =============================================================
   NEPI — template.css
   Design system fiel ao frontend React/Tailwind
   ============================================================= */

/* ===== VARIÁVEIS ===== */
:root {
    /* Backgrounds */
    --bg-base:     #040d1f;   /* body / page */
    --bg-nav:      #0b1730;   /* navbar */
    --bg-nav-drop: #13223f;   /* dropdown menu */
    --bg-card:     #0e223f;   /* cards */
    --bg-section:  #07162d;   /* seções alternadas */
    --bg-dark:     #0a1c36;   /* seções escuras */

    /* Borders */
    --border1: #1f2550;
    --border2: #2d3556;
    --border:      rgba(100, 120, 170, 0.25);
    --border-hover:#1f86ff;

    /* Text */
    --text:        #d9e3f2;
    --text2:       #8fa8c8;
    --text3:       #5a7a9a;
    --white:       #ffffff;

    /* Brand */
    --blue:        #1f86ff;
    --blue-light:  #7bb8ff;
    --blue-dark:   #1675e1;
    --teal:        #13bf9f;
    --teal-dark:   #0ea789;

    /* Misc */
    --max-w:       1280px;
    --nav-h:       80px;
    --radius:      8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-base);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

img, svg {
    display: block;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text2); }


/* =============================================================
   NAVBAR
   ============================================================= */

#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-h);
    background: rgba(11, 23, 48, 0.15);
    border-bottom: 1px solid rgba(100, 120, 170, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.4s var(--ease), box-shadow 0.3s var(--ease);
}

#mainNav.scrolled {
    background: rgba(11, 23, 48, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Adaptive navbar colors based on sections */
#mainNav.nav-section-hero {
    background: rgba(31, 134, 255, 0.10);
}

#mainNav.nav-section-dark {
    background: rgba(10, 28, 54, 0.20);
}

#mainNav.nav-section-light {
    background: rgba(11, 23, 48, 0.15);
}

/* Inner wrapper
   Desktop: [Logo] [links→] [CTA] [hamburger hidden]
   Mobile:  [Logo] [spacer] [hamburger]  nav-cta hidden
*/
.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Logo — sempre à esquerda ── */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.85; }

.nav-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* ── Desktop links ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    /* empurra links para a direita, mas deixa espaço para o CTA */
    flex: 1;
    justify-content: flex-end;
    margin-right: 16px;
}

/* Base nav link (plain anchor + button) */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text2);
    border-radius: var(--radius);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--white);
}

/* Chevron SVG inside toggle buttons */
.nav-link .chevron,
.nav-dropdown-toggle .chevron {
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
    color: var(--text3);
}

/* ── Dropdown ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text2);
    border-radius: var(--radius);
    transition: color 0.2s var(--ease);
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    color: var(--white);
}

/* Open state — via JS class "is-open" */
.nav-dropdown.is-open .nav-dropdown-toggle {
    color: var(--white);
}

.nav-dropdown.is-open .chevron {
    transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: var(--bg-nav-drop);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease),
                transform 0.2s var(--ease),
                visibility 0.2s;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Items inside dropdown */
.nav-dropdown-menu a,
.nav-dropdown-menu .nav-item-disabled {
    display: block;
    padding: 9px 12px;
    font-size: 0.8125rem;
    color: var(--text2);
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
    text-decoration: none !important;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.nav-item-disabled {
    color: var(--text3) !important;
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

/* ── Desktop CTA ── */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-cta-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text2);
    transition: color 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
}

.nav-cta-text:hover {
    color: var(--white);
    text-decoration: none !important;
}

/* ── Buttons global ── */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--teal);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: background 0.2s var(--ease), box-shadow 0.2s;
    white-space: nowrap;
    text-decoration: none !important;
}

.btn-contact:hover {
    background: var(--teal-dark);
    box-shadow: 0 4px 14px rgba(19, 191, 159, 0.35);
    text-decoration: none !important;
    color: #fff !important;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: background 0.2s var(--ease), box-shadow 0.2s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 4px 14px rgba(31, 134, 255, 0.35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border-radius: var(--radius);
    border: 1px solid rgba(100, 120, 170, 0.4);
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* ── Hamburger ── */
.hamburger {
    display: none;           /* escondido por defeito (desktop) */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius);
    flex-shrink: 0;
    /* No mobile, o hamburger fica à direita
       porque .nav-links e .nav-cta estão escondidos,
       então margin-left:auto empurra-o para o fim */
    margin-left: auto;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255,255,255,0.07);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* X state */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* =============================================================
   MOBILE MENU
   ============================================================= */

.mobile-menu {
    display: none; /* shown via JS */
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 850;
    background: #0b1730;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
    display: block;
    animation: mob-slide-in 0.25s var(--ease) both;
}

@keyframes mob-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 12px 16px 32px;
    gap: 2px;
}

/* Mobile plain link */
.mob-link {
    display: block;
    padding: 12px 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text2);
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
}

.mob-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* Mobile dropdown */
.mob-dropdown {
    border-bottom: 1px solid var(--border);
}

.mob-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text2);
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}

.mob-dropdown-toggle:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.mob-dropdown-toggle.is-open {
    color: var(--white);
}

.mob-dropdown-toggle.is-open .chevron {
    transform: rotate(180deg);
}

.mob-dropdown-toggle .chevron {
    flex-shrink: 0;
    color: var(--text3);
    transition: transform 0.25s var(--ease);
}

/* Accordion body */
.mob-dropdown-body {
    display: none;
    flex-direction: column;
    padding: 4px 0 8px 12px;
    border-left: 2px solid var(--border);
    margin: 0 12px 8px;
}

.mob-dropdown-body.is-open {
    display: flex;
}

.mob-child-link {
    display: block;
    padding: 9px 12px;
    font-size: 0.875rem;
    color: var(--text2);
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
}

.mob-child-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.mob-disabled {
    color: var(--text3) !important;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile CTA buttons */
.mob-cta {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-mob-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--teal);
    border-radius: var(--radius);
    transition: background 0.2s;
    text-align: center;
}

.btn-mob-primary:hover { background: var(--teal-dark); }

.btn-mob-ghost {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    transition: color 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-mob-ghost:hover {
    color: var(--white);
}


/* =============================================================
   MAIN CONTENT OFFSET
   ============================================================= */

#main-content {
    padding-top: var(--nav-h);
    overflow-x: hidden;
}


/* =============================================================
   SECTION / PAGE HELPERS
   ============================================================= */

.nepi-page-bg {
    background: radial-gradient(circle at 20% 0%, #0e2a57 0%, #061631 35%, #040d1f 100%);
}


.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(31,134,255,0.1);
    color: var(--blue);
    border: 1px solid rgba(31,134,255,0.2);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-sub {
    color: var(--text2);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 640px;
}


/* =============================================================
   UTILITIES
   ============================================================= */

.text-center  { text-align: center; }
.text-blue    { color: var(--blue); }
.text-teal    { color: var(--teal); }
.text-muted   { color: var(--text2); }

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

.max-w { max-width: var(--max-w); margin: 0 auto; }


/* =============================================================
   FOOTER
   ============================================================= */

footer {
    background: #0c1324;
    border-top: 1px solid var(--border);
    color: var(--text2);
}

footer a:hover { color: var(--white); }


/* =============================================================
   WHATSAPP BUTTON
   ============================================================= */

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 800;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.whatsapp-btn:hover {
    background: #20ba5a;
    box-shadow: 0 6px 18px rgba(37,211,102,0.4);
    transform: scale(1.08);
}

.whatsapp-btn:active { transform: scale(0.96); }


/* =============================================================
   NOTIFICAÇÕES
   ============================================================= */

@keyframes notif-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes notif-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

.nepi-notif {
    position: fixed;
    top: calc(var(--nav-h) + 16px);
    right: 20px;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    animation: notif-in 0.3s var(--ease) both;
    color: #fff;
}

.nepi-notif.success { background: var(--teal); }
.nepi-notif.error   { background: #e05252; }
.nepi-notif.warning { background: #d4a017; color: #111; }
.nepi-notif.leaving { animation: notif-out 0.3s var(--ease) both; }


/* =============================================================
   RESPONSIVE
   ============================================================= */

/* ≤ 1024px — esconder links desktop, mostrar hamburger */
@media (max-width: 1024px) {
    /* Links centrais desaparecem */
    .nav-links {
        display: none;
    }

    /* CTA desktop desaparece por completo */
    .nav-cta {
        display: none;
    }

    /* Hamburger aparece à direita
       (margin-left:auto já definido acima empurra-o) */
    .hamburger {
        display: flex;
    }
}

/* ≤ 480px — ajustes finos */
@media (max-width: 480px) {
    :root { --nav-h: 70px; }

    .nav-logo-img { height: 38px; }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }

    .mob-cta { flex-direction: column; }

    .whatsapp-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}


/* =============================================================
   FOOTER
   ============================================================= */

.nepi-footer {
  background: #0c1324;
  border-top: 1px solid rgba(100, 120, 170, 0.2);
  color: #8fa8c8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    /* Coluna brand ocupa 2 de 4 colunas */
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ── Brand ── */
.footer-brand {}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 36px;
  width: auto;
}
.footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #8fa8c8;
  max-width: 420px;
  margin-bottom: 20px;
}

.footer-brand-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #1f86ff;
  color: #fff;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-btn-primary:hover { background: #1675e1; }

.footer-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid #13bf9f;
  color: #6de6ca;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-btn-outline:hover { background: rgba(19,191,159,0.1); }

/* ── Colunas de links ── */
.footer-col {}

.footer-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 0.875rem;
  color: #8fa8c8;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col-links a:hover { color: #fff; }

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(100, 120, 170, 0.15);
}

.footer-copy {
  font-size: 0.8125rem;
  color: #5a7a9a;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(100, 120, 170, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fa8c8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.footer-social-btn:hover {
  border-color: #1f86ff;
  color: #fff;
  background: rgba(31,134,255,0.1);
}


/* =============================================================
   BOOTSTRAP CAROUSEL CUSTOMIZATION
   ============================================================= */

.carousel-indicators {
  bottom: auto !important;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 0 0 !important;
}

.carousel-indicators [data-bs-slide-to] {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
  border: none !important;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.carousel-indicators .active {
  opacity: 1 !important;
}

.carousel-item {
  transition: opacity 0.6s var(--ease) !important;
}

/* Advantage card carousel styling */
.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(100, 120, 170, 0.25);
  background: rgba(14, 34, 63, 0.6);
  backdrop-filter: blur(10px);
  min-height: 380px;
  transition: all 0.3s var(--ease);
}

.advantage-card:hover {
  border-color: var(--accent, #1f86ff);
  background: rgba(14, 34, 63, 0.9);
  transform: translateY(-4px);
}

.advantage-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent, #1f86ff);
  opacity: 0.3;
  margin-bottom: 16px;
}

.advantage-icon-box {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(31, 134, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(31, 134, 255, 0.2);
}

.advantage-icon-box .tech-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent, #1f86ff);
  border-radius: 12px;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

.advantage-icon {
  width: 48px;
  height: 48px;
  color: var(--accent, #1f86ff);
  position: relative;
  z-index: 1;
}

.advantage-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 12px;
  text-align: center;
}

.advantage-card p {
  font-size: 0.9375rem;
  color: #8fa8c8;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.advantage-stat {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent, #1f86ff);
  background: rgba(31, 134, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

/* Success story carousel styling */
.success-story {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(100, 120, 170, 0.25);
  background: rgba(14, 34, 63, 0.6);
  backdrop-filter: blur(10px);
  min-height: 420px;
  transition: all 0.3s var(--ease);
}

.success-story:hover {
  border-color: #1f86ff;
  background: rgba(14, 34, 63, 0.9);
  transform: translateY(-4px);
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.story-rating {
  display: flex;
  gap: 4px;
}

.star {
  color: #fbbf24;
  font-size: 1rem;
}

.story-icon {
  font-size: 1.5rem;
}

.story-text {
  font-size: 1rem;
  color: #d9e3f2;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.story-author {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9375rem;
  margin: 0;
}

.author-title {
  color: #8fa8c8;
  font-size: 0.8125rem;
  margin: 0;
}

.author-company {
  color: #5a7a9a;
  font-size: 0.75rem;
  margin: 0;
}

.story-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(31, 134, 255, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(31, 134, 255, 0.2);
  width: fit-content;
  margin-top: auto;
}

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #1f86ff;
  font-size: 0.9375rem;
}

.metric-label {
  color: #8fa8c8;
  font-size: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .advantage-card {
    min-height: 340px;
    padding: 32px 20px;
  }
  
  .success-story {
    min-height: 380px;
    padding: 24px;
  }
  
  .advantage-icon {
    width: 40px;
    height: 40px;
  }
  
  .advantage-icon-box {
    width: 70px;
    height: 70px;
  }
}