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

:root {
    /* Colors - Vite+ exact palette */
    --color-primary: #08060d;
    --color-white: #fff;
    --color-beige: #f4f3ec;
    --color-nickel: #3b3440;
    --color-grey: #827a89;
    --color-slate: #14121a;
    --color-space: #110033;
    --color-wine: #140033;

    /* Accents */
    --color-ruby: #863bff;
    --color-electric: #6c3bff;
    --color-vite: #b39aff;
    --color-zest: #22ff73;
    --color-fire: #f50;
    --color-aqua: #32f3e9;

    /* Borders */
    --color-stroke: #e5e4e7;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'Fira Code', monospace;

    /* Layout */
    --wrapper-max: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-beige);
    color: var(--color-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Wrapper */
.wrapper {
    max-width: var(--wrapper-max);
    margin: 0 auto;
}

.wrapper--ticks {
    position: relative;
}

.wrapper--ticks::before,
.wrapper--ticks::after {
    content: '';
    position: absolute;
    top: -1px;
    width: 8px;
    height: 1px;
    background: var(--color-stroke);
}

.wrapper--ticks::before {
    left: -8px;
}

.wrapper--ticks::after {
    right: -8px;
}

/* Header */
header {
    position: relative;
    z-index: 100;
    background: var(--color-beige);
}

header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
    border-left: none;
    border-right: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-logo img {
    height: 24px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header--home {
    background: var(--color-beige);
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    border: 1.5px solid var(--color-stroke);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-profile-btn:hover {
    border-color: #f58549;
    background: rgba(245, 133, 73, 0.04);
}

.nav-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.nav-profile-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logout-btn {
    padding: 6px 18px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-grey);
    background: transparent;
    border: 1.5px solid var(--color-stroke);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-logout-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
}

.nav-by {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-grey);
    font-size: 0.875rem;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--color-stroke);
    background: var(--color-white);
    color: var(--color-primary);
    transition: all 0.15s ease;
    cursor: pointer;
}

.button:hover {
    background: var(--color-beige);
    border-color: #d1d0cc;
}

.button--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.button--primary:hover {
    background: #1a1820;
    border-color: #1a1820;
}

.button--cta {
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    border: 2px solid #f58549;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(245, 133, 73, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.button--cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e8943a 0%, #d6702a 50%, #b8481a 100%);
    border-color: #d6702a;
    box-shadow: 0 4px 16px rgba(200, 80, 30, 0.4);
}

.button--cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(200, 80, 30, 0.3);
}

/* Hero Section */
.hero {
    padding-top: 60px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero .wrapper {
    border-left: none;
    border-right: none;
}

/* Floating clouds background */
.hero-clouds {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-clouds .cloud {
    position: absolute;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    border-radius: 100px;
    opacity: 0.15;
    filter: blur(2px);
}

.hero-clouds .cloud::before,
.hero-clouds .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

/* Cloud 1 - top, behind image */
.hero-clouds .cloud-1 {
    width: 200px;
    height: 75px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    animation: float-1 6s ease-in-out infinite;
}

.hero-clouds .cloud-1::before {
    width: 100px;
    height: 100px;
    top: -50px;
    left: 30px;
}

.hero-clouds .cloud-1::after {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 100px;
}

/* Cloud 2 - right side, partly visible */
.hero-clouds .cloud-2 {
    width: 140px;
    height: 50px;
    top: 45%;
    right: 5%;
    z-index: 1;
    animation: float-2 5s ease-in-out infinite;
    animation-delay: -1s;
}

.hero-clouds .cloud-2::before {
    width: 65px;
    height: 65px;
    top: -32px;
    left: 18px;
}

.hero-clouds .cloud-2::after {
    width: 45px;
    height: 45px;
    top: -22px;
    left: 70px;
}

/* Cloud 3 - bottom, larger, behind */
.hero-clouds .cloud-3 {
    width: 220px;
    height: 80px;
    bottom: 18%;
    left: 45%;
    transform: translateX(-50%);
    opacity: 0.18;
    z-index: -1;
    animation: float-3 8s ease-in-out infinite;
    animation-delay: -3s;
}

.hero-clouds .cloud-3::before {
    width: 110px;
    height: 110px;
    top: -55px;
    left: 35px;
}

.hero-clouds .cloud-3::after {
    width: 75px;
    height: 75px;
    top: -38px;
    left: 115px;
}

/* Cloud 4 - left side, smaller, visible */
.hero-clouds .cloud-4 {
    width: 110px;
    height: 40px;
    top: 55%;
    left: 8%;
    opacity: 0.2;
    z-index: 1;
    animation: float-4 4.5s ease-in-out infinite;
    animation-delay: -2s;
}

.hero-clouds .cloud-4::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 15px;
}

.hero-clouds .cloud-4::after {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 55px;
}

@keyframes float-1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(50px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(45px); }
}

