/* YuktiAI — California Beaches palette
   Pastel orange + ocean blues on warm cream
   Inspired by Figma's "California Beaches" scheme */

:root {
    /* Base — warm cream surfaces */
    --bg:        #FFFBF3;
    --bg-soft:   #FAF3E7;
    --bg-card:   #FFFFFF;
    --line:      #E8DDC9;
    --line-soft: #F2EBDA;

    /* Text — deep ocean navy through soft horizon blue */
    --text:      #1B4965;
    --text-mute: #5C7B95;
    --text-soft: #94ABBD;

    /* Brand — pastel orange & layered blues */
    --accent:    #FF9F66;       /* pastel orange */
    --accent-2:  #FFB07A;       /* lighter orange */
    --accent-3:  #FF8B4D;       /* deeper orange (hover) */
    --accent-bg: #FFEEDD;       /* peach tint */

    --ocean:     #1B4965;       /* deep navy ocean */
    --sky:       #5FA8D3;       /* sky blue */
    --sky-soft:  #BEE9E8;       /* very soft seafoam */
    --sky-bg:    #E8F4FA;       /* sky tint */

    /* Status colors — kept distinct but warmed */
    --green:     #5FA8D3;       /* repurpose: sky blue for "active" */
    --amber:     #FF9F66;       /* orange for "paused" */
    --red:       #E76F51;       /* terracotta for errors */
    --blue:      #5FA8D3;
    --coral:     #FF8C8C;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --shadow-sm: 0 1px 2px rgba(27,73,101,.06);
    --shadow-md: 0 4px 16px rgba(27,73,101,.08), 0 1px 3px rgba(27,73,101,.05);
    --shadow-lg: 0 12px 40px rgba(27,73,101,.10), 0 2px 6px rgba(27,73,101,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

/* ---------- Top nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255,251,243,.85);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 36px;
}
.logo { font-weight: 700; letter-spacing: -0.02em; font-size: 17px; display: flex; align-items: center; gap: 10px; color: var(--ocean); }
.logo .glyph {
    width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--sky));
    display: grid; place-items: center;
    color: white; font-size: 12px; font-weight: 800;
    box-shadow: 0 2px 8px rgba(255,159,102,.3);
}
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { color: var(--text-mute); font-size: 14px; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ocean); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
    border: 1px solid transparent; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent); color: white;
    box-shadow: 0 4px 14px rgba(255,159,102,.35);
}
.btn-primary:hover { background: var(--accent-3); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,159,102,.45); }
.btn-ghost   { background: white; color: var(--ocean); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--sky); }
.btn-link    { background: transparent; color: var(--text-mute); padding: 9px 6px; }
.btn-link:hover { color: var(--ocean); }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
    padding: 88px 0 64px;
    background:
        radial-gradient(ellipse 900px 460px at 50% 0%, rgba(255,159,102,.18), transparent 60%),
        radial-gradient(ellipse 700px 360px at 80% 30%, rgba(95,168,211,.18), transparent 70%),
        radial-gradient(ellipse 700px 360px at 20% 30%, rgba(190,233,232,.4), transparent 70%);
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--ocean);
    background: white; border: 1px solid var(--line);
    padding: 6px 14px; border-radius: 999px;
    margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.hero h1 {
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.05; letter-spacing: -0.03em;
    margin: 0 auto 22px; max-width: 850px; font-weight: 600;
    color: var(--ocean);
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--accent), var(--sky));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
    font-size: 18px; color: var(--text-mute);
    max-width: 620px; margin: 0 auto 32px;
}
.hero-cta { display: inline-flex; gap: 12px; }

/* ---------- Trusted by logos ---------- */
.trust {
    padding: 28px 0 16px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-soft);
}
.trust-label {
    text-align: center; font-size: 12px; color: var(--text-mute);
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px;
}
.trust-logos {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 48px; opacity: .75;
}
.trust-logos span {
    font-family: var(--font-mono); font-size: 14px; font-weight: 600;
    letter-spacing: -0.02em; color: var(--ocean);
}

/* ---------- Section header ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .kicker {
    font-size: 13px; color: var(--accent); font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -0.02em;
    margin: 0 0 14px; font-weight: 600; color: var(--ocean);
}
.section-head p {
    color: var(--text-mute); max-width: 620px; margin: 0 auto; font-size: 16px;
}

/* ---------- Agent grid ---------- */
.agent-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 920px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .agent-grid { grid-template-columns: 1fr; } }

