@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --primary-dark: #4338ca;
    --secondary: #1e1b4b;
    --accent: #f59e0b;
    --background: #ffffff;
    --surface: #f9fafb;
    --text: #374151;
    --text-light: #6b7280;
    --border: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --radius: 1rem;
}

.light-gradient {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.section {
    padding: 6rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

/* Navbar Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    height: 70px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
}

.logo-text {
    color: var(--secondary);
}

.logo-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section Styles */
#hero {
    padding-top: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.02) 0%, transparent 30%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 3vw, 3rem);
    align-items: center;
}

#hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

/* Mockup Styles */
.mockup-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.mockup-main {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.mockup-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fdfdff;
    border-bottom: 1px solid var(--border);
}

.mockup-content {
    padding: 80px 2rem 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mockup-search-bar {
    width: 60%;
    height: 32px;
    background: var(--surface);
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.mockup-rows {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.mockup-icon.small {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 6px;
}

.mockup-text-long {
    flex: 1;
    height: 12px;
    background: var(--surface);
    border-radius: 6px;
}

.mockup-text-med {
    width: 40%;
    height: 12px;
    background: var(--surface);
    border-radius: 6px;
}

.mockup-status {
    width: 48px;
    height: 12px;
    border-radius: 6px;
}

.mockup-status.success {
    background: #d1fae5;
}

.mockup-status.warning {
    background: #fef3c7;
}

.mockup-float {
    position: absolute;
    padding: 1.25rem 1.75rem;
    border-radius: 1rem;
    font-weight: 700;
    font-family: 'Outfit';
    box-shadow: var(--shadow-lg);
    z-index: 2;
    background: white;
}

.card-1 {
    top: 15%;
    right: -10%;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.card-2 {
    bottom: 15%;
    left: -10%;
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

/* About Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.about-item {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.about-item:hover {
    transform: translateY(-12px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.1);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.icon-wrapper i {
    width: 28px;
    height: 28px;
}

/* Features Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-icon {
    color: var(--primary);
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Why Rankry Styles */
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.25rem;
}

.why-visual {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 2rem;
}

.trust-badge {
    font-family: 'Outfit';
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* CTA Form Styles */
.bg-primary {
    background-color: var(--primary);
}

.bg-surface {
    background-color: var(--surface);
}

.bg-accent {
    background-color: var(--accent);
}

.text-white {
    color: var(--white);
}

.opacity-80 {
    opacity: 0.8;
}

.audit-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.audit-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: calc(var(--radius) - 0.25rem);
    border: none;
    font-size: 1rem;
    background: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--secondary);
}

.btn-accent:hover {
    background-color: #f59e0b;
    filter: brightness(1.1);
}

/* Footer Section-sm */
.section-sm {
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    #hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .nav-links {
        display: none;
    }

    .hero-container,
    .why-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle,
    .why-content {
        margin: 0 auto 2.5rem auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .audit-form {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}