/* ============================================
   FIDE - Premium Fintech Landing Page
   Elegant, Modern & Professional Design
   ============================================ */

:root {
    /* Brand Colors */
    --primary: #5bc8b1;
    --primary-dark: #4ab39e;
    --primary-light: #7dd4c3;
    --secondary: #c679e3;
    --secondary-dark: #b560d4;
    --accent-blue: #3c7abe;
    --accent-purple: #785aa5;
    --accent-red: #d43a48;
    --accent-orange: #f4844a;

    /* Neutral Colors */
    --dark: #0e314c;
    --dark-blue: #17194b;
    --text: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --off-white: #f7fafd;
    --light-gray: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5bc8b1 0%, #4ab39e 100%);
    --gradient-hero: linear-gradient(135deg, #0e314c 0%, #17194b 50%, #1a1f4e 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(91, 200, 177, 0.15) 0%, transparent 70%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(14, 49, 76, 0.05);
    --shadow-md: 0 4px 20px rgba(14, 49, 76, 0.08);
    --shadow-lg: 0 10px 40px rgba(14, 49, 76, 0.12);
    --shadow-xl: 0 20px 60px rgba(14, 49, 76, 0.15);
    --shadow-glow: 0 0 40px rgba(91, 200, 177, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    color: var(--text);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.separator {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(91, 200, 177, 0.4);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

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

.btn-full {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

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

.logo img {
    height: 45px;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(91, 200, 177, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(198, 121, 227, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(91, 200, 177, 0.05) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 200, 177, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 121, 227, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 100px 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
}

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

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--off-white);
}

.about-content {
    display: grid;
    gap: 60px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 20px;
}

.about-text .highlight {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 30px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(91, 200, 177, 0.1) 0%, rgba(91, 200, 177, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.stat-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   TOPii Section - Premium Design
   ============================================ */
.topii {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px;
}

.topii-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(91, 200, 177, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(198, 121, 227, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* TOPii Hero Section */
.topii-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}

.topii-hero-content {
    max-width: 540px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(91, 200, 177, 0.3);
}

.topii-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.topii-title-row span {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.topii-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.topii-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.topii-description {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 32px;
}

.topii-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-light {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
    padding: 14px 28px;
}

.btn-outline-light:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* TOPii Hero Image */
.topii-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.topii-screenshot {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(14, 49, 76, 0.25));
    transition: transform 0.4s ease;
}

.topii-screenshot:hover {
    transform: scale(1.02);
}

/* TOPii Features Grid */
.topii-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.topii-feature {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(14, 49, 76, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(91, 200, 177, 0.1);
}

.topii-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(14, 49, 76, 0.12);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(91, 200, 177, 0.3);
}

.topii-feature h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.topii-feature p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Phone Mockups (legacy) */
.topii-phones {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 580px;
}

.phone-wrapper {
    position: absolute;
    transition: var(--transition-slow);
}

.phone-back {
    transform: translateX(-60px) scale(0.9);
    z-index: 1;
    opacity: 0.7;
}

.phone-front {
    transform: translateX(60px);
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0e0e1a 100%);
    border-radius: 45px;
    padding: 10px;
    box-shadow:
        0 50px 100px rgba(14, 49, 76, 0.3),
        0 30px 60px rgba(14, 49, 76, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #0a0a12;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    overflow: hidden;
}

/* Main Screen */
.screen-main {
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
    padding: 50px 20px 20px;
    display: flex;
    flex-direction: column;
}

.app-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.greeting-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.greeting-emoji {
    font-size: 1.2rem;
}

.notification-bell {
    position: relative;
    color: var(--text);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid white;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(91, 200, 177, 0.3);
}

.balance-card .balance-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}

.balance-card .balance-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.balance-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: auto;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.action-btn.send { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.action-btn.receive { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%); }
.action-btn.withdraw { background: linear-gradient(135deg, var(--accent-blue) 0%, #2d5a8e 100%); }
.action-btn.more { background: linear-gradient(135deg, var(--text-light) 0%, var(--text) 100%); }

.quick-action span {
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 500;
}

/* Transactions Screen */
.screen-transactions {
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
    padding: 50px 16px 20px;
}

.screen-header {
    margin-bottom: 20px;
}

.screen-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon.received {
    background: rgba(91, 200, 177, 0.15);
}

.transaction-icon.received::after {
    content: '↓';
    color: var(--primary);
    font-weight: bold;
}

.transaction-icon.sent {
    background: rgba(212, 58, 72, 0.1);
}

.transaction-icon.sent::after {
    content: '↑';
    color: var(--accent-red);
    font-weight: bold;
}

.transaction-info {
    flex: 1;
}

.transaction-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.transaction-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.transaction-amount {
    font-size: 0.95rem;
    font-weight: 700;
}

.transaction-amount.positive { color: var(--primary); }
.transaction-amount.negative { color: var(--accent-red); }

/* ============================================
   Services Section
   ============================================ */
.services {
    background: var(--off-white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(91, 200, 177, 0.1) 0%, rgba(91, 200, 177, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Contact Section - Premium
   ============================================ */
.contact {
    background: var(--off-white);
    position: relative;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Contact Card & Form */
.contact-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px 40px;
    color: var(--white);
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.form-body {
    padding: 35px 40px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    background: var(--white);
    padding: 0 6px;
}

.form-group textarea + label {
    top: 18px;
    transform: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 200, 177, 0.1);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 45px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Custom Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input {
    display: none;
}

.form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
}

.form-checkbox input:checked + label .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.form-checkbox input:checked + label .checkbox-custom::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text a {
    color: var(--primary);
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    margin: 10px 40px 35px;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-submit .btn-icon {
    transition: var(--transition);
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Contact Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.info-card.highlight .info-icon {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.info-card.highlight h4,
.info-card.highlight p {
    color: var(--white);
}

.info-card.highlight p {
    opacity: 0.9;
}

.info-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, rgba(91, 200, 177, 0.1) 0%, rgba(91, 200, 177, 0.05) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-content a {
    color: var(--primary);
    font-weight: 500;
}

.info-card.highlight .info-content a {
    color: var(--white);
    text-decoration: underline;
}

.info-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

/* ============================================
   Footer - Premium
   ============================================ */
.footer {
    background: var(--gradient-hero);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 20px;
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-text {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .topii-hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .topii-hero-content {
        max-width: 100%;
        order: 1;
    }

    .topii-hero-image {
        order: 2;
    }

    .topii-title-row {
        justify-content: center;
    }

    .topii-cta {
        justify-content: center;
    }

    .topii-screenshot {
        max-height: 450px;
    }

    .topii-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .footer-brand {
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 20px;
    }

    .company-info {
        text-align: center;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        color: var(--dark) !important;
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links .btn-primary {
        margin-top: 20px;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 25px 20px;
    }

    .topii-hero {
        margin-bottom: 50px;
    }

    .topii-title-row span {
        font-size: 2.2rem;
    }

    .topii-logo {
        height: 50px;
    }

    .topii-tagline {
        font-size: 1.1rem;
    }

    .topii-description {
        font-size: 1rem;
    }

    .topii-cta {
        flex-direction: column;
        align-items: center;
    }

    .topii-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .topii-screenshot {
        max-height: 380px;
    }

    .topii-features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .topii-feature {
        padding: 25px 20px;
    }

    .topii-feature h4 {
        font-size: 1rem;
    }

    .topii-feature p {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-header,
    .form-body {
        padding-left: 25px;
        padding-right: 25px;
    }

    .form-header h3 {
        font-size: 1.3rem;
    }

    .btn-submit {
        margin-left: 25px;
        margin-right: 25px;
        width: calc(100% - 50px);
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 20px;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .separator {
        width: 50px;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .stat-card h3 {
        font-size: 1.3rem;
    }

    .topii-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .topii-title-row span {
        font-size: 1.8rem;
    }

    .topii-logo {
        height: 45px;
    }

    .topii-tagline {
        font-size: 1rem;
    }

    .topii-screenshot {
        max-height: 320px;
    }

    .topii-features {
        grid-template-columns: 1fr;
    }

    .topii-feature {
        padding: 25px 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 65px;
        height: 65px;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .form-header,
    .form-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .btn-submit {
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
    }

    .footer-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 10px;
    }

    .footer-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .security-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .topii-title-row span {
        font-size: 1.6rem;
    }

    .topii-logo {
        height: 40px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 24px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-header,
.stat-card,
.service-card,
.topii-info,
.phone-mockup {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ============================================
   Legal Pages Styles
   ============================================ */
.legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.legal-date {
    color: var(--gray);
    font-size: 0.95rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(14, 49, 76, 0.08);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 25px 0 15px 0;
}

.legal-section p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid var(--light-gray);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cookie-table th,
.cookie-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-table th {
    background: var(--background);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.cookie-table td {
    font-size: 0.9rem;
    color: var(--text);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover td {
    background: rgba(91, 200, 177, 0.05);
}

/* ============================================
   Careers Page Styles
   ============================================ */
.careers-hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, #1a4a6e 100%);
}

.careers-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(91, 200, 177, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(198, 121, 227, 0.1) 0%, transparent 40%);
}

.careers-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.careers-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.careers-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Benefits Section */
.careers-benefits {
    background: var(--background);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(14, 49, 76, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(14, 49, 76, 0.1);
}

.benefit-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Values Section */
.careers-values {
    background: var(--white);
}

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

.values-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.values-text > p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 30px;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: var(--text);
}

.values-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.values-card {
    background: linear-gradient(135deg, var(--dark) 0%, #1a4a6e 100%);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    color: var(--white);
}

.values-card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.values-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.values-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

.values-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.values-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Careers Contact Section */
.careers-contact {
    background: var(--background);
}

.careers-form-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.careers-form {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(14, 49, 76, 0.08);
    overflow: hidden;
}

.careers-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive Legal/Careers */
@media (max-width: 992px) {
    .legal-content {
        padding: 35px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-text {
        text-align: center;
    }

    .values-list {
        display: inline-block;
        text-align: left;
    }

    .careers-form-wrapper {
        grid-template-columns: 1fr;
    }

    .careers-info {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .legal-header {
        margin-bottom: 40px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-content {
        padding: 25px;
        border-radius: 16px;
    }

    .legal-section {
        margin-bottom: 30px;
    }

    .legal-section h2 {
        font-size: 1.15rem;
    }

    .legal-section p {
        font-size: 0.95rem;
    }

    .careers-hero {
        padding: 140px 0 70px;
    }

    .careers-hero-content h1 {
        font-size: 2rem;
    }

    .careers-hero-content p {
        font-size: 1rem;
    }

    .careers-benefits {
        padding: 60px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        padding: 30px 20px;
    }

    .benefit-icon-large {
        width: 70px;
        height: 70px;
    }

    .careers-info {
        grid-template-columns: 1fr;
    }

    .values-card {
        padding: 35px 25px;
    }

    .values-stats {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding-top: 100px;
    }

    .legal-header h1 {
        font-size: 1.5rem;
    }

    .legal-content {
        padding: 20px 16px;
    }

    .legal-section h2 {
        font-size: 1.1rem;
        padding-bottom: 8px;
    }

    .legal-section ul li {
        padding-left: 20px;
        font-size: 0.9rem;
    }

    .cookie-table-wrapper {
        margin: 15px -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .careers-hero {
        padding: 120px 0 50px;
    }

    .careers-hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .careers-hero-content p {
        font-size: 0.95rem;
    }

    .careers-hero-content .btn-lg {
        width: 100%;
        max-width: 280px;
    }

    .benefit-item h3 {
        font-size: 1.1rem;
    }

    .values-text h2 {
        font-size: 1.6rem;
    }

    .values-list li {
        font-size: 0.95rem;
    }

    .values-card {
        padding: 30px 20px;
    }

    .values-card h3 {
        font-size: 1.3rem;
    }

    .values-stats {
        flex-direction: column;
        gap: 25px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .legal-header h1 {
        font-size: 1.4rem;
    }

    .careers-hero-content h1 {
        font-size: 1.4rem;
    }
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }

.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
