/*
Theme Name: ActionShip AI
Author: Teapplix
Version: 1.0
Description: ActionShip AI landing page theme
*/

/* ==========================================================
   ActionShip AI landing page template styles
   ========================================================== */

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

:root {
    --bg: #060c1a;
    --bg-2: #0c1628;
    --bg-card: rgba(255, 255, 255, 0.04);
    --blue: #2196f3;
    --cyan: #00d4ff;
    --purple: #8b5cf6;
    --text: #eef2ff;
    --text-muted: #7d8faa;
    --border: rgba(255, 255, 255, 0.07);
    --border-blue: rgba(33, 150, 243, 0.35);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(33, 150, 243, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
}

section,
footer {
    position: relative;
    z-index: 1;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features,
.how,
.mcp-panel,
.use-cases {
    padding: 6rem 2rem;
}

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

.uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.steps-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

/* Shared patterns */
.nav-logo,
.btn-cta,
.btn-ghost,
.hero-badge {
    display: inline-flex;
    align-items: center;
}

.hero,
.hero-cta-group,
.carrier-badges,
.mcp-tools,
.feat-icon,
.step-num,
.modal-close,
.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cta,
.btn-ghost,
.footer-teapplix,
.modal-close {
    transition: all 0.2s;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 2.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(6, 12, 26, 0.75);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.nav-logo {
    gap: 0.625rem;
    text-decoration: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.logo-wordmark {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-wordmark em {
    color: var(--blue);
    font-style: normal;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 9rem 2rem 5rem;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    width: 1000px;
    height: 600px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(33, 150, 243, 0.13) 0%, transparent 65%);
}

.hero-content {
    position: relative;
    max-width: 860px;
}

.hero-badge {
    gap: 0.5rem;
    margin-bottom: 2.25rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 100px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.06;
}

.gradient-text {
    background: linear-gradient(110deg, var(--blue) 0%, var(--cyan) 45%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    max-width: 580px;
    margin: 0 auto 2.75rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.75;
}

.hero-cta-group {
    gap: 0.875rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-cta {
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    background: var(--blue);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.25);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-1px);
    background: #1976d2;
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.4);
}

.btn-cta.large {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(33, 150, 243, 0.3);
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-cta.large:hover {
    box-shadow: 0 0 55px rgba(33, 150, 243, 0.5);
}

.btn-ghost {
    gap: 0.4rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
}

/* Sections and cards */
.section-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-eyebrow {
    margin-bottom: 0.875rem;
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 0.875rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.section-body {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.carrier-strip {
    margin-top: 3.5rem;
}

.carrier-strip-label {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.carrier-badges {
    gap: 0.6rem;
    flex-wrap: wrap;
}

.carrier-badge {
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.carrier-badge.more {
    color: rgba(255, 255, 255, 0.3);
}

.carrier-strip-hint {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.feat-card,
.uc-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
}

.feat-card {
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.feat-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    transition: opacity 0.3s;
}

.feat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-blue);
    background: rgba(33, 150, 243, 0.05);
}

.feat-card:hover::after {
    opacity: 1;
}

.feat-card.feat-highlight {
    border-color: rgba(0, 212, 255, 0.25);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(0, 212, 255, 0.06));
}

.feat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: rgba(33, 150, 243, 0.1);
    font-size: 1.4rem;
}

.feat-card.feat-highlight .feat-icon {
    background: rgba(0, 212, 255, 0.12);
}

.feat-card h3,
.uc-card h3 {
    margin-bottom: 0.625rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.feat-card h3 {
    color: var(--text);
}

.feat-card p,
.uc-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.uc-emoji {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.how,
.use-cases {
    background: var(--bg-2);
}

.step {
    position: relative;
    flex: 1;
    min-width: 210px;
    padding: 1.5rem 1.75rem;
    text-align: center;
}

.step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 1.75rem;
    right: -0.25rem;
    opacity: 0.4;
    color: var(--blue);
    font-size: 1.25rem;
}

.step-num {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--blue);
    font-size: 1.125rem;
    font-weight: 800;
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.step p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* MCP */
.mcp-card {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 3.5rem;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.05);
    text-align: center;
}

.mcp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.1), transparent 65%);
}

.mcp-pill {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0.8rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mcp-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mcp-card > p {
    max-width: 560px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.mcp-tools {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-tag {
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    font-weight: 600;
}

/* CTA */
.cta {
    padding: 7rem 2rem;
}

.cta-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding: 4.5rem 3rem;
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(139, 92, 246, 0.08));
    text-align: center;
}

.cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 110%, rgba(33, 150, 243, 0.12), transparent 60%);
}