@keyframes float-3 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(40px); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(50px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 60px 40px;
}

.hero-crab {
    width: 100%;
    max-width: 504px;
    height: auto;
    position: relative;
    z-index: 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-align: left;
    color: var(--color-primary);
}

/* Accent text */
.text-accent {
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--color-nickel);
    font-size: 1.0625rem;
    text-align: left;
    text-wrap: balance;
    line-height: 1.65;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.hero-models {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.hero-models-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-models-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-model-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid var(--color-stroke);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-nickel);
}

.hero-model-tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Hero Image / Terminal */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--color-beige);
    position: relative;
}

.terminal-window {
    width: 100%;
    max-width: 500px;
    background: var(--color-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.1),
        0 20px 50px rgba(0,0,0,0.15);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--color-slate);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--color-grey);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-right: 44px;
}

.terminal-body {
    padding: 24px;
    min-height: 140px;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.terminal-prompt {
    color: var(--color-vite);
    font-family: var(--font-mono);
    font-weight: 600;
}

.terminal-text {
    color: var(--color-white);
    font-size: 0.9rem;
}

.terminal-response {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: rgba(179, 154, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(179, 154, 255, 0.2);
}

.terminal-bot {
    color: var(--color-vite);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.terminal-output {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Utilities */
.border-t {
    border-top: 1px solid var(--color-stroke);
}

.text-grey {
    color: var(--color-grey);
}

.text-nickel {
    color: var(--color-nickel);
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-mono {
    font-family: var(--font-mono);
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--color-beige);
}

.why-section .wrapper {
    padding: 0 40px;
}

.why-header {
    text-align: center;
    margin-bottom: 48px;
}

.why-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.why-subtitle {
    color: var(--color-grey);
    font-size: 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px 28px;
    background: var(--color-white);
    border: 4px solid var(--color-primary);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.why-card .cloud {
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 140px;
    height: 50px;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    border-radius: 100px;
    opacity: 0.15;
    filter: blur(2px);
    z-index: 0;
}

.why-card .cloud::before,
.why-card .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.why-card .cloud::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 20px;
}

.why-card .cloud::after {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 70px;
}

.why-card:hover {
    transform: translateY(-2px);
}

.why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

.why-icon--img {
    background: none;
    width: auto;
    height: auto;
    justify-content: flex-start;
}

.why-icon--img img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.why-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.why-card p {
    color: var(--color-nickel);
    font-size: 0.9375rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Steps Section - Dark Theme */
.steps-section {
    padding: 40px 0 0;
    background: transparent;
    position: relative;
    overflow: visible;
}

.steps-section .wrapper {
    padding: 0 40px;
}

.steps-inner {
    padding: 120px 40px 100px;
    background: var(--color-primary);
    border-radius: 24px;
}

.steps-header {
    text-align: center;
    margin-bottom: 80px;
}

.steps-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffd4b8;
    margin-bottom: 12px;
}

.steps-subtitle {
    color: var(--color-grey);
    font-size: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-item[data-step="2"] {
    transition-delay: 0.15s;
}

.step-img {
    width: 192px;
    height: auto;
    margin-bottom: 20px;
}

.step-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f58549;
    margin-bottom: 8px;
}

.step-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.step-item p {
    color: var(--color-white);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Integrations Section */
.integrations-section {
    padding: 80px 0;
    background: var(--color-beige);
}

.integrations-section .wrapper {
    padding: 0 40px;
    text-align: center;
}

.integrations-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.integrations-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-grey);
    margin-bottom: 16px;
}

.integrations-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto 40px;
}

.integrations-tags:last-child {
    margin-bottom: 0;
}

.integrations-tags--clamped {
    max-height: 112px;
    overflow: hidden;
}

.integration-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-stroke);
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.integration-tag {
    border-color: #f58549;
    box-shadow: 0 2px 12px rgba(245, 133, 73, 0.15);
    transform: translateY(-2px);
}

.integration-tag--more {
    border-style: dashed;
    color: var(--color-grey);
    font-weight: 500;
}

.integration-tag--more:hover {
    color: #f58549;
}

.integration-tag img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: var(--color-beige);
}

