/* DocBox marketing site — static and dependency-free. */

:root {
  --rust: #ad3f0c;
  --rust-dark: #762905;
  --orange: #e96b1c;
  --orange-light: #f28a36;
  --orange-pale: #fff0e5;
  --ink: #281d18;
  --ink-soft: #66564f;
  --line: #eadcd3;
  --bg: #fffdfa;
  --bg-alt: #fff7f1;
  --radius: 16px;
  --cut-radius: 11px;
  --hexagon: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --shadow: 0 14px 34px rgba(78, 37, 16, 0.09);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { margin: 0 auto; max-width: var(--maxw); padding: 0 24px; }

/* Header */
.site-header {
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container { align-items: center; display: flex; gap: 18px; height: 68px; }

.brand { align-items: center; color: var(--rust-dark); display: flex; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { filter: contrast(1.06) saturate(1.08) drop-shadow(0 2px 3px rgba(118,41,5,.14)); height: 34px; width: auto; }

.menu-toggle { align-items: center; background: transparent; border: 0; border-radius: 0 var(--cut-radius) 0 var(--cut-radius); color: var(--rust-dark); cursor: pointer; display: none; flex: 0 0 auto; height: 38px; justify-content: center; width: 38px; }
.menu-toggle:hover { background: var(--orange-pale); }
.menu-toggle:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 2px; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { background: currentColor; border-radius: 2px; content: ""; display: block; height: 2px; position: absolute; width: 20px; }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

.main-nav { display: flex; flex: 1 1 auto; gap: 16px; justify-content: space-between; margin-left: auto; }
.main-nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: var(--rust); text-decoration: none; }
.lang-switch { align-items: center; border: 1px solid var(--line); border-radius: 0 var(--cut-radius) 0 var(--cut-radius); display: flex; font-size: 0.85rem; font-weight: 600; gap: 6px; padding: 4px 6px; }
.lang-switch a, .lang-switch span { border-radius: 0 7px 0 7px; color: var(--ink-soft); padding: 2px 8px; }
.lang-switch span.active { background: var(--rust); color: #fff; }
.lang-switch a:hover { color: var(--rust); text-decoration: none; }

.btn-login { background: var(--rust-dark); border-radius: 0 var(--cut-radius) 0 var(--cut-radius); color: #fff; flex: 0 0 auto; font-size: 0.9rem; font-weight: 600; padding: 8px 18px; white-space: nowrap; }
.btn-login:hover { background: var(--orange); color: #fff; text-decoration: none; }

.btn { border-radius: 0 var(--cut-radius) 0 var(--cut-radius); display: inline-block; font-size: 1rem; font-weight: 700; padding: 12px 25px; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--rust) 0%, var(--orange) 100%); box-shadow: 0 7px 18px rgba(173, 63, 12, 0.29); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(173, 63, 12, 0.4); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.62); color: #fff; }
.btn-ghost:hover { color: #fff; }
.btn-outline { background: #fff; border: 1.5px solid var(--rust); color: var(--rust); }
.site-header .btn { flex: 0 0 auto; padding: 10px 20px; white-space: nowrap; }

.mobile-nav { background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(78, 37, 16, 0.12); display: none; flex-direction: column; left: 0; padding: 10px 24px 16px; position: absolute; right: 0; top: 100%; }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { border-radius: 0 var(--cut-radius) 0 var(--cut-radius); color: var(--ink); font-weight: 700; padding: 11px 12px; }
.mobile-nav a:hover { background: var(--orange-pale); color: var(--rust-dark); text-decoration: none; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 510px at 93% -12%, rgba(255, 193, 137, 0.3), transparent 64%),
    radial-gradient(720px 420px at -4% 112%, rgba(242, 138, 54, 0.25), transparent 62%),
    linear-gradient(150deg, #5c1d04 0%, var(--rust-dark) 35%, var(--rust) 75%, var(--orange) 100%);
  color: #fff;
  overflow: hidden;
  padding: 92px 0 104px;
  position: relative;
}

.hero::before {
  background: rgba(255, 193, 137, 0.13);
  clip-path: var(--hexagon);
  content: "";
  height: 38rem;
  position: absolute;
  right: -6.5rem;
  top: -8rem;
  width: 38rem;
}
.hero::after {
  background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,1 92.4,25.5 92.4,74.5 50,99 7.6,74.5 7.6,25.5' fill='none' stroke='white' stroke-opacity='.28' stroke-width='.7'/%3E%3C/svg%3E");
  content: "";
  height: 38rem;
  position: absolute;
  right: -6.5rem;
  top: -8rem;
  width: 38rem;
}
.hero .container { align-items: center; display: grid; gap: 52px; grid-template-columns: 1.2fr 0.8fr; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.35rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,0.9); font-size: 1.16rem; margin-bottom: 31px; max-width: 35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-art { display: flex; isolation: isolate; justify-content: center; position: relative; }
.hero-art::before,
.hero-art::after { content: ""; height: clamp(19.55rem, 36.8vw, 25.3rem); left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: clamp(19.55rem, 36.8vw, 25.3rem); }
.hero-art::before { background: rgba(255,255,255,.075); clip-path: var(--hexagon); }
.hero-art::after { background: center/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,1.2 92.3,25.6 92.3,74.4 50,98.8 7.7,74.4 7.7,25.6' fill='none' stroke='white' stroke-opacity='.62' stroke-width='1.1'/%3E%3C/svg%3E"); }
.hero-art img { filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.32)); max-width: 310px; position: relative; width: min(100%, 310px); z-index: 1; }

/* Facts strip */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .container { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); padding-bottom: 28px; padding-top: 28px; text-align: center; }
.stat b { color: var(--rust); display: block; font-size: 1.35rem; }
.stat small { color: var(--ink-soft); font-size: 0.87rem; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); }
.section-head { margin: 0 auto 50px; max-width: 47em; text-align: center; }
.kicker { color: var(--orange); display: inline-block; font-size: 0.79rem; font-weight: 800; letter-spacing: 0.12em; margin-bottom: 10px; text-transform: uppercase; }
.section-head h2 { color: var(--rust-dark); font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); }

.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 0 var(--radius) 0 var(--radius); box-shadow: var(--shadow); padding: 28px 26px; }
.feature-more { color: var(--ink-soft); font-size: 0.95rem; margin: 24px auto 0; max-width: 46em; text-align: center; }
.card .icon { align-items: center; background: linear-gradient(135deg, var(--orange-pale), #ffe0c7); clip-path: var(--hexagon); color: var(--rust); display: flex; font-size: 1.28rem; font-weight: 800; height: 44px; justify-content: center; margin-bottom: 16px; width: 44px; }
.card h3 { color: var(--rust-dark); font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card p + p { margin-top: 10px; }
.tool-list { border-top: 1px solid var(--line); list-style: none; margin-top: 18px; padding-top: 5px; }
.tool-list li { border-bottom: 1px solid var(--line); display: grid; gap: 2px; padding: 10px 0; }
.tool-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tool-list code { color: var(--rust-dark); font-size: 0.78rem; font-weight: 700; overflow-wrap: anywhere; }
.tool-list span { color: var(--ink-soft); font-size: 0.87rem; }
.devbox-logo-link { display: inline-flex; margin-left: 0.12em; vertical-align: middle; }
.devbox-logo-link:hover { text-decoration: none; }
.devbox-logo { display: block; height: auto; width: clamp(132px, 14vw, 168px); }
.fact-list { list-style: none; }
.fact-list li { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; padding-left: 26px; position: relative; }
.fact-list li::before { color: var(--orange); content: "✓"; font-weight: 700; left: 0; position: absolute; }
.fact-list strong { color: var(--rust-dark); }

/* Workflow */
.flow { align-items: stretch; display: grid; gap: 12px; grid-template-columns: 1fr auto 1fr auto 1fr; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: 0 var(--radius) 0 var(--radius); box-shadow: var(--shadow); padding: 27px 24px; }
.step-no { align-items: center; background: var(--orange-pale); clip-path: var(--hexagon); color: var(--rust); display: inline-flex; font-weight: 800; height: 34px; justify-content: center; margin-bottom: 14px; width: 34px; }
.flow-step h3 { color: var(--rust-dark); font-size: 1.15rem; margin-bottom: 8px; }
.flow-step p { color: var(--ink-soft); font-size: 0.95rem; }
.flow-arrow { align-self: center; color: var(--orange-light); font-size: 1.6rem; font-weight: 800; }

.format-panel { background: #fff; border: 1px solid var(--line); border-radius: 0 var(--radius) 0 var(--radius); box-shadow: var(--shadow); margin-top: 30px; padding: 25px; }
.format-panel h3 { color: var(--rust-dark); font-size: 1.05rem; margin-bottom: 12px; }
.format-groups { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { background: var(--orange-pale); border: 1px solid #f4c7a8; border-radius: 999px; color: var(--rust-dark); font-size: 0.9rem; font-weight: 700; padding: 6px 13px; }
.chip.output { background: var(--rust); border-color: var(--rust); color: #fff; }

/* Trust and integration */
.security-list { display: grid; gap: 19px 30px; grid-template-columns: repeat(2, 1fr); }
.security-item { align-items: flex-start; display: flex; gap: 14px; }
.check { align-items: center; background: var(--rust); border-radius: 50%; color: #fff; display: flex; flex: 0 0 auto; font-size: 0.84rem; font-weight: 800; height: 27px; justify-content: center; margin-top: 3px; width: 27px; }
.security-item h3 { color: var(--rust-dark); font-size: 1.02rem; margin-bottom: 4px; }
.security-item p { color: var(--ink-soft); font-size: 0.94rem; }
.security-item code { color: var(--rust-dark); font-size: 0.84em; overflow-wrap: anywhere; }

.developer-panel { align-items: center; background: linear-gradient(145deg, #5c1d04 0%, var(--rust-dark) 46%, var(--rust) 100%); border-radius: 0 21px 0 21px; color: #fff; display: grid; gap: 42px; grid-template-columns: 1.05fr 0.95fr; padding: 52px 48px; }
.developer-panel h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.018em; line-height: 1.2; margin-bottom: 14px; }
.developer-panel p { color: rgba(255,255,255,0.87); margin-bottom: 17px; }
.developer-panel ul { list-style: none; }
.developer-panel li { color: rgba(255,255,255,0.92); font-size: 0.96rem; margin-bottom: 11px; padding-left: 27px; position: relative; }
.developer-panel li::before { color: #ffc58d; content: "✓"; font-weight: 800; left: 0; position: absolute; }
.developer-panel code { color: #fff; font-size: 0.86em; overflow-wrap: anywhere; }
.api-note { background: rgba(255,255,255,0.11); border: 1px solid rgba(255,255,255,0.2); border-radius: 0 14px 0 14px; color: rgba(255,255,255,0.92); font-size: 0.95rem; padding: 24px; }
.api-note strong { color: #fff; display: block; font-size: 1.04rem; margin-bottom: 7px; }

/* Contact and footer */
.cta { text-align: center; }
.cta .btn { margin-top: 6px; }
.contact-line { color: var(--ink-soft); font-size: 0.95rem; margin-top: 22px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 0 16px 0 16px; display: grid; gap: 15px; margin: 30px auto 0; max-width: 700px; padding: 25px; text-align: left; }
.contact-form .field-grid { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
.contact-form label { color: var(--ink); display: grid; font-size: .92rem; font-weight: 700; gap: 6px; }
.contact-form input,.contact-form textarea,.contact-form select { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-weight: 400; padding: 10px; width: 100%; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form [data-turnstile] { min-height: 65px; width: 100%; }
.contact-form .honeypot { height: 0; overflow: hidden; position: absolute; width: 0; }
.contact-form .status { background: #fff3e9; border-left: 4px solid var(--orange); color: var(--ink-soft); font-size: .92rem; margin: 0; padding: 10px 12px; }
.contact-form .status[hidden] { display: none; }
.contact-form .status.is-error { background: #fff2f0; border-left-color: #b8473b; color: #7d2c25; }
.contact-form button[disabled] { cursor: not-allowed; opacity: .6; }
.site-footer { background: #5c1d04; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.74); font-size: 0.88rem; overflow: hidden; padding: 70px 0; position: relative; }
.site-footer::before { background: left center / auto 100% no-repeat url('/assets/footer-hex-pattern.svg?v=devbox-style-2x'); content: ""; inset: 0; pointer-events: none; position: absolute; }
.site-footer .container { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; position: relative; z-index: 1; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }

@media (max-width: 1100px) {
  .site-header .container { gap: 12px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
}

@media (max-width: 950px) {
  .contact-form .field-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .developer-panel { grid-template-columns: 1fr; padding: 42px 34px; }
}

@media (max-width: 700px) {
  .grid.cols-3, .grid.cols-2, .security-list, .stats .container { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .format-groups { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  section { padding: 62px 0; }
  .hero { padding: 65px 0 72px; }
  .grid.cols-2, .security-list, .stats .container { grid-template-columns: 1fr; }
  .site-header .container { gap: 8px; height: 60px; padding: 0 16px; }
  .brand-logo { display: block; height: 30px !important; }
  .lang-switch { font-size: 0.78rem; gap: 1px; padding: 3px 4px; }
  .lang-switch a, .lang-switch span { padding: 2px 6px; }
  .btn-login { font-size: 0.82rem; padding: 8px 12px; }
  .site-header .btn { font-size: 0.82rem; padding: 8px 12px; }
  .menu-toggle { height: 36px; width: 36px; }
}

@media (max-width: 520px) {
  .site-header .btn-primary { display: none; }
}

@media (max-width: 380px) {
  .site-header .container { gap: 6px; padding: 0 12px; }
}
