:root {
      --bg: #f7f7f7;
      --bg-alt: #ffffff;
      --grid: #e6e6e6;
      --text: #141414;
      --muted: #555555;
      --accent: #e53935; /* fire-alarm red */
      --accent-soft: #ffedea;
      --line: #d0d0d0;
      --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.05);
      --radius-lg: 18px;
      --radius-sm: 10px;
      --max-width: 1120px;
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      padding: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
      background-size: 32px 32px;
    }

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

    main {
      display: block;
    }

    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .shell {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 1.25rem;
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(14px);
      background: linear-gradient(
        to bottom,
        rgba(247, 247, 247, 0.96),
        rgba(247, 247, 247, 0.88)
      );
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.85rem 0.25rem;
      gap: 1.5rem;
    }

    .brand-lockup {
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .brand-mark {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background:
        linear-gradient(145deg, var(--bg-alt), #f0f0f0);
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .brand-mark::before {
      content: "";
      position: absolute;
      inset: 8px;
      border-radius: 8px;
      border: 1px dashed rgba(0, 0, 0, 0.12);
    }

    .brand-mark span {
      font-weight: 700;
      font-size: 0.9rem;
      letter-spacing: 0.06em;
    }

    .brand-text-main {
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
    }

    .brand-text-main .name {
      font-weight: 650;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      font-size: 0.9rem;
    }

    .brand-text-main .sub {
      font-size: 0.78rem;
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: 0.9rem;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }

    .nav-links a {
      position: relative;
      padding-bottom: 0.15rem;
      color: #333;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 1px;
      background-color: var(--accent);
      transition: width 0.18s ease-out;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-cta {
      border-radius: 999px;
      padding: 0.45rem 0.9rem;
      border: 1px solid rgba(0, 0, 0, 0.1);
      background: rgba(255, 255, 255, 0.9);
      font-size: 0.82rem;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    }

    .nav-cta span.dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background-color: var(--accent);
    }

    /* Hero */
    .hero {
      padding: 3.5rem 0 0.8rem;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr);
      gap: 2.8rem;
      align-items: center;
    }

    .hero-kicker {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.9rem;
    }

    .hero-kicker::before {
      content: "";
      width: 18px;
      height: 1px;
      background-color: var(--muted);
      opacity: 0.5;
    }

    .hero h1 {
      font-size: clamp(2.4rem, 3vw + 1.5rem, 3.4rem);
      line-height: 1.04;
      margin: 0 0 0.8rem;
      letter-spacing: -0.03em;
    }

    .hero h1 span {
      color: var(--accent);
    }

    .hero-sub {
      font-size: 0.98rem;
      max-width: 32rem;
      color: var(--muted);
      margin-bottom: 1.4rem;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 1.75rem;
    }

    .badge {
      font-size: 0.78rem;
      padding: 0.25rem 0.7rem;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.12);
      background: rgba(255, 255, 255, 0.85);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background-color: var(--accent);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 1.35rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.7rem 1.4rem;
      border-radius: 999px;
      font-size: 0.9rem;
      border: 1px solid transparent;
      cursor: pointer;
      transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
        background-color 0.12s ease-out, border-color 0.12s ease-out;
      text-decoration: none;
      white-space: nowrap;
    }

    .btn-primary {
      background-color: var(--accent);
      color: #ffffff;
      box-shadow: 0 14px 32px rgba(229, 57, 53, 0.35);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 40px rgba(229, 57, 53, 0.45);
    }

    .btn-ghost {
      background-color: rgba(255, 255, 255, 0.96);
      border-color: rgba(0, 0, 0, 0.15);
      color: #222;
    }

    .btn-ghost:hover {
      background-color: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
    }

    .hero-footnote {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .hero-visual {
      position: relative;
    }

    .hero-card {
      background-color: var(--bg-alt);
      border-radius: 22px;
      box-shadow: var(--shadow-soft);
      padding: 1.4rem 1.3rem 1.5rem;
      border: 1px solid rgba(0, 0, 0, 0.06);
      position: relative;
      overflow: hidden;
    }

    .hero-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      gap: 0.75rem;
    }

    .hero-card-title {
      font-size: 0.9rem;
      font-weight: 600;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .hero-card-title span.sub {
      font-size: 0.78rem;
      color: var(--muted);
      font-weight: 400;
    }

    .hero-chip {
      font-size: 0.75rem;
      padding: 0.25rem 0.55rem;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.12);
      background-color: var(--accent-soft);
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    .hero-chip span.dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background-color: var(--accent);
    }

    .hero-grid-lines {
      border-radius: 16px;
      padding: 0.9rem 0.9rem 0.95rem;
      background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
      background-size: 20px 20px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      position: relative;
      overflow: hidden;
    }

    .hero-grid-lines::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75),
        rgba(255, 255, 255, 0.95)
      );
      pointer-events: none;
    }

    .sheet {
      position: relative;
      border-radius: 14px;
      border: 1px solid rgba(0, 0, 0, 0.12);
      background-color: #ffffff;
      padding: 0.85rem 1rem;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
      font-size: 0.75rem;
      overflow: hidden;
    }

    .sheet-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.6rem;
    }

    .sheet-title {
      font-weight: 600;
      font-size: 0.8rem;
    }

    .sheet-meta {
      font-size: 0.72rem;
      color: var(--muted);
    }

    .sheet-plan {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 0.55rem;
      align-items: flex-start;
    }

    .sheet-plan-diagram {
      border-radius: 9px;
      border: 1px dashed rgba(0, 0, 0, 0.18);
      padding: 0.45rem;
      position: relative;
      min-height: 96px;
    }

    .sheet-plan-diagram::before,
    .sheet-plan-diagram::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      border: 1px solid rgba(229, 57, 53, 0.6);
    }

    .sheet-plan-diagram::before {
      width: 48px;
      height: 32px;
      top: 18%;
      left: 14%;
    }

    .sheet-plan-diagram::after {
      width: 32px;
      height: 24px;
      bottom: 19%;
      right: 15%;
    }

    .sheet-plan-lines {
      position: absolute;
      inset: 0;
      opacity: 0.45;
      pointer-events: none;
    }

    .sheet-plan-lines svg {
      width: 100%;
      height: 100%;
    }

    .sheet-callouts {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .callout-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.4rem;
    }

    .callout-label {
      font-size: 0.72rem;
      color: var(--muted);
    }

    .callout-pill {
      font-size: 0.7rem;
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      background-color: rgba(0, 0, 0, 0.04);
    }

    .sheet-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 0.7rem;
      padding-top: 0.5rem;
      border-top: 1px solid rgba(0, 0, 0, 0.08);
      font-size: 0.7rem;
      color: var(--muted);
    }

    .sheet-status {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.15rem 0.5rem;
      border-radius: 999px;
      background-color: rgba(0, 0, 0, 0.04);
    }

    .sheet-status span.dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background-color: var(--accent);
    }

    .hero-float {
      position: absolute;
      right: 4%;
      bottom: -12px;
      transform: translateY(-50%);
      background-color: #ffffff;
      border-radius: 999px;
      padding: 0.35rem 0.75rem;
      font-size: 0.7rem;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.06);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .hero-float span.dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background-color: var(--accent);
    }

    /* Sections */
    .section {
      padding: 1.5rem 0 0.5rem;
    }

    /* Tighter spacing between hero and first content section */
    .section:first-of-type {
      padding-top: 0.2rem;
    }


    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 1.5rem;
      margin-bottom: 1.25rem;
    }

    .section-kicker {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--muted);
      margin-bottom: 0.25rem;
    }

    .section-title {
      font-size: 1.15rem;
      margin: 0;
      letter-spacing: -0.01em;
    }

    .section-sub {
      font-size: 0.85rem;
      color: var(--muted);
      max-width: 26rem;
    }

    /* Services preview */
    .service-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1rem;
      margin-bottom: 0.75rem;
    }

    .service-card {
      border-radius: var(--radius-lg);
      background-color: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
      padding: 0.9rem 0.95rem 1.05rem;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      position: relative;
      overflow: hidden;
    }

    .service-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.75rem;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      background-color: rgba(0, 0, 0, 0.04);
    }

    .service-icon {
      width: 16px;
      height: 16px;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.18);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.62rem;
    }

    .service-title {
      font-size: 0.98rem;
      font-weight: 600;
    }

    .service-body {
      font-size: 0.84rem;
      color: var(--muted);
      flex: 1;
    }

    .service-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 0.5rem;
      font-size: 0.78rem;
    }

    .service-meta span.label {
      color: var(--muted);
    }

    .service-meta a {
      font-size: 0.78rem;
      text-decoration: underline;
      text-decoration-style: dotted;
      text-underline-offset: 3px;
    }

    /* Why T2CAD */
    .why-grid {
      display: grid;
      grid-template-columns: 1.5fr 1.2fr;
      gap: 1.6rem;
      margin-bottom: 0.75rem;
    }

    .why-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
    }

    .why-item {
      border-radius: var(--radius-sm);
      padding: 0.7rem 0.8rem;
      background-color: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(0, 0, 0, 0.06);
      font-size: 0.82rem;
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .why-item strong {
      font-size: 0.86rem;
    }

    .why-note {
      font-size: 0.8rem;
      color: var(--muted);
      border-radius: var(--radius-sm);
      border: 1px dashed rgba(0, 0, 0, 0.25);
      padding: 0.7rem 0.8rem;
      background-color: rgba(255, 255, 255, 0.9);
    }

    /* Portfolio preview */
    .portfolio-row {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 1.5rem;
      align-items: center;
      margin-bottom: 0.75rem;
    }

    .portfolio-placeholder {
      border-radius: var(--radius-lg);
      border: 1px dashed rgba(0, 0, 0, 0.2);
      background-color: rgba(255, 255, 255, 0.92);
      padding: 0.8rem 0.9rem;
      font-size: 0.8rem;
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
    }

    .portfolio-strip {
      display: flex;
      gap: 0.5rem;
      align-items: stretch;
    }

    .portfolio-sheet {
      flex: 1;
      border-radius: 9px;
      border: 1px solid rgba(0, 0, 0, 0.15);
      background-color: #ffffff;
      min-height: 72px;
      position: relative;
      overflow: hidden;
    }

    .portfolio-sheet::before,
    .portfolio-sheet::after {
      content: "";
      position: absolute;
      border-radius: 2px;
      background-color: rgba(0, 0, 0, 0.05);
    }

    .portfolio-sheet::before {
      left: 10%;
      right: 12%;
      top: 24%;
      height: 2px;
    }

    .portfolio-sheet::after {
      left: 10%;
      right: 20%;
      top: 40%;
      height: 2px;
    }

    .portfolio-caption {
      font-size: 0.8rem;
      color: var(--muted);
    }

    /* FAQ preview */
    .faq-list {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }

    .faq-item {
      border-radius: var(--radius-sm);
      border: 1px solid rgba(0, 0, 0, 0.08);
      background-color: rgba(255, 255, 255, 0.96);
      padding: 0.7rem 0.85rem;
      font-size: 0.82rem;
    }

    .faq-item strong {
      display: block;
      margin-bottom: 0.2rem;
      font-size: 0.86rem;
    }

    /* Contact strip */
    .contact-strip {
      margin: 1.75rem 0 2.5rem;
      border-radius: 999px;
      background-color: rgba(255, 255, 255, 0.96);
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.04);
      padding: 0.9rem 1.2rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.85rem;
    }

    .contact-strip-main {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .contact-strip-main span.label {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--muted);
    }

    .contact-strip-main strong {
      font-size: 0.9rem;
    }

    .contact-strip-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-left: auto;
    }

    .contact-strip a.link-inline {
      font-size: 0.82rem;
      text-decoration: underline;
      text-decoration-style: dotted;
      text-underline-offset: 3px;
    }

    /* Footer */
    footer {
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      background-color: rgba(247, 247, 247, 0.96);
      padding: 1.4rem 0 1.6rem;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .footer-inner {
      display: flex;
      flex-wrap: wrap;
      gap: 1.25rem;
      align-items: center;
      justify-content: space-between;
    }

    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
    }

    .footer-nav a {
      text-decoration: none;
    }

    .footer-nav a:hover {
      text-decoration: underline;
      text-decoration-style: dotted;
      text-underline-offset: 3px;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
      }

      .hero-visual {
        order: -1;
      }

      .why-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .portfolio-row {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    @media (max-width: 768px) {
      /* Mobile header: allow wrapping + keep content away from screen edges */
      .header-inner {
        flex-wrap: wrap;
        padding-left: 16px;
        padding-right: 16px;
      }

      /* Let nav reflow and center naturally across different aspect ratios */
      nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
      }

      /* Center the link group and let it wrap cleanly */
      .nav-links {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.9rem 1.1rem;
        justify-content: center;
        align-items: center;
        text-align: center;
      }

      /* Put the CTA on its own row and center it (prevents left offset) */
      .nav-cta {
        width: 100%;
        margin-left: 0;
        justify-content: center;
      }

      .hero {
        padding-top: 2.8rem;
      }

      .service-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .why-list {
        grid-template-columns: minmax(0, 1fr);
      }

      .faq-list {
        grid-template-columns: minmax(0, 1fr);
      }

      .contact-strip {
        border-radius: 18px;
      }

      .contact-strip-actions {
        width: 100%;
        justify-content: flex-start;
      }
    }

    @media (max-width: 480px) {
      .hero h1 {
        font-size: 2.1rem;
      }

      .hero-card {
        border-radius: 18px;
      }
    }