.pricing-section .wrapper {
    padding: 0 40px;
}

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

.pricing-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.pricing-subtitle {
    color: var(--color-grey);
    font-size: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px 32px;
    background: var(--color-white);
    border: 4px solid var(--color-primary);
    border-radius: 12px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    flex-grow: 1;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card--main {
    background: var(--color-white);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 50px;
    border: 3px solid var(--color-primary);
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    text-align: center;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--color-grey);
}

.pricing-includes {
    text-align: center;
    margin-bottom: 12px;
}

.pricing-includes-badge {
    display: inline-flex;
    padding: 6px 16px;
    background: rgba(245, 133, 73, 0.1);
    border: 1.5px solid rgba(245, 133, 73, 0.3);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d65a2a;
}

.pricing-desc {
    text-align: center;
    color: var(--color-nickel);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--color-nickel);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-stroke);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
}

.button--secondary {
    background: var(--color-white);
    border: 4px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.button--secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Testimonials Section */
.usecases-section {
    padding: 100px 0;
    background: var(--color-beige);
    overflow: hidden;
}

.usecases-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 40px;
    position: relative;
}

.usecases-crab {
    width: 230px;
    height: auto;
    display: block;
    margin: -5px auto;
}

.usecases-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-primary);
}

.usecases-subtitle {
    color: var(--color-grey);
    font-size: 1rem;
    margin-top: 8px;
}

.usecases-marquee {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marquee-row {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    animation: marquee 40s linear infinite;
}

.marquee-row--left .marquee-content {
    animation: marquee-reverse 40s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.marquee-row:hover .marquee-content {
    animation-play-state: paused;
}

.usecase-card {
    flex-shrink: 0;
    width: 280px;
    padding: 24px 24px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.usecase-card:hover {
    border-color: rgba(245, 133, 73, 0.25);
}

.usecase-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(245, 133, 73, 0.08);
    color: #f58549;
    margin-bottom: 12px;
}

.usecase-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.usecase-desc {
    color: var(--color-nickel);
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* Signup Page */
.signup-section {
    padding: 120px 0 100px;
    background: var(--color-beige);
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: flex-start;
}

.signup-section .wrapper {
    padding: 0 40px;
    max-width: 720px;
    margin: 0 auto;
}

.signup-card {
    background: var(--color-white);
    border: none;
    border-radius: 12px;
    padding: 48px 40px;
    position: relative;
    overflow: visible;
}

.signup-crab {
    position: absolute;
    top: -83px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: auto;
    pointer-events: none;
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.signup-subtitle {
    color: var(--color-grey);
    font-size: 1rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.signup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.signup-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signup-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

.signup-hint {
    font-size: 0.8125rem;
    color: var(--color-grey);
    margin-top: -4px;
}

.signup-input {
    padding: 12px 16px;
    border: 2px solid var(--color-stroke);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--color-primary);
    background: var(--color-beige);
    transition: border-color 0.2s ease;
    outline: none;
}

.signup-input::placeholder {
    color: var(--color-grey);
}

.signup-input:focus {
    border-color: #f58549;
}

.signup-input--error {
    border-color: #e53e3e;
}

.signup-error {
    color: #e53e3e;
    font-size: 0.8125rem;
    margin-top: 6px;
}

.signup-packages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.signup-package {
    padding: 20px;
    border: 2px solid var(--color-stroke);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signup-package:hover {
    border-color: #f58549;
}

.signup-package.selected {
    border-color: #f58549;
    background: rgba(245, 133, 73, 0.06);
    box-shadow: 0 0 0 1px #f58549;
}

.signup-package-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.signup-package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.signup-package-price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-grey);
}

.signup-package-desc {
    font-size: 0.8125rem;
    color: var(--color-grey);
}

.signup-custom-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.signup-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.signup-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.signup-search {
    width: 100%;
    border-radius: 50px;
    padding: 10px 20px;
}

.signup-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 2px solid var(--color-stroke);
    border-top: none;
    border-radius: 0 0 16px 16px;
    z-index: 10;
    max-height: 240px;
    overflow-y: auto;
}

.signup-autocomplete.visible {
    display: block;
}

.signup-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.9375rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.signup-autocomplete-item:hover {
    background: rgba(245, 133, 73, 0.08);
}

.signup-autocomplete-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.signup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.signup-tags .integration-tag {
    padding: 7px 16px;
    font-size: 0.875rem;
}

.signup-tags .integration-tag img {
    width: 18px;
    height: 18px;
}

.signup-see-more {
    font-size: 0.8125rem;
    color: #f58549;
    text-decoration: none;
    font-weight: 500;
    margin-top: 4px;
}

.signup-see-more:hover {
    text-decoration: underline;
}

/* Model Selection */
.signup-models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: end;
}

.signup-model-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.signup-model {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 16px;
    border: 2px solid var(--color-stroke);
    border-radius: 12px;
    background: var(--color-beige);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
}

.signup-model img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.signup-model > span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
}

