/* assets/css/style.css */
/* თანამედროვე, სუფთა დიზაინი ლურჯი/იისფერი გრადიენტით */

:root {
    --wm-bg: #030712;
    --wm-bg-alt: #050816;
    --wm-surface: #0b1220;
    --wm-surface-alt: #020617;
    --wm-border: rgba(148, 163, 184, 0.25);
    --wm-text: #e5e7eb;
    --wm-text-soft: #9ca3af;
    --wm-accent: #4f46e5;
    --wm-accent-soft: #6366f1;
    --wm-accent-strong: #a855f7;
    --wm-danger: #ef4444;
    --wm-success: #22c55e;
    --wm-radius-lg: 18px;
    --wm-radius-md: 12px;
    --wm-radius-pill: 999px;
    --wm-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.8);
    --wm-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.9);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 40%, #000 100%);
    color: var(--wm-text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.wm-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.wm-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.65), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.wm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.5rem;
}

.wm-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.wm-logo-mark {
    color: var(--wm-text);
}

.wm-logo-accent {
    background: linear-gradient(120deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wm-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.wm-nav a {
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    color: var(--wm-text-soft);
}

.wm-nav a:hover {
    color: var(--wm-text);
    border-bottom-color: rgba(129, 140, 248, 0.7);
}

/* Hero */
.wm-hero {
    padding: 3.5rem 0 2.75rem;
}

.wm-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
    gap: 2.75rem;
    align-items: center;
}

.wm-hero-text h1 {
    font-size: clamp(2.25rem, 3.2vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.1rem;
}

.wm-hero-text p {
    margin: 0;
    color: var(--wm-text-soft);
    max-width: 34rem;
}

.wm-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.wm-btn {
    border-radius: var(--wm-radius-pill);
    padding: 0.68rem 1.4rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: all 0.16s ease-out;
}

.wm-btn-primary {
    background: radial-gradient(circle at 10% 0, #6366f1, #a855f7 55%, #ec4899 100%);
    color: white;
    box-shadow: 0 18px 45px rgba(88, 28, 135, 0.65);
}

.wm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 60px rgba(88, 28, 135, 0.85);
}

.wm-btn-secondary {
    background: rgba(15, 23, 42, 0.95);
    color: var(--wm-text);
    border-color: rgba(148, 163, 184, 0.4);
}

.wm-btn-secondary:hover {
    border-color: rgba(129, 140, 248, 0.9);
    color: white;
}

.wm-btn-ghost {
    background: rgba(15, 23, 42, 0.4);
    color: var(--wm-text-soft);
    border-color: rgba(148, 163, 184, 0.25);
}

.wm-btn-ghost:hover {
    border-color: rgba(129, 140, 248, 0.7);
    color: var(--wm-text);
}

.wm-hero-card {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 55%),
                radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.25), transparent 60%),
                linear-gradient(to bottom right, #020617, #020617);
    border-radius: 24px;
    padding: 1.3rem 1.4rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: var(--wm-shadow-card);
    position: relative;
    overflow: hidden;
}

.wm-hero-card::before {
    content: "";
    position: absolute;
    inset: -120px;
    background:
        radial-gradient(circle at 20% 0, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.2), transparent 55%);
    opacity: 0.8;
    mix-blend-mode: screen;
    pointer-events: none;
}

.wm-hero-card-header,
.wm-hero-card-body {
    position: relative;
    z-index: 1;
}

.wm-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border: 1px solid rgba(148, 163, 184, 0.45);
    backdrop-filter: blur(10px);
}

.pill-green {
    background: rgba(22, 163, 74, 0.18);
    border-color: rgba(52, 211, 153, 0.6);
    color: #bbf7d0;
}

.pill-purple {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.7);
    color: #e0e7ff;
}

.wm-hero-highlight {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
}

.wm-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--wm-text-soft);
}

.wm-hero-list li + li {
    margin-top: 0.35rem;
}

/* Sections */
.wm-section {
    padding: 2.5rem 0;
}

.wm-section-alt {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

/* AI Demo card */
.wm-ai-demo-card {
    max-width: 720px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98));
    border-radius: 22px;
    padding: 1.5rem 1.6rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--wm-shadow-card);
}

.wm-ai-demo-card h2 {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
}

.wm-ai-demo-subtitle {
    margin: 0 0 0.6rem;
    color: var(--wm-text-soft);
    font-size: 0.95rem;
}

.wm-ai-demo-text {
    margin: 0 0 1.1rem;
    color: var(--wm-text-soft);
    font-size: 0.9rem;
}