.agent-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 14px; padding: 22px; position: relative; overflow: hidden;
    transition: all .2s; box-shadow: var(--shadow-sm);
}
.agent-card:hover { border-color: var(--col, var(--accent)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.agent-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--col, var(--accent));
}
.agent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.agent-avatar {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--col, var(--accent)); color: white;
    display: grid; place-items: center; font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.agent-meta .name { font-weight: 600; font-size: 15px; color: var(--ocean); }
.agent-meta .role { color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.agent-card .desc { color: var(--text-mute); font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
.agent-card .stats { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.agent-card .stat { flex: 1; }
.agent-card .stat-val { font-family: var(--font-mono); font-weight: 600; font-size: 16px; color: var(--col, var(--ocean)); }
.agent-card .stat-lbl { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ---------- Feature grid ---------- */
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
    padding: 26px; border-radius: 14px;
    background: var(--bg-card); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--accent-bg); color: var(--accent-3);
    display: grid; place-items: center; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ocean); }
.feature p { color: var(--text-mute); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 16px; padding: 32px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.case .industry {
    display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 4px;
    background: var(--sky-bg); color: var(--ocean);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
    font-weight: 600;
}
.case h3 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.01em; font-weight: 600; color: var(--ocean); }
.case .quote { color: var(--text-mute); font-style: italic; margin-bottom: 22px; line-height: 1.6; }
.case .who { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.case .who .photo { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--sky)); display: grid; place-items: center; color: white; font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm); }
.case .who .person { font-size: 14px; font-weight: 500; color: var(--ocean); }
.case .who .title  { font-size: 12px; color: var(--text-mute); }
.case .metrics {
    display: flex; gap: 32px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.case .metric-val { font-size: 26px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; font-family: var(--font-mono); }
.case .metric-lbl { font-size: 12px; color: var(--text-mute); margin-top: 2px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan {
    border: 1px solid var(--line); border-radius: 16px; padding: 30px;
    background: var(--bg-card); position: relative;
    box-shadow: var(--shadow-sm);
}
.plan.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-bg) 0%, var(--bg-card) 50%);
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
    transform: translateY(-4px);
}
.plan-badge {
    position: absolute; top: -12px; right: 24px;
    background: var(--accent); color: white; font-size: 11px;
    padding: 5px 12px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}
.plan h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--ocean); }
.plan .tag-line { color: var(--text-mute); font-size: 13px; margin-bottom: 22px; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ocean); }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--text-mute); }
.plan ul { list-style: none; padding: 0; margin: 22px 0; }
.plan ul li { padding: 7px 0; padding-left: 26px; position: relative; font-size: 14px; color: var(--ocean); }
.plan ul li::before {
    content: '✓'; position: absolute; left: 0; top: 7px;
    color: var(--accent); font-weight: 700;
}
.plan .btn { width: 100%; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 6px; }
.faq details {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 12px; padding: 0; box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
    padding: 18px 22px; font-weight: 500; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none; outline: none; color: var(--ocean);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 22px 22px; color: var(--text-mute); font-size: 14px; line-height: 1.65; }

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(135deg, var(--accent-bg) 0%, var(--sky-bg) 100%);
    border: 1px solid var(--line);
    border-radius: 20px; padding: 56px;
    text-align: center; position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.cta-strip::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 700px 350px at 50% 0%, rgba(255,159,102,.18), transparent);
    pointer-events: none;
}
.cta-strip h2 { margin: 0 0 10px; font-size: 32px; letter-spacing: -0.02em; font-weight: 600; color: var(--ocean); }
.cta-strip p  { color: var(--text-mute); margin: 0 auto 28px; max-width: 540px; }
.cta-strip .btns { display: inline-flex; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
    padding: 56px 0 32px; border-top: 1px solid var(--line-soft);
    margin-top: 64px; background: var(--bg-soft);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin: 0 0 14px; font-weight: 600; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-mute); font-size: 14px; }
.footer-col a:hover { color: var(--ocean); }
.footer-bottom {
    border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: var(--text-mute);
}
.footer-bottom a { color: var(--text-mute); margin-left: 16px; }

/* =========================================================================
   APP / DASHBOARD STYLES
   ========================================================================= */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
@media (max-width: 800px) { .app-shell { grid-template-columns: 1fr; } }

