/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
    letter-spacing: -0.5px;
}

.logo span {
    color: #3182ce;
}

/* Gradient heading and cool text styles */
.hero h1 {
    background: linear-gradient(90deg, #ffffff, #cce7ff 40%, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

/* Dropdown styles */
.nav-menu .has-dropdown {
    position: relative;
}
.nav-menu .caret {
    display: inline-block;
    margin-left: 0.4rem;
    border-top: 6px solid #4a5568;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    vertical-align: middle;
    transition: transform 250ms ease;
}
.nav-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(2,6,23,0.08);
    padding: 0.6rem 0.4rem;
    display: none;
    z-index: 1200;
    border: 1px solid rgba(0,0,0,0.04);
}
.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: #1a365d;
    font-weight: 600;
}
.nav-menu .dropdown-menu a:hover {
    background: #f1f7ff;
}
.nav-menu .has-dropdown.open > a .caret {
    transform: rotate(180deg);
}
.nav-menu .has-dropdown.open > .dropdown-menu {
    display: block;
}

/* Mobile adjustments */
.nav-menu {
    gap: 1.2rem;
}
.nav-menu.active {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 1rem 2rem;
    box-shadow: 0 20px 40px rgba(2,6,23,0.06);
}
.dropdown-toggle {
    display: none; /* only used for accessibility on mobile; toggled via JS */
    background: transparent;
    border: none;
}

.nav-menu a:hover {
    color: #3182ce;
}

.nav-cta {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #2c5aa0, #2a4a7a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: #4a5568;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1a365d 0%, #2c5aa0 50%, #3182ce 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23ffffff;stop-opacity:0.03" /><stop offset="100%" style="stop-color:%23ffffff;stop-opacity:0.08" /></linearGradient></defs><path fill="url(%23grad1)" d="M0,400 Q300,300 600,350 T1200,380 L1200,800 L0,800 Z"/></svg>');
    background-size: cover;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
}

.hero-content {
    color: white;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    background: white;
    color: #2c5aa0;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Persona Cards in Hero */
.persona-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.persona-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.persona-card:hover, .persona-card.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.persona-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.persona-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    transition: transform 800ms ease;
}

@keyframes floaty {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.hero-illustration.revealed {
    animation: floaty 6s ease-in-out infinite;
}

.stats-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Trust Indicators */
.trust-section {
    background: #f8fafc;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.trust-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.trust-icon {
    width: 22px;
    height: 22px;
    color: #2c5aa0;
    flex: 0 0 22px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(49,130,206,0.12), rgba(44,90,160,0.12));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.tool-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(49,130,206,0.12), rgba(44,90,160,0.12));
    color: white;
}

.service-icon svg, .tool-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    color: #1a365d; /* icon stroke color via currentColor */
}

.service-icon {
    background: linear-gradient(135deg, rgba(49,130,206,0.12), rgba(49,130,206,0.06));
    color: #ffffff;
}

.tool-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    color: #1a365d;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity 600ms cubic-bezier(.2,.9,.2,1), transform 600ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Floating effect for hero visual stats */
.stat-item {
    transition: transform 400ms ease, box-shadow 400ms ease;
}
.stat-item:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 18px 40px rgba(2,6,23,0.12);
}

/* Animated counter number style */
.stat-number {
    font-variation-settings: 'wght' 700;
    transition: color 300ms ease;
}

/* Subtle hover for persona cards */
.persona-card {
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.persona-card.active {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(2,6,23,0.06);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: #2c5aa0;
}

/* Tools Section */
.tools-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc, #edf2f7);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}