@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Newsreader:opsz,wght@6..72,300;6..72,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #f1ecdf;
  --paper-deep: #e7ddca;
  --ink: #1a1612;
  --ink-soft: #4d463d;
  --muted: #756d62;
  --rule: #c9bfa8;
  --accent: #b6442a;
  --status-active: #3d8c51;
  --status-upgrading: #d9802f;
  --status-maintenance: #8f8a82;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1340px;
  --gutter: clamp(24px, 9.8vw, 164px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--paper); background-image: repeating-linear-gradient(90deg, rgba(74, 61, 45, .025) 0 1px, transparent 1px 4px); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 9px 12px; background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(var(--container), calc(100% - (var(--gutter) * 2))); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo-mark { width: 52px; height: 48px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; }
.logo-mark img { width: 120px; height: 120px; max-width: none; flex: none; }
.site-nav { display: flex; align-items: center; gap: 20px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.lang-link { border: 1px solid var(--rule); padding: 4px 8px; }

.hero { padding: clamp(82px, 11vw, 156px) 0 clamp(72px, 9vw, 124px); border-bottom: 1px solid var(--rule); }
.eyebrow { margin: 0 0 28px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 1040px; margin: 0; font-size: clamp(58px, 11.5vw, 158px); font-weight: 400; letter-spacing: -.065em; line-height: .82; }
.hero h1 { transform: translateX(-.05em); }
.hero-divider { display: block; width: 56px; height: 1px; margin: clamp(36px, 4vw, 48px) 0 26px; background: var(--accent); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: clamp(42px, 6vw, 78px); align-items: stretch; margin-top: 0; }
.hero-main > p { max-width: 640px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(24px, 2.7vw, 34px); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; }
.hero-main > p strong { color: var(--ink); font-weight: 400; }
.hero-meta { align-self: stretch; margin: 0; padding: 112px 0 20px clamp(38px, 5vw, 72px); border-left: 1px solid var(--rule); }
.hero-meta p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.1vw, 31px); font-weight: 300; letter-spacing: -.03em; line-height: 1.15; }
.hero-meta p + p { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.hero-meta p:last-child { border-bottom: 0; }
.hero-meta-label { margin-bottom: 22px !important; color: var(--accent); font-family: var(--mono) !important; font-size: 10px !important; font-weight: 400 !important; letter-spacing: .13em !important; text-transform: uppercase; }
.hero-meta span { color: var(--accent); }
.primary-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 17px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 180ms ease, transform 180ms ease; }
.primary-link:hover { background: var(--accent); transform: translateY(-2px); }

