/*
* OctoEdit — Modular Text Editor
* Modern theme for GetSimple CMS
* Built on top of skeleton.css (grid) with a custom dark design system.
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--bg:            #0a0e16;   /* page background           */
	--bg-2:          #0e1420;   /* raised surfaces           */
	--surface:       #121a29;   /* cards                     */
	--surface-2:     #182335;   /* hovered cards             */
	--border:        #1e2c42;   /* hairlines                 */
	--border-2:      #2a3c58;
	--text:          #eef3fa;   /* primary text              */
	--text-dim:      #c3cfe1;   /* secondary text (raised contrast) */
	--text-mute:     #9aabc3;   /* muted text  (raised contrast)    */

	--accent:        #22d3ee;   /* cyan — octopus glow       */
	--accent-2:      #38bdf8;   /* sky                       */
	--accent-deep:   #0891b2;
	--accent-soft:   rgba(34, 211, 238, .12);

	/* plugin tile palette (from the mascot) */
	--plug-yellow:   #f2c94c;
	--plug-green:    #27ae60;
	--plug-orange:   #f2994a;
	--plug-blue:     #2f80ed;
	--plug-purple:   #9b51e0;

	--radius:        14px;
	--radius-sm:     10px;
	--radius-lg:     22px;

	--shadow:        0 10px 40px -12px rgba(0,0,0,.6);
	--shadow-glow:   0 0 60px -10px rgba(34,211,238,.45);

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

	--maxw:          1120px;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

/* Root font size = the scale for all rem-based type.
   Mobile keeps 16px (looks great there); desktop scales up so text is
   comfortable on wide screens. */
html { scroll-behavior: smooth; font-size: 17px; }

@media (min-width: 992px)  { html { font-size: 18px; } }
@media (min-width: 1500px) { html { font-size: 19px; } }

body {
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.7;
	font-weight: 400;
	color: var(--text);
	background-color: var(--bg);
	background-image:
		radial-gradient(900px 500px at 85% -10%, rgba(34,211,238,.10), transparent 60%),
		radial-gradient(700px 500px at 10% 0%, rgba(155,81,224,.10), transparent 55%);
	background-attachment: fixed;
	padding-bottom: 0;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: #fff; }

/* ==========================================================================
   Layout: override skeleton container to a wider, modern frame
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--maxw);
	padding-left: 24px;
	padding-right: 24px;
}

#container {
	max-width: none;          /* override old 800px theme cap */
	padding-top: 0;
	margin-bottom: 0;
	width: 100%;
}

.row { width: 100%; }

/* The page body sits inside a readable centered column */
main.site-main {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 56px 24px 80px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	color: var(--text);
	font-weight: 700;
	letter-spacing: -.02em;
	margin-top: 0;
	margin-bottom: 1.4rem;
	line-height: 1.2;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.0rem; margin-top: 2.4rem; }
h3 { font-size: 1.55rem; margin-top: 2rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

p { margin-top: 0; margin-bottom: 1.2rem; color: var(--text-dim); }
strong, b { color: var(--text); }

a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: none;
	transition: color .15s ease;
}
a:hover { color: var(--accent-2); border-bottom: none; }

ul, ol { color: var(--text-dim); padding-left: 1.2rem; }
li { margin-bottom: .5rem; }

blockquote {
	margin: 0 0 1.6rem;
	padding: .6rem 0 .6rem 1.4rem;
	border-left: 3px solid var(--accent);
	background: linear-gradient(90deg, var(--accent-soft), transparent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote, blockquote p {
	color: var(--text-dim);
	font-style: italic;
	font-size: 1.05rem;
}
blockquote cite { display:block; font-style: normal; font-size:.85rem; color: var(--text-mute); }

code, kbd, samp {
	font-family: var(--mono);
	font-size: .88em;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: .12em .4em;
	color: var(--accent-2);
}
pre {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 20px;
	overflow: auto;
	box-shadow: var(--shadow);
}
pre code { background: none; border: none; padding: 0; color: var(--text); }

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 2.4rem 0;
}

img, img.scale-with-grid {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text); }
td { color: var(--text-dim); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10,14,22,.72);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--border);
}
.site-nav__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: none;
	flex-shrink: 0;
}
.brand:hover { border-bottom: none; }
.brand img {
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 9px;
	box-shadow: 0 0 22px -4px rgba(34,211,238,.5);
}
.brand__name {
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: -.02em;
	color: var(--text);
	line-height: 1;
}
.brand__name span { color: var(--accent); }
.brand__sub {
	display: block;
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--text-mute);
	margin-top: 3px;
}

