/* Graphori website — white and grays; color only from the four brand colors (the mascots) */
:root {
  --ink: #111111; --text: #2b2f36; --muted: #6b7178; --line: #e6e7ea; --soft: #f3f4f6;
  --paper: #fafaf8; --card: #ffffff; --night: #101215;
  --yellow: #eeb143; --blue: #4889df; --pink: #e13c88; --green: #54c054;
  --radius: 18px; --shadow: 0 1px 2px rgba(17,17,17,.04), 0 8px 28px rgba(17,17,17,.06);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f2f4; --text: #d5d8dd; --muted: #9aa0a8; --line: #262a30; --soft: #171a1f;
    --paper: #0f1114; --card: #15181c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f1f2f4; --text: #d5d8dd; --muted: #9aa0a8; --line: #262a30; --soft: #171a1f;
  --paper: #0f1114; --card: #15181c; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .display { font-family: "Urbanist", "Century Gothic", system-ui, sans-serif; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; font-weight: 700; margin: 0 0 .6rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin: .2rem 0 .35rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .8rem; }

/* bilingual text: one language visible at a time */
html[data-lang="en"] [lang="pt-BR"], html[data-lang="pt-BR"] [lang="en"] { display: none !important; }

/* logos: light/dark pairs */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

/* header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.nav .brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-size: .95rem; padding: .45rem .75rem; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.tools { display: flex; gap: .35rem; align-items: center; margin-left: .4rem; }
.chip-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px;
  font: 600 .8rem/1 "Inter", system-ui, sans-serif; padding: .5rem .7rem; cursor: pointer; }
.chip-btn:hover { border-color: var(--muted); }
.menu-btn { display: none; }
/* social icons (Instagram, GitHub) */
.icon-link, .nav-links a.icon-link { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: var(--text); }
.icon-link svg { width: 18px; height: 18px; }
.icon-link:hover { background: var(--soft); color: var(--ink); }
/* "Tools" menu: a dropdown on wide screens, an accordion inside the mobile menu */
.nav-links details.nav-drop { position: relative; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.nav-drop > summary { list-style: none; display: flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 400; color: var(--text);
  font-size: .95rem; padding: .45rem .75rem; border-radius: 999px; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: ""; width: .42em; height: .42em; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-.15em) rotate(45deg); transition: transform .2s ease; }
.nav-drop[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.nav-drop > summary:hover, .nav-drop[open] > summary, .nav-drop.current > summary { background: var(--soft); color: var(--ink); }
.drop-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); min-width: 190px; display: grid; gap: .15rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; }
.nav-links .drop-panel a { display: block; padding: .55rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 16px 1rem; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-block; margin-left: auto; }
  .tools { margin-left: 0; padding: .4rem .75rem 0; }
  .nav-drop > summary { justify-content: space-between; }
  .drop-panel { position: static; transform: none; width: auto; box-shadow: none; border: 0; background: transparent; padding: .2rem 0 .3rem .6rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; border-radius: 999px;
  padding: .85rem 1.3rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* hero */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hero-art .symbol { position: absolute; width: 46%; left: 27%; top: 6%; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.hero-art .symbol.dragging { cursor: grabbing; }   /* sways back and forth; click = one full turn, drag = turn it by hand (site.js) */
img[src*="ghost_"] { transform-origin: 50% 80%; }   /* ghosts wiggle from the bottom when hovered (site.js) */
.hero-art .g { position: absolute; width: 26%; animation: float 3s ease-in-out infinite; }   /* same size for every ghost */
.hero-art .g1 { left: 2%; top: 44%; } .hero-art .g2 { right: 2%; top: 42%; animation-delay: .5s; animation-duration: 3.4s; }
.hero-art .g3 { left: 18%; top: 70%; animation-delay: .9s; } .hero-art .g4 { right: 14%; top: 68%; animation-delay: 1.3s; animation-duration: 2.7s; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 320px; } }

/* dotted motif (echoes the dotted "Stat") */
.dots { background-image: radial-gradient(color-mix(in srgb, var(--muted) 35%, transparent) 1.6px, transparent 1.8px); background-size: 22px 22px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 30%, transparent) 1.5px, transparent 1.7px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%); }

/* sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 46em; margin-bottom: 2.2rem; }
.alt { background: var(--soft); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 1.1rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card .icon { width: 58px; height: 58px; margin-bottom: .6rem; }
.card p { color: var(--muted); margin: 0; }
.accent-yellow { border-top: 4px solid var(--yellow); } .accent-blue { border-top: 4px solid var(--blue); }
.accent-pink { border-top: 4px solid var(--pink); } .accent-green { border-top: 4px solid var(--green); }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.fields { display: flex; flex-wrap: wrap; gap: .5rem; }
.fields > span { padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 500; cursor: default;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.fields > span::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .5rem;
  background: var(--c, var(--blue)); transition: transform .25s ease; }
.fields > span:hover { transform: translateY(-3px) rotate(-1.5deg); border-color: var(--c, var(--blue)); box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--c, var(--blue)) 9%, var(--card)); }
.fields > span:nth-child(even):hover { transform: translateY(-3px) rotate(1.5deg); }
.fields > span:hover::before { transform: scale(1.6); }

/* app band / dark feature block */
.band { background: var(--night); color: #d5d8dd; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.band h2, .band h3 { color: #f1f2f4; }
.band .muted { color: #9aa0a8; }
.band .btn { background: #f1f2f4; color: #101215; border-color: #f1f2f4; }
.band .btn.ghost { background: transparent; color: #f1f2f4; border-color: #3a3f47; }
.band img.stat-logo { width: min(520px, 100%); margin-bottom: 1.4rem; }
.band::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; opacity: .25;
  background-image: radial-gradient(#9aa0a8 1.6px, transparent 1.8px); background-size: 18px 18px; border-radius: 50%; }

/* GraphoriDraw feature card (home) */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  margin-top: 1.2rem; border-radius: 28px; padding: clamp(1.6rem, 4.5vw, 3.2rem); }
.feature img.draw-logo { width: min(440px, 100%); margin-bottom: 1.4rem; }
.feature .checks { margin: 1.2rem 0 0; }
.draw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 1rem; border-radius: 22px; }
.draw-grid img { width: 100%; aspect-ratio: 1; padding: 12%; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); transition: transform .2s ease; }
.draw-grid img:hover { transform: translateY(-3px) rotate(-2deg); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* wallpapers (home): desktop thumbnails in a row, phone thumbnails below */
.walls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.walls.phone { grid-template-columns: repeat(2, minmax(0, 190px)); margin-top: 1.1rem; }
.wall { display: grid; gap: .6rem; text-decoration: none; padding: .6rem .6rem .8rem; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease; }
.wall:hover { transform: translateY(-3px); }
.wall img { width: 100%; border-radius: 12px; background: var(--night); aspect-ratio: 16 / 9; object-fit: cover; }
.walls.phone .wall img { aspect-ratio: 9 / 20; }
.wall > span { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: 0 .3rem; flex-wrap: wrap; }
.wall b { color: var(--ink); font-weight: 600; }
.wall small { color: var(--muted); font-size: .8rem; }
.wall small::after { content: " ↓"; }
@media (max-width: 820px) { .walls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .walls { grid-template-columns: 1fr; } .walls.phone { grid-template-columns: 1fr 1fr; } }

/* steps / timeline */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 2.6rem; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 1.1rem; left: 1.5rem;
  font: 700 .85rem/1 "Inter", sans-serif; color: var(--paper); background: var(--ink); width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; }
.roadmap { display: grid; gap: .8rem; }
.roadmap .item { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.roadmap .when { font-weight: 700; color: var(--ink); font-family: "Urbanist", "Century Gothic", sans-serif; }
@media (max-width: 620px) { .roadmap .item { grid-template-columns: 1fr; gap: .2rem; } }

/* app mock (illustration) */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.mock-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--line); display: block; }
.mock-body { display: grid; grid-template-columns: .9fr 1.1fr; }
.mock-grid { border-right: 1px solid var(--line); font: 12px/1 ui-monospace, Consolas, monospace; }
.mock-grid div { display: grid; grid-template-columns: 2.2rem 1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.mock-grid span { padding: .45rem .5rem; border-right: 1px solid var(--line); color: var(--muted); }
.mock-grid div:first-child span { font-weight: 700; color: var(--ink); background: var(--soft); }
.mock svg { width: 100%; height: auto; display: block; }
@media (max-width: 620px) { .mock-body { grid-template-columns: 1fr; } .mock-grid { border-right: 0; border-bottom: 1px solid var(--line); } }

/* lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c, var(--green)); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
details + details { margin-top: .7rem; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: .7rem 0 0; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; justify-content: space-between; }
.footer-grid img { height: 26px; width: auto; margin-bottom: .6rem; }
.footer-links { display: grid; gap: .3rem; }
.footer-links a { text-decoration: none; } .footer-links a:hover { color: var(--ink); }
.footer-links .social { display: flex; gap: .2rem; margin-left: -.5rem; }
.not-found { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.not-found img.ghost-404 { width: 120px; margin: 0 auto 1.2rem; animation: float 3s ease-in-out infinite; }
.footer-ghosts { display: flex; gap: .4rem; }
.footer-ghosts img { width: 28px; animation: float 2.6s ease-in-out infinite; }
.footer-ghosts img:nth-child(2) { animation-delay: .3s; } .footer-ghosts img:nth-child(3) { animation-delay: .6s; } .footer-ghosts img:nth-child(4) { animation-delay: .9s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
