/*
Theme Name: SNTrends
Theme URI: https://sntrends.com
Author: Jocelyn
Author URI: https://sntrends.com
Description: A modern, clean market intelligence theme for ServiceNow ecosystem. Built for SNTrends.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sntrends
Tags: one-column, custom-colors, wide-blocks, business, portfolio
*/

:root {
    --primary: #0891b2;
    /* Cyan 600 */
    --primary-hover: #0e7490;
    /* Cyan 700 */
    --secondary: #64748b;
    /* Slate 500 */
    --bg-page: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */
    --border: #e2e8f0;
    /* Slate 200 */
    --accent-light: #e0f2fe;
    /* Sky 100 */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.center {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-page);
    border-color: #cbd5e1;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--accent-light);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, var(--text-main), #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note .text-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero Visual - Mini Dashboard */
.hero-visual {
    position: relative;
    padding: 2rem;
}

.card-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.dash-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 380px;
}

.card-a {
    transform: rotate(-2deg);
    margin-left: 20px;
    z-index: 2;
}

.card-b {
    transform: rotate(2deg);
    margin-left: -10px;
    margin-top: -10px;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.badge {
    background: var(--accent-light);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.bar-chart-placeholder {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bar {
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    opacity: 0.8;
}

.map-placeholder {
    height: 100px;
    background: #f1f5f9;
    border-radius: 8px;
    position: relative;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
}

.preview-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Trust Strip */
.trust-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    background: #fff;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Problem Section */
.problem {
    padding: 5rem 0;
}

.problem .section-title {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.problem-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Features */
.features {
    padding: 5rem 0;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: var(--border);
    border-radius: var(--radius);
    background: var(--bg-page);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-card.premium .icon-box {
    background: #fff7ed;
    color: #ea580c;
}

/* Snapshots */
.snapshots {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: white;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.snapshot-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-head h3 {
    font-size: 1.1rem;
}

.filter-mock {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.lbl {
    width: 70px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

.pro-bg {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
}

.pro-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

/* Pricing */
.pricing {
    padding: 5rem 0;
    background: #fff;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.pricing-toggle span {
    cursor: pointer;
    color: var(--text-muted);
}

.pricing-toggle span.active {
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.price-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    position: relative;
    transform: scale(1.05);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 2rem;
    color: var(--text-main);
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    text-align: left;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.gdpr-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.disclaimer {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Articles */
.articles {
    padding: 5rem 0;
}

.articles-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.featured-article {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-image-placeholder {
    height: 240px;
    background: #e2e8f0;
}

.article-content {
    padding: 2rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feed-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.feed-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feed-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feed-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ai-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
}

/* About (Founder) */
.about {
    padding: 5rem 0;
    background: white;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.about-text h3 {
    margin-bottom: 0.5rem;
}

.about-text p {
    color: var(--text-muted);
    font-style: italic;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
    background: #f1f5f9;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.email-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 2rem auto 1rem;
}

.email-form input,
.email-form select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
}

.email-form input {
    flex: 2;
}

.email-form select {
    flex: 1;
}

.spam-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-container,
    .pricing-grid,
    .articles-layout,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        padding-left: 0;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .email-form {
        flex-direction: column;
    }
}