.site-nav nav { margin: 0; flex: 1; }
.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: flex-end;
}
.site-nav li { display: inline; margin: 0; text-transform: none; line-height: 1; }
.site-nav nav a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 9px;
	font-size: .92rem;
	font-weight: 500;
	color: var(--text-dim);
	border-bottom: none;
	transition: background .15s ease, color .15s ease;
}
.site-nav nav a:hover { color: var(--text); background: var(--surface); border-bottom: none; }
.site-nav li.current a { color: var(--text); background: var(--accent-soft); }

.nav-cta {
	flex-shrink: 0;
}
.nav-cta a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 10px;
	font-weight: 600;
	font-size: .9rem;
	color: #04121a;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-bottom: none;
	box-shadow: 0 6px 20px -6px rgba(34,211,238,.6);
	transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta a:hover {
	color: #04121a;
	border-bottom: none;
	transform: translateY(-1px);
	box-shadow: 0 10px 26px -6px rgba(34,211,238,.75);
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 300px at 78% 30%, rgba(34,211,238,.18), transparent 60%),
		radial-gradient(500px 320px at 20% 80%, rgba(155,81,224,.16), transparent 60%);
	pointer-events: none;
}
.hero__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 84px 24px 96px;
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 48px;
	align-items: center;
	position: relative;
}
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid var(--border-2);
	border-radius: 999px;
	background: var(--surface);
	font-size: .8rem;
	font-weight: 500;
	color: var(--text-dim);
	margin-bottom: 22px;
}
.hero__badge .dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--plug-green);
	box-shadow: 0 0 10px var(--plug-green);
}
.hero h1 {
	font-size: clamp(2.6rem, 5vw, 4.1rem);
	line-height: 1.05;
	margin-bottom: 20px;
	letter-spacing: -.03em;
}
.hero h1 .grad {
	background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--plug-purple));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hero__lead {
	font-size: 1.2rem;
	color: var(--text-dim);
	max-width: 36ch;
	margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 24px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 1rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
	border-bottom: none;
}
.btn:hover { border-bottom: none; transform: translateY(-2px); }
.btn--primary {
	color: #04121a;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 10px 30px -8px rgba(34,211,238,.6);
}
.btn--primary:hover { color: #04121a; box-shadow: 0 16px 38px -8px rgba(34,211,238,.8); }
.btn--ghost {
	color: var(--text);
	background: var(--surface);
	border-color: var(--border-2);
}
.btn--ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--accent); }

/* hero visual */
.hero__art {
	position: relative;
	display: flex;
	justify-content: center;
}
.hero__art img {
	width: 300px;
	max-width: 80%;
	border: none;
	border-radius: 28px;
	filter: drop-shadow(0 0 60px rgba(34,211,238,.45));
	animation: float 6s ease-in-out infinite;
}
@keyframes float {
	0%,100% { transform: translateY(-6px); }
	50%     { transform: translateY(10px); }
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
	border-bottom: 1px solid var(--border);
	background: var(--bg-2);
}
.stats__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 28px 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 24px 18px;
	text-align: center;
}
.stats .num {
	font-family: var(--mono);
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
}
.stats .label {
	font-size: .82rem;
	color: var(--text-mute);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-top: 8px;
}

/* ==========================================================================
   Feature cards (usable from page content via .feature-grid / .card)
   ========================================================================== */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin: 2rem 0 2.5rem;
	padding: 0;
	list-style: none;
}
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px 24px;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
	transform: translateY(-4px);
	border-color: var(--border-2);
	box-shadow: var(--shadow);
}
.card .ico {
	width: 42px; height: 42px;
	border-radius: 11px;
	display: grid; place-items: center;
	font-size: 1.3rem;
	margin-bottom: 16px;
	background: var(--accent-soft);
	border: 1px solid var(--border-2);
}
.card h3, .card h4 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; font-size: .95rem; color: var(--text-dim); }

