/* CSS Reset & Variables */
:root {
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --btn-primary: #ffffff;
    --btn-text: #000000;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --max-width: 980px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

a:hover {
    opacity: 0.7;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* Components */
.btn-primary {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 980px;
    font-weight: 500;
    margin-top: 2rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary.large {
    /* Large variant is same as base now, but we keep class for specificity if needed */
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: scale(1.02);
}

.btn-primary-sm {
    background: #ffffff;
    color: #000000;
    padding: 0.4rem 1rem;
    border-radius: 980px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-primary-sm:hover {
    background: #e5e5e5;
}

/* Typography & Layout */
main {
    padding-top: 60px;
}

section {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 4rem;
    /* Desktop size usually, adjusted for mobile below */
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0b0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1.3rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    max-width: 650px;
    margin: 0 auto;
}

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero p.hero-sub {
    font-size: 1.6rem;
    font-weight: 400;
}

.link-secondary {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: #2997ff;
}

.link-secondary:hover {
    text-decoration: underline;
}

/* Chat Demo Visual */
.demo-wrapper {
    margin-top: 4rem;
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    /* Space for animation */
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
}

.chat-interface {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.message-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInMessage 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.avatar.user {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    color: #000;
}

.message-bubble {
    background: #2C2C2E;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    border-top-left-radius: 4px;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 80%;
}

/* Processing Pulse */
.processing-pulse {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 3.5rem;
    /* Align with text */
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInPulse 0.5s ease-out forwards 1.5s, fadeOutPulse 0.5s ease-out forwards 3.5s;
}

.ghost-icon {
    color: #2997ff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Draft Card */
.draft-card {
    background: linear-gradient(145deg, #1C1C1E 0%, #2C2C2E 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-left: 3.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpDraft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 3.8s;
}

.draft-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.draft-label {
    color: #2997ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.draft-time {
    color: var(--text-secondary);
}

.draft-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.draft-content p {
    font-size: 0.95rem;
    color: #d1d1d6;
    margin: 0;
    line-height: 1.5;
}

.draft-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.btn-action {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-action.primary {
    background: #0A66C2;
    /* LinkedIn Blue-ish */
}

/* Animation Keyframes */
@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInPulse {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOutPulse {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        height: 0;
        margin-bottom: 0;
        overflow: hidden;
    }
}

@keyframes slideUpDraft {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Showcase Sections */
.showcase {
    padding: 8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
}

.showcase.right {
    flex-direction: row-reverse;
}

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

.showcase-content {
    flex: 1;
}

.showcase-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0b0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-content p {
    font-size: 1.2rem;
    margin-left: 0;
}

.showcase-visual {
    flex: 1;
    height: 400px;
    background: #111;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Visual 1: Gradient Prompt */
.gradient-card-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1a1a1a, #000);
}

.floating-prompt {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    position: absolute;
    top: 40%;
    animation: floatPrompt 3s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-family: monospace;
}

.generated-image-placeholder {
    width: 60%;
    height: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: revealImage 3s infinite ease-in-out;
}

@keyframes floatPrompt {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes revealImage {

    0%,
    40% {
        opacity: 0;
        transform: scale(0.9);
    }

    50%,
    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Visual 2: UI Thread */
.dark-ui-card {
    background: #0f0f10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.ui-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ui-msg {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 80%;
}

.ui-msg.bot {
    background: #252525;
    align-self: flex-start;
    color: #ddd;
    border-top-left-radius: 2px;
}

.ui-msg.user {
    background: #0A66C2;
    align-self: flex-end;
    color: #fff;
    border-top-right-radius: 2px;
}

/* Visual 3: Shield */
.shield-visual {
    margin-top: 2rem;
    font-size: 4rem;
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #298dff;
    top: 0;
    animation: scan 2s linear infinite;
    box-shadow: 0 0 10px #298dff;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Feature Grid */
.features {
    text-align: left;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 2rem;
    margin-top: 4rem;
}

.feature-card p {
    font-size: 1.1rem;
    margin: 0;
    max-width: none;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    color: #424245;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.8rem;
}

.maker-credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.maker-credit a {
    color: #86868b;
    text-decoration: none;
}

.maker-credit a:hover {
    color: #f5f5f7;
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Scroll Trigger */
.scroll-trigger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    h2 {
        font-size: 2.2rem;
    }

    .hero p.hero-sub {
        font-size: 1.3rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .ghost-visual {
        width: 300px;
        height: 300px;
    }
}