/* ==========================================================================
   arakaki.in — Alphabet (abc.xyz) Style Design System
   The Holding Company for Independent Cloud, AI & Platform Brands
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette — abc.xyz clean white corporate aesthetic */
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-subtle: #f1f3f4;
  --surface: #ffffff;
  --surface-hover: #f8fafd;
  --border: #dadce0;
  --border-light: #e8eaed;
  --border-subtle: #f1f3f4;

  /* Typography Colors */
  --text: #202124;
  --text-body: #3c4043;
  --text-muted: #5f6368;
  --text-dim: #80868b;

  /* Accent & Alphabet Toy Block Colors */
  --link: #1a73e8;
  --link-hover: #174ea6;
  --block-red: #ea4335;
  --block-blue: #4285f4;
  --block-yellow: #fbbc04;
  --block-green: #34a853;
  --block-purple: #af5cf7;
  --block-orange: #fa7b17;
  --block-teal: #00acc1;

  /* Sizing & Layout */
  --max-w: 1200px;
  --letter-w: 740px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.1), 0 1px 3px 1px rgba(60,64,67,0.08);
  --shadow-md: 0 4px 12px 0 rgba(60,64,67,0.12);
  --shadow-hover: 0 8px 24px 0 rgba(60,64,67,0.15);

  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header & Navigation (abc.xyz style) ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 6px rgba(60,64,67,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-block-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-tld {
  font-weight: 400;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  text-decoration: none;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--block-blue);
  border-radius: 2px;
}

.nav-cta {
  background-color: var(--link);
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 20px;
  font-weight: 500 !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}

.nav-cta:hover {
  background-color: var(--link-hover) !important;
  box-shadow: 0 1px 3px rgba(60,64,67,0.3);
  text-decoration: none !important;
}

.nav-cta.active::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- abc.xyz Lead Heading ---------- */
.Homepage-pageLead {
  padding: 64px 0 32px;
  text-align: left;
}

.HomepageHeading {
  max-width: var(--letter-w);
  margin: 0 auto;
}

.HomepageHeading-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.arakaki-block {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.arakaki-block img,
.arakaki-block svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.HomepageHeading-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.Homepage-tagline {
  max-width: var(--letter-w);
  margin: 16px auto 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- abc.xyz Founder Letter ---------- */
.Homepage-letter {
  max-width: var(--letter-w);
  margin: 40px auto 0;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-body);
}

.Homepage-letter p {
  margin-bottom: 24px;
}

.content-short p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.more-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--link);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
}

.more-button:hover {
  background: #e8f0fe;
  color: var(--link-hover);
  border-color: #d2e3fc;
}

.content-body {
  display: none;
  animation: fadeInLetter 0.35s ease-out forwards;
}

.content-body.is-open {
  display: block;
}

@keyframes fadeInLetter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.Homepage-letter ul {
  list-style-type: disc;
  padding-left: 28px;
  margin: 24px 0 32px;
}

.Homepage-letter li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.quote-highlight {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  border-left: 4px solid var(--block-blue);
  padding-left: 20px;
  margin: 32px 0;
  line-height: 1.6;
}

/* Signature & Signoff */
.signature-block {
  margin: 48px 0 64px;
  padding-top: 24px;
}

.signature-img {
  width: 220px;
  height: auto;
  margin-bottom: 12px;
}

.signature-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.signature-caption strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2px;
}

/* Blocks Image at bottom of letter */
.blocks-image {
  max-width: 780px;
  margin: 20px auto 60px;
  padding: 0 16px;
}

.blocks-image img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ---------- Brands Behind Arakaki (Portfolio Showcase) ---------- */
.brands-section {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--block-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Filter Tabs */
.brand-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
}

/* Brands Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.brand-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.brand-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.brand-letter-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.badge-red { background: linear-gradient(135deg, #FF7043, #EA4335); }
.badge-blue { background: linear-gradient(135deg, #669DF6, #4285F4); }
.badge-yellow { background: linear-gradient(135deg, #FDD663, #FBBC04); color: #5f4300 !important; }
.badge-green { background: linear-gradient(135deg, #81C995, #34A853); }
.badge-purple { background: linear-gradient(135deg, #D7AEFB, #AF5CF7); }
.badge-orange { background: linear-gradient(135deg, #FCAD70, #FA7B17); }
.badge-teal { background: linear-gradient(135deg, #4DD0E1, #00ACC1); }

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.brand-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.brand-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.brand-card-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.brand-card-link {
  font-weight: 600;
  color: var(--link);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Corporate Overview & Governance ---------- */
.governance-section {
  padding: 80px 0;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.governance-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
}

.governance-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.governance-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Form & Contact Specifics ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--block-blue);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--link);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 24px;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  background-color: var(--link-hover);
  box-shadow: 0 2px 6px rgba(60,64,67,0.25);
  text-decoration: none;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background-color: #e6f4ea;
  border: 1px solid #ceead6;
  border-radius: var(--radius-sm);
  color: #137333;
  font-size: 0.95rem;
}

.form-success.show {
  display: block;
}

.form-error {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background-color: #fce8e6;
  border: 1px solid #fad2cf;
  border-radius: var(--radius-sm);
  color: #c5221f;
  font-size: 0.95rem;
}

.form-error.show {
  display: block;
}

/* ---------- Site Footer ---------- */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .site-nav.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .HomepageHeading-content {
    gap: 16px;
  }
  .arakaki-block {
    width: 64px;
    height: 64px;
  }
  .brands-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
