/*
Theme Name: OpenClaw Agency
Theme URI: https://openclaw.local
Author: OpenClaw
Author URI: https://openclaw.local
Description: File-managed agency landing theme for OpenClaw Agency.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.1
Text Domain: openclaw-agency
*/

:root {
  --bg: #0a0a0b;
  --bg2: #111114;
  --bg3: #18181d;
  --accent: #7c6af5;
  --accent2: #a594f9;
  --green: #2dff9f;
  --text: #e8e6f0;
  --muted: #6b6880;
  --border: rgba(124, 106, 245, 0.18);
  --border2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --content: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
  position: relative;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 106, 245, 0.12);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(45, 255, 159, 0.06);
  bottom: 10%;
  left: -100px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(24px);
}

.site-header__inner,
.container,
.site-footer__inner,
.share-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
}

.brand__mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.brand__name {
  display: inline-block;
}

.site-nav {
  display: flex;
  gap: 40px;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.site-nav a:hover,
.email-link:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(124, 106, 245, 0.12);
  border-color: var(--accent);
}

main,
section,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-inner {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero-tag,
.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(124, 106, 245, 0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--accent2);
  margin-bottom: 28px;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.hero-title,
.section-title {
  font-family: "Bebas Neue", sans-serif;
  line-height: 1;
  letter-spacing: 1px;
}

.hero-title {
  margin: 0 0 28px;
  font-size: clamp(56px, 7vw, 96px);
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc,
.section-desc,
.services-note,
.info-copy {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-desc {
  max-width: 480px;
  margin: 0 0 48px;
  font-size: 16px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.button {
  display: inline-block;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary,
.button--primary {
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover,
.button--primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
}

.btn-secondary,
.button--secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-secondary:hover,
.button--secondary:hover {
  background: var(--bg2);
  border-color: var(--border);
}

.btn-block {
  width: 100%;
  padding: 16px;
}

.hero-panel,
.about-feature,
.service-card,
.exec-visual,
.contact-form,
.info-card,
.share-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
}

.hero-panel {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border2);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #ff5f57;
}

.dot-y {
  background: #febc2e;
}

.dot-g {
  background: #28c840;
}

.panel-title,
.ln,
.service-num,
.footer-note,
.share-eyebrow,
.form-label {
  font-family: "JetBrains Mono", monospace;
}

.panel-title {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}

.code-line {
  display: flex;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.9;
}

.ln {
  min-width: 20px;
  color: rgba(107, 104, 128, 0.5);
  text-align: right;
}

.kw {
  color: #bd93f9;
}

.fn {
  color: #50fa7b;
}

.str {
  color: #f1fa8c;
}

.cm {
  color: #6272a4;
}

.neutral {
  color: #f8f8f2;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border2);
}

.stat-item {
  background: var(--bg3);
  border-radius: 10px;
  padding: 16px;
}

.stat-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 700;
}

.stat-num .accent {
  color: var(--green);
}

.stat-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.badge-row {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  margin: 0 0 80px;
  overflow: auto hidden;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-icon {
  width: 32px;
  height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

#about,
#services,
.execution-section,
#contact {
  padding: 100px 0;
}

.section-label {
  margin-bottom: 16px;
  color: var(--accent2);
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 60px);
}

.section-desc {
  max-width: 500px;
}

.section-desc--spaced {
  margin-top: 20px;
}

.about-grid,
.execution-inner,
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid {
  margin-top: 60px;
}

.about-feature {
  display: flex;
  gap: 20px;
  padding: 28px;
  transition: border-color 0.2s;
}

.about-feature:hover,
.service-card:hover {
  border-color: var(--border);
}

.about-num {
  min-width: 56px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  line-height: 1;
  color: rgba(124, 106, 245, 0.15);
}

.about-feature h3,
.service-card h3,
.flow-title {
  color: var(--text);
  font-weight: 700;
}

.about-feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.about-feature p,
.flow-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

#services {
  background: var(--bg2);
}

#services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 60px;
}

.services-note {
  max-width: 300px;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card.featured {
  border-color: var(--border);
  background: linear-gradient(145deg, rgba(124, 106, 245, 0.08), var(--bg3));
}

.service-card.featured::before {
  content: "CORE";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(124, 106, 245, 0.1);
  border: 1px solid var(--border);
  color: var(--accent2);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(124, 106, 245, 0.1);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.service-num {
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--muted);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.service-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.service-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.execution-inner {
  gap: 80px;
  align-items: center;
}

.exec-visual {
  padding: 32px;
  position: relative;
}

.exec-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--border), transparent, transparent);
  z-index: -1;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border2);
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
}