.section { padding: clamp(74px, 9.2vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-header { display: flex; justify-content: space-between; gap: 40px; align-items: start; margin-bottom: clamp(34px, 4.6vw, 56px); }
.section-label { margin: 0 0 24px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.section-label::after { content: ''; display: block; width: 34px; height: 1px; margin-top: 16px; background: var(--accent); }
.section-title { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(40px, 5.3vw, 72px); font-weight: 300; letter-spacing: -.045em; line-height: .98; }
.section-note { max-width: 285px; margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.product-card { position: relative; min-height: 332px; overflow: hidden; border: 1px solid var(--rule); background: #f4efe5; grid-column: span 4; isolation: isolate; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.product-card--featured { min-height: 378px; grid-column: span 6; }
.product-card:hover { border-color: var(--ink-soft); box-shadow: 0 18px 35px -27px rgba(42, 34, 24, .52); transform: translateY(-3px); }
.product-card__content { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100%; max-width: 55%; padding: 28px 24px; }
.product-card--featured .product-card__content { max-width: 47%; padding: 30px 28px; }
.product-status { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.product-status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--status-active); }
.product-status.is-active::before { background: var(--status-active); }
.product-status.is-upgrading::before { background: var(--status-upgrading); }
.product-status.is-maintenance::before { background: var(--status-maintenance); }
.product-card__copy { margin: 42px 0 26px; }
.product-card h3 { margin: 0; font-size: clamp(27px, 2.65vw, 42px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.copy-divider { display: block; width: 24px; height: 1px; margin: 18px 0; background: var(--accent); }
.product-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.card-link { color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.product-card__content .card-link { margin-top: auto; }
.card-link:hover { color: var(--accent); }
.product-art { position: absolute; inset: 0 0 0 auto; z-index: 1; width: 52%; height: 100%; object-fit: cover; object-position: center; }
.product-card--featured .product-art { width: 59%; }
.product-art--siuu { width: 47%; object-position: center; }
.product-art--ki { width: 48%; object-fit: cover; object-position: center; }
.product-art--tool { width: 42%; object-fit: cover; object-position: center; }
.product-card--vibecode { background: #f4efe5; }
.product-card--vibecode .product-art { z-index: 0; right: 0; width: auto; height: 100%; object-fit: contain; object-position: right center; }
.product-card--vibecode::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #f4efe5 0%, rgba(244, 239, 229, .98) 27%, rgba(244, 239, 229, .64) 53%, rgba(244, 239, 229, 0) 78%); }
.social-proof { position: absolute; z-index: 3; right: 18%; bottom: 50px; width: min(225px, 42%); padding: 16px; border: 1px solid color-mix(in srgb, var(--rule) 85%, white); border-radius: 8px; background: rgba(255, 253, 248, .96); box-shadow: 0 14px 30px -20px rgba(42, 34, 24, .55); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease, visibility 0s linear 500ms; visibility: hidden; }
.social-proof.is-visible { opacity: 1; transform: translateY(0); transition-delay: 0s; visibility: visible; }
.social-proof::after { content: ''; position: absolute; right: 24px; bottom: -7px; width: 13px; height: 13px; border-right: 1px solid color-mix(in srgb, var(--rule) 85%, white); border-bottom: 1px solid color-mix(in srgb, var(--rule) 85%, white); background: rgba(255, 253, 248, .96); transform: rotate(45deg); }
.social-proof > p { margin: 0 0 12px; color: var(--accent); font-size: 13px; line-height: 1.35; }
.social-proof__user { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.social-proof__user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 52% 30%; }
.social-proof__user span { display: grid; gap: 1px; }
.social-proof__user strong { font-size: 11px; font-weight: 600; line-height: 1.15; }
.social-proof__user small { color: var(--muted); font-size: 10px; line-height: 1.15; }
.product-card--cuatren { background: #171715; border-color: #34322e; color: #f0e8d9; }
.product-card--cuatren .product-art { right: -6px; object-fit: contain; object-position: right center; }
.product-card--cuatren .product-card__content { background: linear-gradient(90deg, #171715 0%, rgba(23, 23, 21, .97) 64%, rgba(23, 23, 21, 0) 100%); }
.product-card--cuatren h3 { color: #f0e8d9; }
.product-card--cuatren p, .product-card--cuatren .card-link { color: rgba(240, 232, 217, .84); }
.product-card--cuatren .card-link:hover { color: #d5543f; }

.notes-section { padding-bottom: clamp(64px, 7vw, 96px); }
.notes-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(54px, 8vw, 126px); align-items: center; margin-bottom: clamp(42px, 5vw, 72px); }
.notes-section .section-title { max-width: 840px; }
.notes-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 220px; padding-left: clamp(34px, 4.8vw, 74px); border-left: 1px solid var(--rule); }
.notes-intro .section-note { max-width: 280px; margin: 0; font-size: 16px; }
.notes-intro-mark { display: grid; flex: 0 0 auto; width: 52px; height: 52px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--rule)); border-radius: 50%; color: var(--accent); font-size: 26px; }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); }
.note-card { min-height: 330px; padding: 32px clamp(32px, 4vw, 56px) 38px; border: 0; display: flex; flex-direction: column; }
.note-card + .note-card { border-left: 1px solid var(--rule); }
.note-card__top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.note-kind { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.note-index { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.note-index::after { content: ''; display: block; width: 20px; height: 1px; margin: 10px 0 0; background: var(--accent); }
.note-card__copy { margin: 40px 0 0; }
.note-card h3 { max-width: none; margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.3vw, 43px); font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.note-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.note-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; }
.note-link b { margin-left: 14px; color: var(--accent); font-size: 16px; font-weight: 400; }
.note-arrow { display: grid; flex: 0 0 auto; width: 58px; height: 58px; place-items: center; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 26px; transition: background-color 180ms ease, color 180ms ease; }
.note-link:hover .note-arrow { background: var(--accent); color: var(--paper); }

.site-footer { padding: 22px 0; border-top: 1px solid var(--rule); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -.04em; text-decoration: none; }
.footer-symbol { display: flex; flex: 0 0 auto; width: 46px; height: 46px; align-items: center; justify-content: center; overflow: hidden; }
.footer-symbol img { width: 116px; height: 116px; max-width: none; flex: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 30px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  :root { --gutter: 42px; }
  .product-card, .product-card--featured { grid-column: span 6; }
  .product-card--tool { grid-column: span 12; }
  .product-card--tool .product-art { width: 32%; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .header-inner { min-height: 60px; }
  .logo-mark { width: 46px; height: 43px; }
  .site-nav { gap: 12px; font-size: 10px; letter-spacing: .06em; }
  .hero { padding-top: 72px; }
  .hero h1 { font-size: clamp(56px, 19vw, 94px); }
  .hero-copy { grid-template-columns: 1fr; gap: 32px; margin-top: 0; }
  .hero-main > p { font-size: 26px; }
  .hero-meta { max-width: none; padding: 28px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .section-header { display: block; }
  .section-note { margin-top: 18px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card, .product-card--featured, .product-card--tool { display: flex; flex-direction: column; min-height: 0; grid-column: auto; }
  .product-art, .product-card--featured .product-art, .product-card--tool .product-art { position: static; order: 1; display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
  .product-card--vibecode .product-art { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; object-position: center; }
  .product-art--ki, .product-art--tool { object-position: center 35%; }
  .product-card__content, .product-card--featured .product-card__content { order: 2; max-width: none; min-height: 235px; padding: 24px; }
  .social-proof { position: absolute; top: 126px; right: 18px; bottom: auto; width: min(225px, calc(100% - 36px)); margin: 0; }
  .product-card--cuatren .product-card__content { background: #171817; }
  .notes-header { display: block; }
  .notes-intro { min-height: 0; margin-top: 32px; padding: 28px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 310px; padding: 28px 24px; }
  .note-card + .note-card { border-top: 1px solid var(--rule); border-left: 0; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer-links { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; } }