.wm-ai-demo-note {
    margin: 0.7rem 0 0;
    font-size: 0.8rem;
    color: var(--wm-text-soft);
}

/* AI Chat Assistant teaser */
.wm-ai-chat-card {
    max-width: 720px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), rgba(15, 23, 42, 0.98));
    border-radius: 22px;
    padding: 1.5rem 1.6rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--wm-shadow-card);
    text-align: left;
}

.wm-ai-chat-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
}

.wm-ai-chat-subtitle {
    margin: 0 0 1rem;
    color: var(--wm-text-soft);
    font-size: 0.95rem;
}

.wm-section-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.wm-section-header.left {
    text-align: left;
}

.wm-section-header h2 {
    margin: 0 0 0.4rem;
    font-size: 1.45rem;
}

.wm-section-header p {
    margin: 0;
    color: var(--wm-text-soft);
    font-size: 0.95rem;
}

/* Packages grid */
.wm-packages-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
}

.wm-card {
    border-radius: var(--wm-radius-lg);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.15), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.1rem 1.05rem 1rem;
    box-shadow: var(--wm-shadow-soft);
    position: relative;
    overflow: hidden;
}

.wm-card-package:nth-child(3) {
    border-color: rgba(248, 250, 252, 0.65);
    box-shadow: 0 24px 70px rgba(30, 64, 175, 0.9);
    transform: translateY(-4px);
}

.wm-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.wm-card-price {
    margin: 0.4rem 0 0;
}

.wm-price {
    font-size: 1.35rem;
    font-weight: 600;
}

.wm-price-period {
    font-size: 0.75rem;
    color: var(--wm-text-soft);
    margin-left: 0.25rem;
}

.wm-card-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0.9rem;
    font-size: 0.86rem;
    color: var(--wm-text-soft);
}

.wm-card-features li + li {
    margin-top: 0.25rem;
}

.wm-card-footer {
    display: flex;
    justify-content: flex-start;
}

.wm-card-package .wm-btn-secondary {
    width: 100%;
}

/* Grid two (form + aside) */
.wm-grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 2.2rem;
    align-items: flex-start;
}

.wm-form-wrapper {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.96));
    border-radius: 22px;
    padding: 1.4rem 1.4rem 1.3rem;
    box-shadow: var(--wm-shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.wm-form {
    margin-top: 0.8rem;
}

.wm-form-group {
    margin-bottom: 0.85rem;
}

.wm-form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--wm-text-soft);
    margin-bottom: 0.25rem;
}

.wm-form-group input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: var(--wm-text);
    font-size: 0.9rem;
}

.wm-form-group input:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.95);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.75);
}

.wm-form-group-inline {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: flex-end;
}

.wm-domain-check {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wm-domain-status {
    font-size: 0.8rem;
    min-height: 1.1rem;
}

.wm-domain-status--ok {
    color: var(--wm-success);
}

.wm-domain-status--error {
    color: var(--wm-danger);
}

.wm-form-footer {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.wm-form-status {
    font-size: 0.85rem;
    color: var(--wm-text-soft);
}

.wm-form-status--ok {
    color: var(--wm-success);
}

.wm-form-status--error {
    color: var(--wm-danger);
}

.wm-aside .wm-card-ai {
    min-height: 100%;
}

.wm-ai-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0.6rem;
    font-size: 0.86rem;
    color: var(--wm-text-soft);
}

.wm-ai-list li + li {
    margin-top: 0.25rem;
}

.wm-ai-note {
    font-size: 0.82rem;
    color: var(--wm-text-soft);
    margin: 0.35rem 0 0;
}

/* AI Scenarios */
.wm-ai-scenarios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.wm-card-scenario {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
}

.wm-card-scenario h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.wm-card-scenario p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--wm-text-soft);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Footer */
.wm-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.3rem 0 1.4rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
}

.wm-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--wm-text-soft);
}

.wm-footer-meta {
    opacity: 0.85;
}

/* AI Agent Demo Modal / Console */
.wm-ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.wm-ai-modal-overlay.is-open {
    display: flex;
}

.wm-ai-modal {
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    background: #020617;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    padding: 1.1rem 1.3rem 1.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wm-ai-modal-title {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.wm-ai-modal-subtitle {
    margin: 0 0 0.8rem;
    font-size: 0.86rem;
    color: var(--wm-text-soft);
}

.wm-ai-modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: var(--wm-text-soft);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.wm-ai-modal-close:hover {
    border-color: rgba(248, 113, 113, 0.9);
    color: #fecaca;
}