.flow-dot::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.flow-step:last-child .flow-dot::after {
  display: none;
}

.flow-title {
  margin-bottom: 4px;
  font-size: 14px;
}

#contact {
  background: var(--bg);
}

.contact-title {
  margin-bottom: 16px;
}

.contact-inner {
  gap: 80px;
}

.contact-form {
  padding: 40px;
  position: relative;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.contact-alert--success {
  background: rgba(45, 255, 159, 0.12);
  color: #7ff0ba;
  border: 1px solid rgba(45, 255, 159, 0.18);
}

.contact-alert--error {
  background: rgba(255, 95, 87, 0.12);
  color: #ffaaa4;
  border: 1px solid rgba(255, 95, 87, 0.18);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: "Noto Sans KR", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--border);
}

.form-input::placeholder {
  color: var(--muted);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.contact-info {
  padding-top: 20px;
}

.info-card {
  padding: 28px;
  margin-bottom: 16px;
}

.info-card--highlight {
  background: linear-gradient(135deg, rgba(124, 106, 245, 0.08), var(--bg2));
}

.info-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.info-card-title::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.info-dot {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.info-copy {
  margin: 0;
}

.email-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border2);
  color: var(--accent2);
  font-size: 14px;
  transition: color 0.2s;
}

.section-divider {
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border2) 30%, var(--border2) 70%, transparent);
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border2);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--muted);
}

.footer-note {
  font-size: 11px;
  color: rgba(107, 104, 128, 0.6);
}

.share-page-body {
  background:
    radial-gradient(circle at top left, rgba(124, 106, 245, 0.18), transparent 24%),
    linear-gradient(180deg, #111114 0%, #0a0a0b 60%, #101015 100%);
}

.share-page {
  min-height: 100vh;
}

.share-hero {
  padding: 140px 0 26px;
}

.share-title {
  margin: 16px 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.share-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}

.share-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.share-section {
  padding: 10px 0 70px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.share-card {
  padding: 28px;
  box-shadow: none;
}

.share-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.share-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.share-form label {
  display: block;
  margin: 18px 0;
}

.share-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.share-form input[type="password"],
.share-form input[type="file"],
.share-form textarea,
.share-search input[type="search"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border2);
  border-radius: 14px;
  background: var(--bg3);
  color: var(--text);
}

.share-form textarea {
  min-height: 120px;
  resize: vertical;
}

.share-message {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.share-message--success {
  background: rgba(15, 142, 92, 0.12);
  color: #7ff0ba;
}

.share-message--error {
  background: rgba(211, 58, 58, 0.12);
  color: #ff9494;
}

.share-file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-download-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.share-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124, 106, 245, 0.12);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent2);
  text-transform: uppercase;
}

.share-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.share-panel-heading h2,
.share-panel-heading h3 {
  margin: 10px 0 0;
}

.share-count {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.share-search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.share-search input[type="search"] {
  flex: 1;
}

.share-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.share-featured-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 148px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(124, 106, 245, 0.12), rgba(124, 106, 245, 0.04));
  border: 1px solid var(--border);
}

.share-featured-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.share-featured-item span,
.share-file-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.share-description {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.share-file-list--compact {
  gap: 10px;
}

.share-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(124, 106, 245, 0.08);
  border: 1px solid rgba(124, 106, 245, 0.12);
}

.share-file-item strong {
  display: block;
  margin-bottom: 6px;
}

.share-file-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.share-inline-form {
  margin: 0;
}

.share-file-item--compact {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border2);
}

.share-inbox-preview {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 0;
  }

  .site-header__inner,
  .hero-inner,
  .about-grid,
  .contact-inner,
  .execution-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-header__inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .services-grid,
  .share-featured-grid,
  .share-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .hero-inner,
  .container,
  .share-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .services-header,
  .share-panel-heading,
  .share-search,
  .share-file-actions,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 24px 0;
  }

  .site-footer__inner {
    text-align: left;
  }

  .share-file-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-file-item .button,
  .share-featured-item .button,
  .share-search .button,
  .share-file-actions .button,
  .nav-cta {
    width: 100%;
  }
}