.signup-model:hover {
    border-color: #f58549;
}

.signup-model.selected {
    border-color: #f58549;
    background: rgba(245, 133, 73, 0.06);
}

.signup-model.disabled {
    opacity: 0.5;
    cursor: default;
}

.signup-model.disabled:hover {
    border-color: var(--color-stroke);
}

.signup-model-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #f58549, #ff6b35);
    color: #fff;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    z-index: 1;
    font-size: 11px !important;
    color: white !important;
}

.signup-model-soon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    background: rgba(244, 243, 236, 0.85);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.signup-model-wrap:hover .signup-model-soon {
    opacity: 1;
}

/* Telegram Help */
.signup-telegram-help {
    margin-top: 8px;
}

.signup-telegram-help-toggle {
    background: none;
    border: none;
    color: #f58549;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.signup-telegram-help-toggle:hover {
    text-decoration: underline;
}

.signup-telegram-help-content {
    display: none;
    margin-top: 12px;
    padding: 16px 20px;
    background: var(--color-beige);
    border: 2px solid var(--color-stroke);
    border-radius: 12px;
}

.signup-telegram-help-content.visible {
    display: block;
}

.signup-telegram-help-content ol {
    margin: 0;
    padding: 0 0 0 20px;
}

.signup-telegram-help-content li {
    font-size: 0.8125rem;
    color: var(--color-nickel);
    line-height: 1.7;
    margin-bottom: 4px;
}

.signup-telegram-help-content code {
    background: rgba(245, 133, 73, 0.1);
    color: #d65a2a;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
}

/* Coming Soon */
.signup-coming-soon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--color-grey);
}

.signup-coming-soon-badge {
    display: inline-flex;
    padding: 3px 10px;
    background: var(--color-beige);
    border: 1.5px solid var(--color-stroke);
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-grey);
}

@media (max-width: 600px) {
    .signup-models {
        grid-template-columns: 1fr;
    }
}

/* Messaging Platform Tabs */
.signup-msg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.signup-msg-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-stroke);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-nickel);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    position: relative;
}

.signup-msg-tab img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.signup-msg-tab.active {
    border-color: #f58549;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 133, 73, 0.3);
}

.signup-msg-tab.active img {
    filter: brightness(0) invert(1);
}