.cta-inner h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.cta-inner > p {
    max-width: 480px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

/* Footer */
footer {
    padding: 1.75rem 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.875rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-brand em {
    color: var(--blue);
    font-style: normal;
}

.footer-copy,
.footer-teapplix {
    color: var(--text-muted);
    font-size: 0.825rem;
}

.footer-teapplix {
    text-decoration: none;
}

.footer-teapplix:hover {
    color: var(--text);
}

/* Contact modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    padding: 1.5rem;
    background: rgba(4, 8, 18, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
    display: flex;
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 20px;
    background: #0d1628;
    box-shadow: 0 0 80px rgba(33, 150, 243, 0.15);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.modal-panel h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.modal-panel .as-modal-intro {
    margin-bottom: 1.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Custom success state (Contact modal, post-CF7 mail_sent) */
.as-success-state {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.as-success-state[hidden] {
    display: none !important;
}

.as-modal-main[hidden] {
    display: none !important;
}

.as-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.as-success-title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.as-success-message {
    margin: 0 auto 1.75rem;
    max-width: 340px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.as-success-close {
    width: 100%;
    justify-content: center;
}

/* Modal scope: hide CF7 response chrome when success UI is shown */
.modal-panel.as-modal-success .wpcf7-response-output {
    display: none !important;
}

/* CF7 */
.wpcf7 .as-field {
    margin-bottom: 1.25rem;
}

.wpcf7 .as-field > label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: var(--blue);
    background: rgba(33, 150, 243, 0.06);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: rgba(125, 143, 170, 0.5);
}

.wpcf7 select {
    padding-right: 2.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d8faa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    cursor: pointer;
}

.wpcf7 select option {
    background: #0d1628;
    color: var(--text);
}

.wpcf7 textarea {
    min-height: 90px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    background: var(--blue);
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.3);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.wpcf7 input[type="submit"]:hover {
    transform: translateY(-1px);
    background: #1976d2;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.3rem;
    color: #f87171;
    font-size: 0.78rem;
}

.wpcf7-response-output {
    margin-top: 1rem !important;
    padding: 0.75rem 1rem !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
}

/* Show success message even during resetting/refill */
.wpcf7 form[data-status="sent"] .wpcf7-response-output {
    display: block !important;
}

.wpcf7-mail-sent-ok {
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
    background: rgba(34, 197, 94, 0.1) !important;
    color: #4ade80 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
    border: 1px solid rgba(248, 113, 113, 0.25) !important;
    background: rgba(248, 113, 113, 0.1) !important;
    color: #fca5a5 !important;
}

/* Utilities */
.icon-sm {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.as-text-strong {
    color: var(--text);
}

.as-contact-fallback {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.as-contact-fallback__link {
    color: var(--blue);
}

/* Responsive */
@media (max-width: 760px) {
    nav {
        padding: 0 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .mcp-card {
        padding: 2.25rem 1.5rem;
    }

    .cta-inner {
        padding: 3rem 1.5rem;
    }

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

    .modal-overlay {
        padding: 0.75rem;
        align-items: flex-start;
    }
    .modal-panel {
        padding: 1.5rem 1rem;
        max-height: none;
        margin: auto 0;
    }
}
