:root {
  --bg: #0b0d10;
  --bg-elevated: #14171c;
  --border: #262b33;
  --text: #e8eaed;
  --text-muted: #9aa1ac;
  --accent: #6ee7b7;
  --accent-strong: #34d399;
  --radius: 12px;
  --container-width: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-strong);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 13, 16, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 28px;
  display: block;
}
.nav a {
  margin-left: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0;
}

/* App list */
.app-list {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 16px;
  flex-wrap: wrap;
}

.app-card-header h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.app-description {
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}

.app-intro {
  padding: 0 24px 24px;
  color: var(--text-muted);
}

.app-intro p {
  margin: 0 0 12px;
  max-width: 720px;
}

.app-benefits {
  margin: 16px 0 0;
  padding-left: 20px;
}

.app-benefits li {
  margin-bottom: 6px;
}

.app-open-link {
  flex-shrink: 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  white-space: nowrap;
}
.app-open-link:hover {
  border-color: var(--accent);
}

.app-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-top: 1px solid var(--border);
  background: #fff;
}

.app-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.app-frame-notice {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.app-frame-notice[hidden] {
  display: none;
}

/* About */
.about {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}
.about h2 {
  margin: 0 0 12px;
}
.about p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

/* Contact */
.contact-main {
  padding: 48px 24px 64px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  margin-top: 20px;
  align-self: flex-start;
  background: var(--accent);
  color: #0b0d10;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--accent-strong);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.contact-status {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.contact-status-success {
  color: var(--accent-strong);
}
.contact-status-error {
  color: #f87171;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .app-frame-wrap {
    aspect-ratio: 9 / 16;
  }
}
