*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
--bg-dark:#0f1114;--bg-dark-card:#1a1d23;--bg-light:#fafaf9;--bg-light-alt:#f3f2ef;
--text-dark:#0f1114;--text-light:#fafaf9;--text-muted-dark:#9ca3af;--text-muted-light:#6b7280;
--accent:#51A69D;--accent-hover:#448f87;--accent-glow:rgba(81,166,157,0.15);
--border-dark:rgba(255,255,255,0.08);--border-light:rgba(0,0,0,0.08);
--font-display:'DM Serif Display',Georgia,serif;--font-body:'DM Sans',-apple-system,sans-serif;
--max-w:1200px;--radius:8px;--radius-lg:12px;
}
body{font-family:var(--font-body);font-size:17px;line-height:1.7;color:var(--text-dark);background:var(--bg-light);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
a{color:inherit;}
img{max-width:100%;height:auto;}
h1{font-family:var(--font-display);font-size:clamp(2.2rem,5vw,3.6rem);letter-spacing:-0.02em;font-weight:400;line-height:1.15;}
h2{font-family:var(--font-display);font-size:clamp(1.8rem,3.5vw,2.6rem);letter-spacing:-0.01em;font-weight:400;line-height:1.2;}
h3{font-family:var(--font-display);font-size:clamp(1.1rem,2vw,1.35rem);font-weight:400;line-height:1.3;}
.container{max-width:var(--max-w);margin:0 auto;padding:0 24px;}

/* NAV */
.nav{position:fixed;top:0;left:0;right:0;z-index:1000;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;background:rgba(15,17,20,0.95);backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(255,255,255,0.05);}
.nav-logo{display:flex;align-items:center;}
.nav-logo-img{height:36px;width:auto;}
.nav-links{display:flex;align-items:center;gap:32px;}
.nav-link{font-size:13px;font-weight:600;color:#9ca3af;letter-spacing:0.05em;transition:color 0.2s;text-decoration:none;}
.nav-link:hover{color:#fafaf9;}
.nav-right{display:flex;align-items:center;gap:24px;}
.nav-login{font-size:14px;color:#9ca3af;font-weight:500;transition:color 0.2s;text-decoration:none;}
.nav-login:hover{color:#fafaf9;}
.nav-cta{background:#51A69D;color:#fff;font-size:14px;font-weight:600;padding:10px 22px;border-radius:5px;transition:background 0.2s;text-decoration:none;}
.nav-cta:hover{background:#448f87;}

/* HERO */
.hero{background-image:linear-gradient(rgba(17,24,39,0.7),rgba(17,24,39,0.8)),url('/assets/images/hero_banner_greasebook.jpg');background-size:cover;background-position:center top;background-repeat:no-repeat;padding:120px 0 60px;color:var(--text-light);}
.hero-grid{display:grid;grid-template-columns:55% 1fr;gap:48px;align-items:center;}
.hero .eyebrow{font-size:14px;text-transform:uppercase;color:var(--accent);font-weight:600;letter-spacing:0.05em;margin-bottom:16px;}
.hero h2{color:var(--text-light);margin-bottom:16px;}
.hero p{color:var(--text-muted-dark);font-size:17px;margin-bottom:28px;max-width:600px;}
.cta-btn{display:inline-block;background:#51A69D;color:#fff;font-family:var(--font-body);font-size:16px;font-weight:600;padding:16px 36px;border-radius:6px;transition:background 0.2s,transform 0.15s;text-decoration:none;}
.cta-btn:hover{background:#448f87;transform:translateY(-1px);}
.hero .micro{font-size:14px;color:#9ca3af;margin-top:12px;}
.trust-badges{margin-top:20px;display:flex;gap:24px;align-items:center;flex-wrap:wrap;}
.trust-badge{font-size:14px;color:var(--text-muted-dark);}
.trust-badge .stars{color:#f59e0b;}

/* PHONE MOCKUPS */
.hero-mockup{position:relative;min-height:520px;display:flex;align-items:center;justify-content:center;}
.phone-frame{position:absolute;width:240px;border-radius:36px;background:#000;padding:12px;box-shadow:0 25px 60px rgba(0,0,0,0.5),0 0 0 1px rgba(255,255,255,0.08);}
.phone-frame-inner{border-radius:26px;overflow:hidden;background:#fff;position:relative;aspect-ratio:9/19.5;}
.phone-frame-inner video{width:100%;height:100%;object-fit:cover;display:block;}
.phone-notch{position:absolute;top:0;left:50%;transform:translateX(-50%);width:90px;height:28px;background:#000;border-radius:0 0 18px 18px;z-index:2;}
.phone-back{right:10%;top:0;z-index:1;transform:rotate(2deg);}
.phone-front{left:8%;top:40px;z-index:2;transform:rotate(-1deg);}

/* HOMEPAGE EMBED */
.homepage-embed{border:0;width:100%;display:block;}
.homepage-transition{height:1px;background:linear-gradient(to right,transparent,rgba(81,166,157,0.3),transparent);margin:0;}

/* BREADCRUMBS */
.breadcrumbs-section{background:var(--bg-light);padding:16px 0;border-bottom:1px solid var(--border-light);}
.breadcrumbs{font-size:14px;color:var(--text-muted-light);}
.breadcrumbs a{color:var(--text-muted-light);text-decoration:none;transition:color 0.2s;}
.breadcrumbs a:hover{color:var(--accent);}
.breadcrumbs .sep{margin:0 8px;}

/* BLOG LAYOUT */
.blog-section{padding:48px 0 64px;}
.blog-layout{display:grid;grid-template-columns:1fr 340px;gap:48px;}

/* ARTICLE */
.article-header{margin-bottom:32px;}
.article-header h1{margin-bottom:12px;}
.article-meta{font-size:14px;color:var(--text-muted-light);margin-bottom:24px;}
.featured-image{width:100%;border-radius:var(--radius);margin-bottom:32px;}
.featured-image-placeholder{width:100%;aspect-ratio:16/9;background:#e5e5e5;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:15px;margin-bottom:32px;}
.article-body p{font-size:17px;line-height:1.7;color:var(--text-dark);margin-bottom:24px;}
.article-body h2{margin-top:48px;margin-bottom:16px;}
.article-body h3{margin-top:32px;margin-bottom:12px;}
.article-body ul,.article-body ol{padding-left:24px;margin-bottom:24px;}
.article-body li{margin-bottom:8px;}
.article-body a{color:var(--accent);text-decoration:none;}
.article-body a:hover{text-decoration:underline;}
.article-body strong{font-weight:600;}
.article-body table{width:100%;border-collapse:collapse;margin-bottom:24px;}
.article-body th{background:var(--bg-light-alt);text-align:left;}
.article-body th,.article-body td{padding:12px 16px;border:1px solid var(--border-light);}

/* IN-CONTENT CTA */
.in-content-cta{background:rgba(81,166,157,0.08);border-left:3px solid var(--accent);border-radius:0 8px 8px 0;padding:24px;margin:32px 0;}
.in-content-cta strong{display:block;margin-bottom:8px;font-size:17px;}
.in-content-cta p{margin-bottom:12px;font-size:15px;color:var(--text-muted-light);}
.in-content-cta a{color:var(--accent);font-weight:600;text-decoration:none;font-size:15px;}
.in-content-cta a:hover{text-decoration:underline;}

/* SIDEBAR */
.sidebar{position:sticky;top:100px;align-self:start;display:flex;flex-direction:column;gap:24px;}
.sidebar-card{border-radius:var(--radius);padding:24px;overflow:hidden;}
.sidebar-card.dark{background:var(--bg-dark-card);color:var(--text-light);padding:28px;}
.sidebar-card.dark h3{font-size:1.2rem;margin-bottom:12px;}
.sidebar-card.dark p{color:var(--text-muted-dark);font-size:14px;margin-bottom:16px;}
.sidebar-card.light{background:var(--bg-light);border:1px solid var(--border-light);}
.sidebar-cta-btn{display:block;text-align:center;background:var(--accent);color:#fff;font-family:var(--font-body);font-size:14px;font-weight:600;padding:12px 24px;border-radius:6px;text-decoration:none;transition:background 0.2s;}
.sidebar-cta-btn:hover{background:var(--accent-hover);}
.stat-item{margin-bottom:12px;font-size:15px;}
.stat-item:last-child{margin-bottom:0;}
.stat-number{font-weight:700;color:var(--accent);}
.testimonial-quote{font-style:italic;font-size:15px;line-height:1.6;margin-bottom:12px;color:var(--text-dark);}
.testimonial-attr{font-size:14px;color:var(--text-muted-light);}
.sidebar-label{font-size:12px;text-transform:uppercase;color:var(--text-muted-light);font-weight:600;letter-spacing:0.05em;margin-bottom:12px;}
.logo-grid{display:flex;flex-wrap:wrap;gap:16px;align-items:center;}
.logo-grid img{height:28px;opacity:0.5;filter:grayscale(100%);}
.popular-label{font-weight:600;font-size:15px;margin-bottom:12px;}
.popular-list{list-style:none;padding:0;}
.popular-list li{margin-bottom:10px;}
.popular-list a{font-size:14px;color:var(--accent);text-decoration:none;}
.popular-list a:hover{text-decoration:underline;}

/* MOBILE MODULES */
.mobile-module{display:none;margin:32px 0;}
.mobile-module .sidebar-card{margin-bottom:0;}

/* AUTHOR BIO */
.author-bio{background:var(--bg-light-alt);padding:32px 0;}
.author-inner{display:flex;gap:24px;align-items:center;max-width:var(--max-w);margin:0 auto;padding:0 24px;}
.author-avatar{width:64px;height:64px;border-radius:50%;background:#d1d5db;display:flex;align-items:center;justify-content:center;font-weight:700;color:#6b7280;font-size:18px;flex-shrink:0;}
.author-name{font-weight:700;font-size:17px;margin-bottom:4px;}
.author-desc{font-size:14px;color:var(--text-muted-light);margin-bottom:4px;}
.author-link{font-size:14px;color:var(--accent);text-decoration:none;}
.author-link:hover{text-decoration:underline;}

/* RELATED */
.related-section{padding:64px 0;background:var(--bg-light);}
.related-section h2{margin-bottom:32px;}
.related-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;}
.related-card{background:#fff;border:1px solid var(--border-light);border-radius:var(--radius);overflow:hidden;}
.related-card-img{aspect-ratio:16/9;background:#e5e5e5;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:14px;}
.related-card-body{padding:20px;}
.related-card-cat{font-size:12px;text-transform:uppercase;color:var(--accent);font-weight:600;margin-bottom:8px;}
.related-card-title{font-family:var(--font-display);font-size:1.1rem;font-weight:400;margin-bottom:8px;line-height:1.3;}
.related-card-meta{font-size:13px;color:var(--text-muted-light);}

/* CTA BANNER */
.cta-banner{background-image:linear-gradient(rgba(17,24,39,0.75),rgba(17,24,39,0.85)),url('/assets/images/cta_banner_pumpjack.jpg');background-size:cover;background-position:center center;background-repeat:no-repeat;padding:80px 0;color:var(--text-light);}
.cta-banner-grid{display:grid;grid-template-columns:55% 1fr;gap:48px;align-items:center;}
.cta-banner h2{color:var(--text-light);margin-bottom:16px;}
.cta-banner p{color:#9ca3af;margin-bottom:28px;font-size:17px;}
.cta-banner .cta-btn-lg{display:inline-block;background:var(--accent);color:#fff;font-family:var(--font-body);font-size:18px;font-weight:600;padding:18px 44px;border-radius:6px;text-decoration:none;transition:background 0.2s,transform 0.15s;}
.cta-banner .cta-btn-lg:hover{background:var(--accent-hover);transform:translateY(-1px);}
.cta-banner .micro{font-size:14px;color:#9ca3af;margin-top:12px;}
.cta-banner .eyebrow{font-size:14px;text-transform:uppercase;color:var(--accent);font-weight:600;letter-spacing:0.05em;margin-bottom:16px;}
.cta-banner .qualifier{font-size:13px;color:var(--accent);font-weight:600;margin-bottom:20px;letter-spacing:0.02em;}
.cta-banner-mockup{position:relative;min-height:480px;display:flex;align-items:center;justify-content:center;}

/* FOOTER */
.footer{background:var(--bg-dark);border-top:1px solid var(--border-dark);padding:48px 0;color:var(--text-muted-dark);}
.footer-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
.footer-logo{font-family:var(--font-display);font-size:20px;color:#fff;}
.footer-links{display:flex;gap:24px;flex-wrap:wrap;}
.footer-links a{font-size:14px;color:#9ca3af;text-decoration:none;transition:color 0.2s;}
.footer-links a:hover{color:#fafaf9;}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:24px;flex-wrap:wrap;gap:8px;}
.footer-bottom span,.footer-bottom a{font-size:13px;color:#6b7280;}
.footer-bottom a{text-decoration:none;}
.footer-bottom a:hover{color:#9ca3af;}

/* RESPONSIVE */
@media(max-width:900px){
.blog-layout{grid-template-columns:1fr;}
.sidebar{position:static;display:none;}
.mobile-module{display:block;}
.hero-grid{grid-template-columns:1fr;}
.hero-mockup{display:none;}
.hero{padding:80px 0 24px;}
.cta-banner-grid{grid-template-columns:1fr;}
.cta-banner-mockup{display:none;}
.cta-banner{text-align:center;}
.hero h2{font-size:1.4rem;}
.hero p{font-size:15px;margin-bottom:16px;}
.hero .cta-btn{font-size:14px;padding:12px 24px;}
.hero .micro{font-size:13px;margin-top:8px;}
.hero .trust-badges{margin-top:12px;gap:16px;}
.hero .trust-badge{font-size:12px;}
}
@media(min-width:901px){
.mobile-module{display:none;}
}
@media(max-width:767px){
.nav-links{display:none;}
.related-grid{grid-template-columns:1fr;}
}
@media(max-width:480px){
.nav-login{display:none;}
.nav-cta{font-size:13px;padding:8px 16px;}
}
