/* Modern Design System */
:root {
    /* Colors - HSL for easy adjustments */
    --primary-hue: 28;
    --primary-sat: 100%;
    --primary-light: 60%;

    --accent-hue: 45;

    --color-bg: hsl(30, 20%, 98%);
    --color-surface: hsl(0, 0%, 100%);
    --color-text: hsl(25, 40%, 15%);
    --color-text-light: hsl(25, 20%, 40%);

    --color-primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
    --color-primary-dark: hsl(var(--primary-hue), var(--primary-sat), 45%);
    --color-accent: hsl(var(--accent-hue), 100%, 65%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Effects */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 245, 235, 0.85) 100%),
        url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Typography Utilities */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight {
    color: var(--color-primary);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    /* Ensure dark text for SuccessFactors */
}

.logo-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    margin-right: 0.5rem;
    font-weight: 700;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.code-snippet {
    display: block;
    background: #1e293b;
    color: #94a3b8;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.8rem;
    overflow-x: auto;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-wrapper {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Code block wrapper for positioning copy button */
.code-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.code-wrapper pre {
    margin-bottom: 0;
    /* padding-right no longer strictly needed if button overlaps outside, 
       but keeping some ensures long lines don't hit the corner visually if overflow happens */
    padding-right: 1rem;
}

.copy-btn {
    position: absolute;
    top: -12px;
    right: -12px;

    width: 36px;
    height: 36px;
    border-radius: 50%;

    background: #1e293b;
    /* Match code block background or page bg to mask? Better matching code block bg for consistency, or accent color */
    background: var(--color-bg-dark, #0f172a);
    /* Using dark bg to stand out against code block? Or same as code block? */
    background: #334155;
    /* Slightly lighter than code block #1e293b to stand out */

    border: 2px solid var(--color-bg, #0f172a);
    /* Border matching page bg creates "cutout" effect */
    color: #cbd5e1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.copy-btn:hover {
    background: #475569;
    color: white;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #334155;
    border-color: var(--color-bg, #0f172a);
    /* color handled by SVG stroke in JS, but we can enforce it here too */
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
    background: white;
    color: var(--color-primary);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* In a real implementation we'd add a hamburger menu */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Content Panel for Documentation */
.content-panel {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-panel h3 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--color-bg);
    padding-bottom: 1rem;
    color: var(--color-primary);
}

.content-panel h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content-panel ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content-panel ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
    color: var(--color-text-light);
}

.content-panel ul ul {
    margin-bottom: 0;
    margin-top: 0.5rem;
}