/* accent variants for plugin tiles */
.card--yellow .ico { background: rgba(242,201,76,.14);  border-color: rgba(242,201,76,.4); }
.card--green  .ico { background: rgba(39,174,96,.14);   border-color: rgba(39,174,96,.4); }
.card--orange .ico { background: rgba(242,153,74,.14);  border-color: rgba(242,153,74,.4); }
.card--blue   .ico { background: rgba(47,128,237,.14);  border-color: rgba(47,128,237,.4); }
.card--purple .ico { background: rgba(155,81,224,.14);  border-color: rgba(155,81,224,.4); }

/* section heading helper */
.section-eyebrow {
	display: block;
	font-family: var(--mono);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 10px;
}

/* ==========================================================================
   Marketing-page helpers (Download / Plugins / Home sections)
   ========================================================================== */
.page-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--text-dim); }
.page-head .lead { margin-left: auto; margin-right: auto; max-width: 56ch; }
.page-head .hero__actions { justify-content: center; }
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }

/* a pill tag, e.g. plugin count / "Free" */
.pill {
	display: inline-block;
	font-family: var(--mono);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .04em;
	padding: 3px 10px;
	border-radius: 999px;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid var(--border-2);
}

/* button sitting at the foot of a card */
.card .btn { margin-top: 18px; width: 100%; justify-content: center; }
.card .pill { margin-bottom: 14px; }

/* small full-width buttons size down a touch */
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* requirement / spec list */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
	display: flex;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	color: var(--text-dim);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list b { color: var(--text); min-width: 150px; display: inline-block; }

/* call-to-action band */
.cta-band {
	margin-top: 4rem;
	text-align: center;
	background:
		radial-gradient(500px 240px at 50% 0%, rgba(34,211,238,.14), transparent 65%),
		var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 56px 32px;
	box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 50ch; margin: 0 auto 26px; }
.cta-band .hero__actions { justify-content: center; }

/* ==========================================================================
   Page content shell
   ========================================================================== */
.content-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 44px 48px;
	box-shadow: var(--shadow);
}

.page-title { margin-bottom: 1.6rem; }

aside {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
}
aside img { margin: .5rem 0; }

/* ==========================================================================
   News Manager support (kept from original, restyled)
   ========================================================================== */
.custom_display { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2rem 0; }
.my_recent { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.my_recent img { width: 100%; border: none; border-radius: 0; display: block; }
.my_recent a { border-bottom: none; }
.my_recent a:hover img { box-shadow: none; transform: scale(1.04); transition: transform .3s ease; }
.my_recent h4 {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
	color: #fff; padding: 14px 16px;
	background: linear-gradient(transparent, rgba(0,0,0,.85));
	font-size: 1rem;
}

.nm_post { position: relative; margin: 2.4rem 0; }
.nm_post_image { border-radius: var(--radius); overflow: hidden; }
.nm_post_image img { border: none; }
#all-posts section > h1 { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--bg-2);
	margin-top: 0;
}
.site-footer__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 56px 24px 28px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}
.site-footer .brand { margin-bottom: 16px; }
.site-footer__about p { color: var(--text-mute); font-size: .92rem; max-width: 38ch; }
.site-footer h6 {
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .78rem;
	color: var(--text-mute);
	margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__links a { color: var(--text-dim); font-size: .92rem; border-bottom: none; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__bottom {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 20px 24px 36px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.site-footer__bottom small { color: var(--text-mute); font-size: .85rem; }
.site-footer__bottom a { color: var(--text-dim); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
	.hero__art { order: -1; }
	.hero__lead { margin-left: auto; margin-right: auto; }
	.hero__actions { justify-content: center; }
	.feature-grid, .custom_display { grid-template-columns: 1fr 1fr; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	.site-nav__inner { flex-wrap: wrap; gap: 12px; }
	.site-nav nav { order: 3; flex-basis: 100%; }
	.site-nav ul { justify-content: center; flex-wrap: wrap; }
	.nav-cta { margin-left: auto; }
	.feature-grid, .custom_display, .site-footer__inner { grid-template-columns: 1fr; }
	.content-card { padding: 28px 22px; }
	main.site-main { padding: 36px 18px 60px; }
	.hero__inner { padding: 56px 22px 64px; }
}