.signup-msg-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signup-msg-tab-badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--color-beige);
    color: var(--color-grey);
    padding: 2px 6px;
    border-radius: 50px;
    border: 1px solid var(--color-stroke);
}

.signup-msg-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Instructions Block */
.signup-instructions {
    margin-top: 12px;
    padding: 16px 20px;
    background: #eaecf5;
    border: 1.5px solid #d4d7e5;
    border-radius: 12px;
}

.signup-instructions-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-grey);
    margin-bottom: 10px;
}

.signup-instructions ol {
    margin: 0;
    padding: 0 0 0 20px;
}

.signup-instructions li {
    font-size: 0.8125rem;
    color: var(--color-nickel);
    line-height: 1.7;
    margin-bottom: 4px;
}

.signup-instructions code {
    background: rgba(245, 133, 73, 0.1);
    color: #d65a2a;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8125rem;
}

/* Telegram Message Bubble */
.tg-bubble {
    margin-top: 14px;
    padding: 10px 14px;
    background: #e1ffc7;
    border-radius: 0 12px 12px 12px;
    max-width: 100%;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #1a1a1a;
}

.tg-bubble-name {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: #3a7bd5;
    margin-bottom: 4px;
}

.tg-bubble p {
    margin: 0;
    word-break: break-word;
}

.tg-highlight {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
}

.tg-bubble-time {
    display: block;
    text-align: right;
    font-size: 0.6875rem;
    color: #6b9b5c;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .signup-msg-tabs {
        flex-wrap: wrap;
    }
    .signup-msg-tab {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
}

.integration-tag--selectable {
    cursor: pointer;
    user-select: none;
}

.integration-tag--selectable.selected {
    border-color: #f58549;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 133, 73, 0.3);
}

.integration-tag--selectable.selected img {
    filter: brightness(0) invert(1);
}

.signup-submit {
    align-self: center;
    margin-top: 8px;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    background-size: 100% 100%;
    border: 2px solid #f58549;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 48px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(245, 133, 73, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    animation: none;
}

.signup-submit::before {
    display: none;
}

.signup-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e8943a 0%, #d6702a 50%, #b8481a 100%);
    border-color: #d6702a;
    box-shadow: 0 4px 16px rgba(200, 80, 30, 0.4);
}

/* Step Indicator */
.signup-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.signup-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-stroke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-grey);
    background: var(--color-white);
    transition: all 0.3s ease;
}

.signup-step-dot.active {
    border-color: #f58549;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    color: #fff;
}

.signup-step-dot.completed {
    border-color: #f58549;
    background: #f58549;
    color: #fff;
}

.signup-step-line {
    width: 60px;
    height: 2px;
    background: var(--color-stroke);
    transition: background 0.3s ease;
}

.signup-step-line.active {
    background: #f58549;
}

.signup-step {
    animation: fadeInUp 0.4s ease;
}

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

#clerk-sign-up {
    display: flex;
    justify-content: center;
    min-height: 300px;
}

/* Step 3: Payment */
.signup-payment {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.signup-payment-summary {
    padding: 20px 24px;
    background: var(--color-beige);
    border-radius: 12px;
    border: 2px solid var(--color-stroke);
}

.signup-payment-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.signup-payment-plan-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
}

.signup-payment-plan-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-primary);
}

.signup-stripe-element {
    padding: 14px 16px;
    border: 2px solid var(--color-stroke);
    border-radius: 8px;
    background: var(--color-beige);
    transition: border-color 0.2s ease;
}

.signup-stripe-element.StripeElement--focus {
    border-color: #f58549;
}

.signup-stripe-error {
    color: #e53e3e;
    font-size: 0.8125rem;
    min-height: 1.2em;
    margin-top: 4px;
}

/* Step 4: Profile */
.profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    padding: 20px 24px;
    background: var(--color-beige);
    border-radius: 12px;
    border: 2px solid var(--color-stroke);
}

.profile-card--status {
    border-color: #f58549;
    background: rgba(245, 133, 73, 0.04);
}

.profile-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-grey);
    margin-bottom: 16px;
}

.profile-status-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.profile-status-indicator {
    flex-shrink: 0;
}