.sidebar {
    background: var(--bg-soft); border-right: 1px solid var(--line);
    padding: 18px 0; height: 100vh; position: sticky; top: 0;
    display: flex; flex-direction: column;
}
@media (max-width: 800px) { .sidebar { height: auto; position: relative; } }
.sidebar .logo { padding: 0 22px 18px; border-bottom: 1px solid var(--line-soft); }
.sidebar nav { padding: 16px 12px; flex: 1; }
.sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; color: var(--text-mute);
    font-size: 14px; margin-bottom: 2px;
}
.sidebar nav a:hover { background: white; color: var(--ocean); }
.sidebar nav a.active { background: white; color: var(--accent); border: 1px solid var(--accent-bg); box-shadow: var(--shadow-sm); }
.sidebar nav .nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); padding: 18px 12px 8px; }
.sidebar .user {
    padding: 14px 22px; border-top: 1px solid var(--line-soft);
    display: flex; gap: 10px; align-items: center; background: white;
}
.sidebar .user .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--sky)); display: grid; place-items: center; color: white; font-weight: 700; font-size: 13px; }
.sidebar .user .person { font-size: 13px; font-weight: 600; color: var(--ocean); }
.sidebar .user .role { font-size: 11px; color: var(--text-mute); }

.app-main { padding: 28px 36px; }
@media (max-width: 800px) { .app-main { padding: 20px 16px; } }
.app-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px;
}
.app-header h1 { font-size: 24px; letter-spacing: -0.01em; margin: 0; font-weight: 600; color: var(--ocean); }
.app-header .meta { font-size: 13px; color: var(--text-mute); margin-top: 4px; }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 900px) { .metric-row { grid-template-columns: repeat(2, 1fr); } }
.metric-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 12px; padding: 20px;
    box-shadow: var(--shadow-sm);
}
.metric-card .label { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.metric-card .value { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin-top: 6px; font-family: var(--font-mono); color: var(--ocean); }
.metric-card .delta { font-size: 12px; color: var(--accent); margin-top: 4px; font-weight: 500; }
.metric-card .delta.down { color: var(--red); }

.panel-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .panel-row { grid-template-columns: 1fr; } }
.panel {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 12px; padding: 22px; margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.panel h3 { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; display: flex; justify-content: space-between; color: var(--ocean); }
.panel h3 .h3-meta { font-size: 12px; color: var(--text-mute); font-weight: 400; }

.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li {
    padding: 12px 0; border-bottom: 1px solid var(--line-soft);
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
}
.activity-list li:last-child { border-bottom: 0; }
.activity-list .pill {
    font-family: var(--font-mono); font-size: 11px; padding: 3px 8px;
    border-radius: 4px; font-weight: 500;
    border: 1px solid;
}
/* California-beach palette per agent */
.activity-list .pill.from-vikram  { color: #FF7849; border-color: #FFB07A; background: #FFF1E6; }
.activity-list .pill.from-arya    { color: #C75D2C; border-color: #FF9F66; background: #FFE9D9; }
.activity-list .pill.from-priya   { color: #B8531E; border-color: #FF8B4D; background: #FFE3D1; }
.activity-list .pill.from-dev     { color: #2A6F8F; border-color: #5FA8D3; background: #E0F0F8; }
.activity-list .pill.from-lakshmi { color: #1B4965; border-color: #1B4965; background: #DDE8F0; }
.activity-list .pill.from-riya    { color: #3F8FA8; border-color: #62B6CB; background: #E2F0F4; }
.activity-list .topic { font-size: 14px; color: var(--ocean); }
.activity-list .topic .body { color: var(--text-mute); font-size: 13px; margin-top: 2px; }
.activity-list .ts { font-size: 12px; color: var(--text-soft); font-family: var(--font-mono); }

.app-table { width: 100%; border-collapse: collapse; }
.app-table th, .app-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--ocean); }
.app-table th { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.app-table tr:last-child td { border-bottom: 0; }
.status-pill {
    display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.status-pill.active { background: var(--sky-bg); color: var(--ocean); }
.status-pill.paused { background: var(--accent-bg); color: var(--accent-3); }
.status-pill.error  { background: #FBE5E0; color: var(--red); }

.sparkline { height: 140px; width: 100%; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-mute); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: white; color: var(--ocean);
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    transition: border-color .15s, box-shadow .15s;
}
.form-group textarea { resize: vertical; min-height: 92px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent); outline: none;
    box-shadow: 0 0 0 3px rgba(255,159,102,.15);
}