.wm-ai-console {
    flex: 1 1 auto;
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(30, 64, 175, 0.9);
    padding: 0.9rem;
    margin-bottom: 0.6rem;
    font-family: "Consolas", "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    color: #e5e7eb;
    overflow-y: auto;
}

.wm-ai-console-line {
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.18rem;
}

.wm-ai-console-line.ai-line-user {
    color: #e5e7eb;
}

.wm-ai-console-line.ai-line-ai {
    color: #60a5fa; /* blue */
}

.wm-ai-console-line.ai-line-info {
    color: #eab308; /* yellow */
}

.wm-ai-console-line.ai-line-success {
    color: #4ade80; /* green */
}

.wm-ai-console-line.ai-line-error {
    color: #f97373; /* red */
}

.wm-ai-console-line strong {
    font-weight: 700;
}

.wm-ai-disclaimer {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: var(--wm-text-soft);
}

.wm-ai-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

/* Chat assistant modal overrides */
.wm-chat-modal {
    max-width: 540px;
    height: 600px;
}

.wm-chat-messages {
    flex: 1 1 auto;
    border-radius: 14px;
    border: 1px solid rgba(30, 64, 175, 0.9);
    padding: 0.75rem 0.7rem;
    margin-bottom: 0.5rem;
    background: #020617;
    overflow-y: auto;
}

.wm-chat-message-row {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.4rem;
}

.wm-chat-message-row-user {
    justify-content: flex-end;
}

.wm-chat-message-row-ai {
    justify-content: flex-start;
}

.wm-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    margin: 0 0.35rem;
}

.wm-chat-bubble {
    max-width: 78%;
    padding: 0.5rem 0.7rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.35;
    word-break: break-word;
}

.wm-chat-bubble-user {
    background: radial-gradient(circle at top, #4f46e5, #6366f1);
    color: #e5e7eb;
    border-bottom-right-radius: 4px;
}

.wm-chat-bubble-ai {
    background: rgba(15, 23, 42, 0.96);
    color: var(--wm-text);
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-bottom-left-radius: 4px;
}

.wm-chat-text {
    white-space: pre-wrap;
}

.wm-chat-typing {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--wm-text-soft);
}

.wm-chat-typing-avatar {
    font-size: 1rem;
}

.wm-chat-typing-dots {
    display: inline-flex;
    gap: 0.2rem;
}

.wm-chat-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.85);
    animation: wm-chat-dot 1.1s infinite ease-in-out;
}

.wm-chat-typing-dots span:nth-child(2) {
    animation-delay: 0.12s;
}

.wm-chat-typing-dots span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes wm-chat-dot {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.wm-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.wm-chat-suggestion-chip {
    border-radius: var(--wm-radius-pill);
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.7);
    color: var(--wm-text-soft);
    font-size: 0.8rem;
    cursor: pointer;
}

.wm-chat-suggestion-chip:hover {
    border-color: rgba(129, 140, 248, 0.9);
    color: #e5e7eb;
}

.wm-chat-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.wm-chat-input-wrapper {
    flex: 1 1 auto;
}

.wm-chat-input {
    width: 100%;
    min-height: 38px;
    max-height: 120px;
    resize: none;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.96);
    color: var(--wm-text);
    font-size: 0.88rem;
    line-height: 1.3;
}

.wm-chat-input:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.95);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.75);
}

.wm-chat-send-btn {
    align-self: flex-end;
    padding-inline: 1.1rem;
}

.wm-ai-code-wrapper {
    max-height: 220px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #020617;
    padding: 0.6rem 0.8rem;
    overflow: auto;
}

.wm-ai-code-wrapper pre {
    margin: 0;
    font-family: "Consolas", "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", "Courier New", monospace;
    font-size: 0.78rem;
    color: #e5e7eb;
}

.wm-ai-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.4);
    border-top-color: rgba(96, 165, 250, 0.95);
    animation: wm-spin 0.7s linear infinite;
    margin-right: 0.35rem;
}

@keyframes wm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .wm-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-hero-card {
        order: -1;
    }

    .wm-packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-grid-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-ai-scenarios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wm-header-inner {
        padding-inline: 0;
    }

    .wm-nav {
        display: none;
    }

    .wm-hero {
        padding-top: 2.4rem;
    }

    .wm-packages-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-form-group-inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-ai-scenarios {
        grid-template-columns: minmax(0, 1fr);
    }

    .wm-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .wm-ai-modal {
        max-width: none;
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
}