.signup-loader-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--color-stroke);
    border-top-color: #f58549;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.signup-loader-spinner--sm {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

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

.profile-status-label {
    font-size: 0.8125rem;
    color: var(--color-grey);
    margin-bottom: 2px;
}

.profile-status-value {
    font-size: 1rem;
    font-weight: 600;
    color: #f58549;
}

.profile-status-desc {
    color: var(--color-nickel);
    font-size: 0.875rem;
    line-height: 1.6;
}

.profile-rows {
    display: flex;
    flex-direction: column;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-stroke);
}

.profile-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-row:first-child {
    padding-top: 0;
}

.profile-row-label {
    font-size: 0.875rem;
    color: var(--color-grey);
}

.profile-row-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
}

.profile-tags-group {
    margin-bottom: 16px;
}

.profile-tags-group:last-child {
    margin-bottom: 0;
}

.profile-tags-label {
    font-size: 0.8125rem;
    color: var(--color-grey);
    margin-bottom: 8px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.integration-tag--mini {
    padding: 5px 12px;
    font-size: 0.8125rem;
    border-color: #f58549;
}

.integration-tag--mini img {
    width: 16px;
    height: 16px;
}

.profile-tool-remove {
    background: none;
    border: none;
    color: #827a89;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    margin-left: 4px;
    padding: 0 2px;
}

.profile-tool-remove:hover {
    color: #d65a2a;
}

.profile-none {
    font-size: 0.8125rem;
    color: var(--color-grey);
    font-style: italic;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 12px;
}

.profile-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-subscription {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-subscription-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-subscription-plan {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.profile-subscription-price {
    font-size: 0.8125rem;
    color: var(--color-grey);
}

.profile-manage-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f58549;
    border: 2px solid #f58549;
    border-radius: 50px;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-manage-btn:hover {
    background: rgba(245, 133, 73, 0.06);
}

/* Credits */
.profile-credits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-credits-bar {
    height: 8px;
    background: var(--color-stroke);
    border-radius: 50px;
    overflow: hidden;
}

.profile-credits-fill {
    height: 100%;
    background: linear-gradient(135deg, #ffb07a 0%, #f58549 50%, #d65a2a 100%);
    border-radius: 50px;
    transition: width 0.3s ease;
}

.profile-credits-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.profile-credits-used {
    color: var(--color-grey);
}

.profile-credits-total {
    font-weight: 600;
    color: var(--color-primary);
}

.profile-topup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f58549;
    border: 2px solid #f58549;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    font-family: inherit;
}

.profile-topup-btn:hover {
    background: rgba(245, 133, 73, 0.06);
}

.profile-topup-history {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.profile-topup-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(245, 133, 73, 0.06);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #f58549;
}

.profile-topup-date {
    color: #827a89;
    font-weight: 400;
}

.profile-topup-options {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* Top-up Modal */
.topup-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 13, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.topup-modal.visible {
    display: flex;
}

.topup-modal-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(8, 6, 13, 0.2);
}

.topup-modal-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.topup-modal-desc {
    font-size: 0.875rem;
    color: var(--color-grey);
    margin-bottom: 24px;
    line-height: 1.5;
}

.topup-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-grey);
    cursor: pointer;
    line-height: 1;
}

.topup-modal-close:hover {
    color: var(--color-primary);
}

.topup-modal-field {
    margin-bottom: 20px;
}

.topup-modal-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: var(--color-beige);
    border-radius: 12px;
    border: 2px solid var(--color-stroke);
    margin-bottom: 20px;
}

.topup-modal-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-nickel);
}

.topup-modal-row--total {
    padding-top: 8px;
    border-top: 1px solid var(--color-stroke);
    font-weight: 600;
    color: var(--color-primary);
}

.profile-support {
    text-align: center;
    padding-top: 8px;
}

.profile-support p {
    color: var(--color-grey);
    font-size: 0.875rem;
}

.profile-support a {
    color: #f58549;
    font-weight: 500;
    text-decoration: none;
}

.profile-support a:hover {
    text-decoration: underline;
}

.profile-logout {
    text-align: center;
    padding-top: 4px;
}

.profile-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-grey);
    background: transparent;
    border: 1.5px solid var(--color-stroke);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-logout-btn svg {
    flex-shrink: 0;
}

.profile-logout-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
}

@media (max-width: 600px) {
    .signup-section .wrapper {
        padding: 0 16px;
    }

    .signup-card {
        padding: 32px 20px;
    }

    .signup-packages {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages */
.legal-section {
    padding: 80px 0 60px;
}

.legal-card {
    max-width: 720px;
    margin: 0 auto;
}

.legal-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--color-grey);
    font-size: 0.875rem;
    margin-bottom: 40px;
}

.legal-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-card p {
    color: var(--color-nickel);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-card ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.legal-card li {
    color: var(--color-nickel);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 6px;
}

.legal-card a {
    color: #f58549;
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--color-beige);
}

.faq-section .wrapper {
    max-width: var(--wrapper-max);
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    color: var(--color-primary);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.faq-item {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-stroke);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    transition: background 0.15s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-grey);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    content: '-';
}

.faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-answer {
    padding: 0 24px 18px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    .faq-list {
        grid-template-columns: 1fr;
    }
    .faq-question {
        padding: 16px 20px;
    }
    .faq-answer {
        padding: 0 20px 16px;
    }
}

/* Footer */
.footer {
    background: var(--color-primary);
    padding: 60px 0 40px;
    position: relative;
    overflow: visible;
}

.footer-crab {
    position: absolute;
    top: 0;
    width: 203px;
    height: auto;
    z-index: 10;
}

.footer-crab--right {
    right: 10%;
    transform: translateY(-60%);
}

.footer-crab--left {
    left: 10%;
    transform: translateY(-60%) scaleX(-1);
}

.footer .wrapper {
    padding: 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}

.footer-tagline {
    color: var(--color-grey);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-grey);
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

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

.footer-email {
    color: var(--color-grey);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-email:hover {
    color: var(--color-white);
}

.footer-support-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-support-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    padding-top: 24px;
}

.footer-bottom p {
    color: var(--color-grey);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-models {
        align-items: center;
    }

    .hero-models-tags {
        justify-content: center;
    }

    .hero-image {
        padding: 32px 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .usecase-card {
        width: 240px;
    }

    .marquee-content {
        animation-duration: 30s;
    }

    .integrations-section {
        padding: 60px 0;
    }

    .integrations-section .wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    header .wrapper {
        padding: 20px 16px;
    }

    .nav-by {
        display: none;
    }

    .hero {
        padding-top: 0;
    }

    .hero-content {
        padding: 40px 20px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .hero-buttons .button {
        width: 100%;
        justify-content: center;
    }

    .wrapper {
        border-left: none;
        border-right: none;
    }

    .why-section {
        padding: 60px 0;
    }

    .why-section .wrapper {
        padding: 0 20px;
    }

    .why-header {
        margin-bottom: 32px;
    }

    .steps-section {
        padding: 60px 0;
    }

    .steps-section .wrapper {
        padding: 0 20px;
    }

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

    .step-item h3 {
        font-size: 1.25rem;
    }

    .step-img {
        width: 145px;
    }

    .pricing-section {
        padding: 60px 0;
    }

    .pricing-section .wrapper {
        padding: 0 20px;
    }

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

    .pricing-card {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .footer .wrapper {
        padding: 0 20px;
    }

    .footer-crab {
        width: 130px;
    }

    .footer-crab--right {
        right: 5%;
    }

    .footer-crab--left {
        left: 5%;
    }

    .usecases-section {
        padding: 60px 0;
    }

    .usecases-header {
        padding: 0 20px;
        margin-bottom: 32px;
    }

    .usecases-crab {
        width: 120px;
        margin-bottom: 12px;
    }

    .usecase-card {
        width: 220px;
        padding: 16px 18px;
    }

    .usecase-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
    }

    .usecase-icon svg {
        width: 18px;
        height: 18px;
    }
}

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

    .terminal-text,
    .terminal-output {
        font-size: 0.8rem;
    }
}
